| 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_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "ui/aura/client/focus_change_observer.h" | 9 #include "ui/aura/client/focus_change_observer.h" |
| 10 #include "ui/aura/window_delegate.h" | 10 #include "ui/aura/window_delegate.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void StackBelow(gfx::NativeView native_view) override; | 135 void StackBelow(gfx::NativeView native_view) override; |
| 136 void SetShape(gfx::NativeRegion shape) override; | 136 void SetShape(gfx::NativeRegion shape) override; |
| 137 void Close() override; | 137 void Close() override; |
| 138 void CloseNow() override; | 138 void CloseNow() override; |
| 139 void Show() override; | 139 void Show() override; |
| 140 void Hide() override; | 140 void Hide() override; |
| 141 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; | 141 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; |
| 142 void ShowWithWindowState(ui::WindowShowState state) override; | 142 void ShowWithWindowState(ui::WindowShowState state) override; |
| 143 bool IsVisible() const override; | 143 bool IsVisible() const override; |
| 144 void Activate() override; | 144 void Activate() override; |
| 145 void ActivateForUserGesture() override; |
| 145 void Deactivate() override; | 146 void Deactivate() override; |
| 146 bool IsActive() const override; | 147 bool IsActive() const override; |
| 147 void SetAlwaysOnTop(bool always_on_top) override; | 148 void SetAlwaysOnTop(bool always_on_top) override; |
| 148 bool IsAlwaysOnTop() const override; | 149 bool IsAlwaysOnTop() const override; |
| 149 void SetVisibleOnAllWorkspaces(bool always_visible) override; | 150 void SetVisibleOnAllWorkspaces(bool always_visible) override; |
| 150 void Maximize() override; | 151 void Maximize() override; |
| 151 void Minimize() override; | 152 void Minimize() override; |
| 152 bool IsMaximized() const override; | 153 bool IsMaximized() const override; |
| 153 bool IsMinimized() const override; | 154 bool IsMinimized() const override; |
| 154 void Restore() override; | 155 void Restore() override; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // The following factory is used for calls to close the NativeWidgetAura | 316 // The following factory is used for calls to close the NativeWidgetAura |
| 316 // instance. | 317 // instance. |
| 317 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; | 318 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; |
| 318 | 319 |
| 319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 320 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
| 320 }; | 321 }; |
| 321 | 322 |
| 322 } // namespace views | 323 } // namespace views |
| 323 | 324 |
| 324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 325 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |