| 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_PRIVATE_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 virtual void Close() = 0; | 183 virtual void Close() = 0; |
| 184 virtual void CloseNow() = 0; | 184 virtual void CloseNow() = 0; |
| 185 virtual void Show() = 0; | 185 virtual void Show() = 0; |
| 186 virtual void Hide() = 0; | 186 virtual void Hide() = 0; |
| 187 // Invoked if the initial show should maximize the window. |restored_bounds| | 187 // Invoked if the initial show should maximize the window. |restored_bounds| |
| 188 // is the bounds of the window when not maximized. | 188 // is the bounds of the window when not maximized. |
| 189 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; | 189 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; |
| 190 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; | 190 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; |
| 191 virtual bool IsVisible() const = 0; | 191 virtual bool IsVisible() const = 0; |
| 192 virtual void Activate() = 0; | 192 virtual void Activate() = 0; |
| 193 virtual void ActivateForUserGesture() = 0; |
| 193 virtual void Deactivate() = 0; | 194 virtual void Deactivate() = 0; |
| 194 virtual bool IsActive() const = 0; | 195 virtual bool IsActive() const = 0; |
| 195 virtual void SetAlwaysOnTop(bool always_on_top) = 0; | 196 virtual void SetAlwaysOnTop(bool always_on_top) = 0; |
| 196 virtual bool IsAlwaysOnTop() const = 0; | 197 virtual bool IsAlwaysOnTop() const = 0; |
| 197 virtual void SetVisibleOnAllWorkspaces(bool always_visible) = 0; | 198 virtual void SetVisibleOnAllWorkspaces(bool always_visible) = 0; |
| 198 virtual void Maximize() = 0; | 199 virtual void Maximize() = 0; |
| 199 virtual void Minimize() = 0; | 200 virtual void Minimize() = 0; |
| 200 virtual bool IsMaximized() const = 0; | 201 virtual bool IsMaximized() const = 0; |
| 201 virtual bool IsMinimized() const = 0; | 202 virtual bool IsMinimized() const = 0; |
| 202 virtual void Restore() = 0; | 203 virtual void Restore() = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; | 235 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; |
| 235 | 236 |
| 236 // Overridden from NativeWidget: | 237 // Overridden from NativeWidget: |
| 237 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; | 238 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; |
| 238 }; | 239 }; |
| 239 | 240 |
| 240 } // namespace internal | 241 } // namespace internal |
| 241 } // namespace views | 242 } // namespace views |
| 242 | 243 |
| 243 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 244 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| OLD | NEW |