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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void StackBelow(gfx::NativeView native_view) override; | 72 void StackBelow(gfx::NativeView native_view) override; |
73 void SetShape(gfx::NativeRegion shape) override; | 73 void SetShape(gfx::NativeRegion shape) override; |
74 void Close() override; | 74 void Close() override; |
75 void CloseNow() override; | 75 void CloseNow() override; |
76 void Show() override; | 76 void Show() override; |
77 void Hide() override; | 77 void Hide() override; |
78 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; | 78 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; |
79 void ShowWithWindowState(ui::WindowShowState state) override; | 79 void ShowWithWindowState(ui::WindowShowState state) override; |
80 bool IsVisible() const override; | 80 bool IsVisible() const override; |
81 void Activate() override; | 81 void Activate() override; |
| 82 void ActivateForUserGesture() override; |
82 void Deactivate() override; | 83 void Deactivate() override; |
83 bool IsActive() const override; | 84 bool IsActive() const override; |
84 void SetAlwaysOnTop(bool always_on_top) override; | 85 void SetAlwaysOnTop(bool always_on_top) override; |
85 bool IsAlwaysOnTop() const override; | 86 bool IsAlwaysOnTop() const override; |
86 void SetVisibleOnAllWorkspaces(bool always_visible) override; | 87 void SetVisibleOnAllWorkspaces(bool always_visible) override; |
87 void Maximize() override; | 88 void Maximize() override; |
88 void Minimize() override; | 89 void Minimize() override; |
89 bool IsMaximized() const override; | 90 bool IsMaximized() const override; |
90 bool IsMinimized() const override; | 91 bool IsMinimized() const override; |
91 void Restore() override; | 92 void Restore() override; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 scoped_ptr<BridgedNativeWidget> bridge_; | 134 scoped_ptr<BridgedNativeWidget> bridge_; |
134 | 135 |
135 Widget::InitParams::Ownership ownership_; | 136 Widget::InitParams::Ownership ownership_; |
136 | 137 |
137 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); | 138 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); |
138 }; | 139 }; |
139 | 140 |
140 } // namespace views | 141 } // namespace views |
141 | 142 |
142 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ | 143 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ |
OLD | NEW |