blob: bccd5f32b9d6ad3d0006a776bdca65f64231eb37 [file] [log] [blame]
// 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_