|
@@ -45,6 +45,12 @@ class NativeBrowserView;
|
|
|
|
|
|
struct DraggableRegion;
|
|
|
|
|
|
+#if defined(OS_MACOSX)
|
|
|
+typedef NSView* NativeWindowHandle;
|
|
|
+#else
|
|
|
+typedef gfx::AcceleratedWidget NativeWindowHandle;
|
|
|
+#endif
|
|
|
+
|
|
|
class NativeWindow : public base::SupportsUserData,
|
|
|
public views::WidgetDelegate {
|
|
|
public:
|
|
@@ -151,7 +157,7 @@ class NativeWindow : public base::SupportsUserData,
|
|
|
virtual gfx::NativeView GetNativeView() const = 0;
|
|
|
virtual gfx::NativeWindow GetNativeWindow() const = 0;
|
|
|
virtual gfx::AcceleratedWidget GetAcceleratedWidget() const = 0;
|
|
|
- virtual std::tuple<void*, int> GetNativeWindowHandlePointer() const = 0;
|
|
|
+ virtual NativeWindowHandle GetNativeWindowHandle() const = 0;
|
|
|
|
|
|
// Taskbar/Dock APIs.
|
|
|
enum ProgressState {
|