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 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 virtual gfx::Rect GetWindowScreenBounds() const = 0; | 165 virtual gfx::Rect GetWindowScreenBounds() const = 0; |
166 virtual gfx::Rect GetClientAreaScreenBounds() const = 0; | 166 virtual gfx::Rect GetClientAreaScreenBounds() const = 0; |
167 virtual gfx::Rect GetRestoredBounds() const = 0; | 167 virtual gfx::Rect GetRestoredBounds() const = 0; |
168 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 168 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
169 virtual void SetSize(const gfx::Size& size) = 0; | 169 virtual void SetSize(const gfx::Size& size) = 0; |
170 virtual void MoveAbove(gfx::NativeView native_view) = 0; | 170 virtual void MoveAbove(gfx::NativeView native_view) = 0; |
171 virtual void MoveToTop() = 0; | 171 virtual void MoveToTop() = 0; |
172 virtual void SetShape(gfx::NativeRegion shape) = 0; | 172 virtual void SetShape(gfx::NativeRegion shape) = 0; |
173 virtual void Close() = 0; | 173 virtual void Close() = 0; |
174 virtual void CloseNow() = 0; | 174 virtual void CloseNow() = 0; |
175 virtual void EnableClose(bool enable) = 0; | |
176 virtual void Show() = 0; | 175 virtual void Show() = 0; |
177 virtual void Hide() = 0; | 176 virtual void Hide() = 0; |
178 // Invoked if the initial show should maximize the window. |restored_bounds| | 177 // Invoked if the initial show should maximize the window. |restored_bounds| |
179 // is the bounds of the window when not maximized. | 178 // is the bounds of the window when not maximized. |
180 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; | 179 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; |
181 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; | 180 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; |
182 virtual bool IsVisible() const = 0; | 181 virtual bool IsVisible() const = 0; |
183 virtual void Activate() = 0; | 182 virtual void Activate() = 0; |
184 virtual void Deactivate() = 0; | 183 virtual void Deactivate() = 0; |
185 virtual bool IsActive() const = 0; | 184 virtual bool IsActive() const = 0; |
(...skipping 21 matching lines...) Expand all Loading... |
207 virtual void SetInactiveRenderingDisabled(bool value) = 0; | 206 virtual void SetInactiveRenderingDisabled(bool value) = 0; |
208 | 207 |
209 // Overridden from NativeWidget: | 208 // Overridden from NativeWidget: |
210 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 209 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
211 }; | 210 }; |
212 | 211 |
213 } // namespace internal | 212 } // namespace internal |
214 } // namespace views | 213 } // namespace views |
215 | 214 |
216 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 215 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |