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 "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
9 #include "ui/views/widget/native_widget_private.h" | 9 #include "ui/views/widget/native_widget_private.h" |
10 | 10 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 virtual Widget::MoveLoopResult RunMoveLoop( | 97 virtual Widget::MoveLoopResult RunMoveLoop( |
98 const gfx::Vector2d& drag_offset, | 98 const gfx::Vector2d& drag_offset, |
99 Widget::MoveLoopSource source, | 99 Widget::MoveLoopSource source, |
100 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; | 100 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; |
101 virtual void EndMoveLoop() OVERRIDE; | 101 virtual void EndMoveLoop() OVERRIDE; |
102 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; | 102 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; |
103 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; | 103 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; |
104 virtual void OnRootViewLayout() const OVERRIDE; | 104 virtual void OnRootViewLayout() const OVERRIDE; |
105 virtual void RepostNativeEvent(gfx::NativeEvent native_event) OVERRIDE; | 105 virtual void RepostNativeEvent(gfx::NativeEvent native_event) OVERRIDE; |
106 | 106 |
| 107 protected: |
| 108 internal::NativeWidgetDelegate* delegate() { return delegate_; } |
| 109 |
107 private: | 110 private: |
108 internal::NativeWidgetDelegate* delegate_; | 111 internal::NativeWidgetDelegate* delegate_; |
109 scoped_ptr<BridgedNativeWidget> bridge_; | 112 scoped_ptr<BridgedNativeWidget> bridge_; |
110 | 113 |
111 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); | 114 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); |
112 }; | 115 }; |
113 | 116 |
114 } // namespace views | 117 } // namespace views |
115 | 118 |
116 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ | 119 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ |
OLD | NEW |