| 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 <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 11 #include "ui/base/ui_base_types.h" | 12 #include "ui/base/ui_base_types.h" |
| 12 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 13 #include "ui/views/widget/native_widget.h" | 14 #include "ui/views/widget/native_widget.h" |
| 14 | 15 |
| 15 namespace gfx { | 16 namespace gfx { |
| 16 class FontList; | 17 class FontList; |
| 17 class ImageSkia; | 18 class ImageSkia; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // See method documentation in Widget. | 171 // See method documentation in Widget. |
| 171 virtual gfx::Rect GetWindowBoundsInScreen() const = 0; | 172 virtual gfx::Rect GetWindowBoundsInScreen() const = 0; |
| 172 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; | 173 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; |
| 173 virtual gfx::Rect GetRestoredBounds() const = 0; | 174 virtual gfx::Rect GetRestoredBounds() const = 0; |
| 174 virtual std::string GetWorkspace() const = 0; | 175 virtual std::string GetWorkspace() const = 0; |
| 175 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 176 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
| 176 virtual void SetSize(const gfx::Size& size) = 0; | 177 virtual void SetSize(const gfx::Size& size) = 0; |
| 177 virtual void StackAbove(gfx::NativeView native_view) = 0; | 178 virtual void StackAbove(gfx::NativeView native_view) = 0; |
| 178 virtual void StackAtTop() = 0; | 179 virtual void StackAtTop() = 0; |
| 179 virtual void StackBelow(gfx::NativeView native_view) = 0; | 180 virtual void StackBelow(gfx::NativeView native_view) = 0; |
| 180 virtual void SetShape(SkRegion* shape) = 0; | 181 virtual void SetShape(std::unique_ptr<SkRegion> shape) = 0; |
| 181 virtual void Close() = 0; | 182 virtual void Close() = 0; |
| 182 virtual void CloseNow() = 0; | 183 virtual void CloseNow() = 0; |
| 183 virtual void Show() = 0; | 184 virtual void Show() = 0; |
| 184 virtual void Hide() = 0; | 185 virtual void Hide() = 0; |
| 185 // Invoked if the initial show should maximize the window. |restored_bounds| | 186 // Invoked if the initial show should maximize the window. |restored_bounds| |
| 186 // is the bounds of the window when not maximized. | 187 // is the bounds of the window when not maximized. |
| 187 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; | 188 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; |
| 188 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; | 189 virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0; |
| 189 virtual bool IsVisible() const = 0; | 190 virtual bool IsVisible() const = 0; |
| 190 virtual void Activate() = 0; | 191 virtual void Activate() = 0; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 virtual std::string GetName() const = 0; | 236 virtual std::string GetName() const = 0; |
| 236 | 237 |
| 237 // Overridden from NativeWidget: | 238 // Overridden from NativeWidget: |
| 238 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; | 239 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // namespace internal | 242 } // namespace internal |
| 242 } // namespace views | 243 } // namespace views |
| 243 | 244 |
| 244 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 245 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| OLD | NEW |