| // Copyright 2014 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef UI_NATIVE_WINDOW_TRACKER_NATIVE_WINDOW_TRACKER_COCOA_H_ |
| #define UI_NATIVE_WINDOW_TRACKER_NATIVE_WINDOW_TRACKER_COCOA_H_ |
| |
| #include <memory> |
| |
| #include "base/component_export.h" |
| #include "ui/native_window_tracker/native_window_tracker.h" |
| |
| namespace ui { |
| |
| class COMPONENT_EXPORT(UI_NATIVE_WINDOW_TRACKER) NativeWindowTrackerCocoa |
| : public NativeWindowTracker { |
| public: |
| explicit NativeWindowTrackerCocoa(gfx::NativeWindow window); |
| |
| NativeWindowTrackerCocoa(const NativeWindowTrackerCocoa&) = delete; |
| NativeWindowTrackerCocoa& operator=(const NativeWindowTrackerCocoa&) = delete; |
| |
| ~NativeWindowTrackerCocoa() override; |
| |
| // NativeWindowTracker: |
| bool WasNativeWindowDestroyed() const override; |
| |
| private: |
| struct ObjCStorage; |
| std::unique_ptr<ObjCStorage> objc_storage_; |
| }; |
| |
| } // namespace ui |
| |
| #endif // UI_NATIVE_WINDOW_TRACKER_NATIVE_WINDOW_TRACKER_COCOA_H_ |