| 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_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ui/aura/window_event_dispatcher.h" | 10 #include "ui/aura/window_event_dispatcher.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 virtual void SetSize(const gfx::Size& size) = 0; | 84 virtual void SetSize(const gfx::Size& size) = 0; |
| 85 virtual void StackAbove(aura::Window* window) = 0; | 85 virtual void StackAbove(aura::Window* window) = 0; |
| 86 virtual void StackAtTop() = 0; | 86 virtual void StackAtTop() = 0; |
| 87 virtual void CenterWindow(const gfx::Size& size) = 0; | 87 virtual void CenterWindow(const gfx::Size& size) = 0; |
| 88 virtual void GetWindowPlacement(gfx::Rect* bounds, | 88 virtual void GetWindowPlacement(gfx::Rect* bounds, |
| 89 ui::WindowShowState* show_state) const = 0; | 89 ui::WindowShowState* show_state) const = 0; |
| 90 virtual gfx::Rect GetWindowBoundsInScreen() const = 0; | 90 virtual gfx::Rect GetWindowBoundsInScreen() const = 0; |
| 91 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; | 91 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; |
| 92 virtual gfx::Rect GetRestoredBounds() const = 0; | 92 virtual gfx::Rect GetRestoredBounds() const = 0; |
| 93 virtual std::string GetWorkspace() const = 0; |
| 93 | 94 |
| 94 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; | 95 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; |
| 95 | 96 |
| 96 // Sets the shape of the root window. If |native_region| is NULL then the | 97 // Sets the shape of the root window. If |native_region| is NULL then the |
| 97 // window reverts to rectangular. Takes ownership of |native_region|. | 98 // window reverts to rectangular. Takes ownership of |native_region|. |
| 98 virtual void SetShape(SkRegion* native_region) = 0; | 99 virtual void SetShape(SkRegion* native_region) = 0; |
| 99 | 100 |
| 100 virtual void Activate() = 0; | 101 virtual void Activate() = 0; |
| 101 virtual void Deactivate() = 0; | 102 virtual void Deactivate() = 0; |
| 102 virtual bool IsActive() const = 0; | 103 virtual bool IsActive() const = 0; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // Returns true if the Widget supports translucency. | 160 // Returns true if the Widget supports translucency. |
| 160 virtual bool IsTranslucentWindowOpacitySupported() const = 0; | 161 virtual bool IsTranslucentWindowOpacitySupported() const = 0; |
| 161 | 162 |
| 162 // Called when the window's size constraints change. | 163 // Called when the window's size constraints change. |
| 163 virtual void SizeConstraintsChanged() = 0; | 164 virtual void SizeConstraintsChanged() = 0; |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace views | 167 } // namespace views |
| 167 | 168 |
| 168 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 169 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
| OLD | NEW |