OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "ui/aura/client/focus_change_observer.h" | 10 #include "ui/aura/client/focus_change_observer.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 void StackBelow(gfx::NativeView native_view) override; | 91 void StackBelow(gfx::NativeView native_view) override; |
92 void SetShape(gfx::NativeRegion shape) override; | 92 void SetShape(gfx::NativeRegion shape) override; |
93 void Close() override; | 93 void Close() override; |
94 void CloseNow() override; | 94 void CloseNow() override; |
95 void Show() override; | 95 void Show() override; |
96 void Hide() override; | 96 void Hide() override; |
97 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; | 97 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; |
98 void ShowWithWindowState(ui::WindowShowState state) override; | 98 void ShowWithWindowState(ui::WindowShowState state) override; |
99 bool IsVisible() const override; | 99 bool IsVisible() const override; |
100 void Activate() override; | 100 void Activate() override; |
| 101 void ActivateForUserGesture() override; |
101 void Deactivate() override; | 102 void Deactivate() override; |
102 bool IsActive() const override; | 103 bool IsActive() const override; |
103 void SetAlwaysOnTop(bool always_on_top) override; | 104 void SetAlwaysOnTop(bool always_on_top) override; |
104 bool IsAlwaysOnTop() const override; | 105 bool IsAlwaysOnTop() const override; |
105 void SetVisibleOnAllWorkspaces(bool always_visible) override; | 106 void SetVisibleOnAllWorkspaces(bool always_visible) override; |
106 void Maximize() override; | 107 void Maximize() override; |
107 void Minimize() override; | 108 void Minimize() override; |
108 bool IsMaximized() const override; | 109 bool IsMaximized() const override; |
109 bool IsMinimized() const override; | 110 bool IsMinimized() const override; |
110 void Restore() override; | 111 void Restore() override; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // The following factory is used for calls to close the NativeWidgetAura | 231 // The following factory is used for calls to close the NativeWidgetAura |
231 // instance. | 232 // instance. |
232 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 233 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
233 | 234 |
234 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 235 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
235 }; | 236 }; |
236 | 237 |
237 } // namespace views | 238 } // namespace views |
238 | 239 |
239 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 240 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |