OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ |
7 | 7 |
8 #include "base/mac/scoped_nsobject.h" | |
9 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
10 #include "ui/views/widget/native_widget_private.h" | 9 #include "ui/views/widget/native_widget_private.h" |
11 | 10 |
12 namespace views { | 11 namespace views { |
13 | 12 |
14 class VIEWS_EXPORT NativeWidgetMac : public internal::NativeWidgetPrivate { | 13 class VIEWS_EXPORT NativeWidgetMac : public internal::NativeWidgetPrivate { |
15 public: | 14 public: |
16 NativeWidgetMac(internal::NativeWidgetDelegate* delegate); | 15 NativeWidgetMac(internal::NativeWidgetDelegate* delegate); |
17 virtual ~NativeWidgetMac(); | 16 virtual ~NativeWidgetMac(); |
18 | 17 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; | 98 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; |
100 virtual void EndMoveLoop() OVERRIDE; | 99 virtual void EndMoveLoop() OVERRIDE; |
101 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; | 100 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; |
102 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; | 101 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; |
103 virtual void OnRootViewLayout() const OVERRIDE; | 102 virtual void OnRootViewLayout() const OVERRIDE; |
104 | 103 |
105 // NativeWidget: | 104 // NativeWidget: |
106 virtual ui::EventHandler* GetEventHandler() OVERRIDE; | 105 virtual ui::EventHandler* GetEventHandler() OVERRIDE; |
107 | 106 |
108 private: | 107 private: |
| 108 class Impl; |
| 109 |
109 internal::NativeWidgetDelegate* delegate_; | 110 internal::NativeWidgetDelegate* delegate_; |
110 base::scoped_nsobject<NSWindow> window_; | 111 scoped_ptr<Impl> impl_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); | 113 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace views | 116 } // namespace views |
116 | 117 |
117 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ | 118 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ |
OLD | NEW |