| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| 6 #define VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "views/widget/native_widget.h" | 10 #include "views/widget/native_widget.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 virtual void SetBoundsConstrained(const gfx::Rect& bounds, | 176 virtual void SetBoundsConstrained(const gfx::Rect& bounds, |
| 177 Widget* other_widget) = 0; | 177 Widget* other_widget) = 0; |
| 178 virtual void MoveAbove(gfx::NativeView native_view) = 0; | 178 virtual void MoveAbove(gfx::NativeView native_view) = 0; |
| 179 virtual void MoveToTop() = 0; | 179 virtual void MoveToTop() = 0; |
| 180 virtual void SetShape(gfx::NativeRegion shape) = 0; | 180 virtual void SetShape(gfx::NativeRegion shape) = 0; |
| 181 virtual void Close() = 0; | 181 virtual void Close() = 0; |
| 182 virtual void CloseNow() = 0; | 182 virtual void CloseNow() = 0; |
| 183 virtual void EnableClose(bool enable) = 0; | 183 virtual void EnableClose(bool enable) = 0; |
| 184 virtual void Show() = 0; | 184 virtual void Show() = 0; |
| 185 virtual void Hide() = 0; | 185 virtual void Hide() = 0; |
| 186 // Invoked if the initial show should maximize the window. |restored_bounds| |
| 187 // gives the bounds the bounds the window should be when not maximized. |
| 188 virtual void ShowMaximized(const gfx::Rect& restored_bounds) = 0; |
| 186 virtual void ShowNativeWidget(ShowState state) = 0; | 189 virtual void ShowNativeWidget(ShowState state) = 0; |
| 187 virtual bool IsVisible() const = 0; | 190 virtual bool IsVisible() const = 0; |
| 188 virtual void Activate() = 0; | 191 virtual void Activate() = 0; |
| 189 virtual void Deactivate() = 0; | 192 virtual void Deactivate() = 0; |
| 190 virtual bool IsActive() const = 0; | 193 virtual bool IsActive() const = 0; |
| 191 virtual void SetAlwaysOnTop(bool always_on_top) = 0; | 194 virtual void SetAlwaysOnTop(bool always_on_top) = 0; |
| 192 virtual void Maximize() = 0; | 195 virtual void Maximize() = 0; |
| 193 virtual void Minimize() = 0; | 196 virtual void Minimize() = 0; |
| 194 virtual bool IsMaximized() const = 0; | 197 virtual bool IsMaximized() const = 0; |
| 195 virtual bool IsMinimized() const = 0; | 198 virtual bool IsMinimized() const = 0; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 207 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 210 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
| 208 | 211 |
| 209 // Overridden from NativeWidget: | 212 // Overridden from NativeWidget: |
| 210 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 213 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
| 211 }; | 214 }; |
| 212 | 215 |
| 213 } // namespace internal | 216 } // namespace internal |
| 214 } // namespace views | 217 } // namespace views |
| 215 | 218 |
| 216 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 219 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| OLD | NEW |