| 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 StackAbove(gfx::NativeView native_view) = 0; | 170 virtual void StackAbove(gfx::NativeView native_view) = 0; |
| 171 virtual void StackAtTop() = 0; | 171 virtual void StackAtTop() = 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; |
| 175 virtual void Show() = 0; | 176 virtual void Show() = 0; |
| 176 virtual void Hide() = 0; | 177 virtual void Hide() = 0; |
| 177 // Invoked if the initial show should maximize the window. |restored_bounds| | 178 // Invoked if the initial show should maximize the window. |restored_bounds| |
| 178 // is the bounds of the window when not maximized. | 179 // is the bounds of the window when not maximized. |
| 179 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; | 180 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; |
| 180 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; | 181 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; |
| 181 virtual bool IsVisible() const = 0; | 182 virtual bool IsVisible() const = 0; |
| 182 virtual void Activate() = 0; | 183 virtual void Activate() = 0; |
| 183 virtual void Deactivate() = 0; | 184 virtual void Deactivate() = 0; |
| 184 virtual bool IsActive() const = 0; | 185 virtual bool IsActive() const = 0; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 204 virtual void SetInactiveRenderingDisabled(bool value) = 0; | 205 virtual void SetInactiveRenderingDisabled(bool value) = 0; |
| 205 | 206 |
| 206 // Overridden from NativeWidget: | 207 // Overridden from NativeWidget: |
| 207 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 208 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
| 208 }; | 209 }; |
| 209 | 210 |
| 210 } // namespace internal | 211 } // namespace internal |
| 211 } // namespace views | 212 } // namespace views |
| 212 | 213 |
| 213 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 214 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| OLD | NEW |