| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 // 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 |
| 98 // window reverts to rectangular. | 98 // window reverts to rectangular. |
| 99 virtual void SetShape(std::unique_ptr<SkRegion> native_region) = 0; | 99 virtual void SetShape(std::unique_ptr<SkRegion> native_region) = 0; |
| 100 | 100 |
| 101 virtual void Activate() = 0; | 101 virtual void Activate() = 0; |
| 102 virtual void Deactivate() = 0; | 102 virtual void Deactivate() = 0; |
| 103 virtual bool IsActive() const = 0; | 103 virtual bool IsActive() const = 0; |
| 104 virtual void Maximize() = 0; | 104 virtual void Maximize() = 0; |
| 105 virtual void Minimize() = 0; | 105 virtual void Minimize() = 0; |
| 106 virtual void Pin(bool trusted) = 0; |
| 106 virtual void Restore() = 0; | 107 virtual void Restore() = 0; |
| 107 virtual bool IsMaximized() const = 0; | 108 virtual bool IsMaximized() const = 0; |
| 108 virtual bool IsMinimized() const = 0; | 109 virtual bool IsMinimized() const = 0; |
| 110 virtual bool IsPinned() const = 0; |
| 109 | 111 |
| 110 virtual bool HasCapture() const = 0; | 112 virtual bool HasCapture() const = 0; |
| 111 | 113 |
| 112 virtual void SetAlwaysOnTop(bool always_on_top) = 0; | 114 virtual void SetAlwaysOnTop(bool always_on_top) = 0; |
| 113 virtual bool IsAlwaysOnTop() const = 0; | 115 virtual bool IsAlwaysOnTop() const = 0; |
| 114 | 116 |
| 115 virtual void SetVisibleOnAllWorkspaces(bool always_visible) = 0; | 117 virtual void SetVisibleOnAllWorkspaces(bool always_visible) = 0; |
| 116 virtual bool IsVisibleOnAllWorkspaces() const = 0; | 118 virtual bool IsVisibleOnAllWorkspaces() const = 0; |
| 117 | 119 |
| 118 // Returns true if the title changed. | 120 // Returns true if the title changed. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // cursors itself. | 170 // cursors itself. |
| 169 virtual bool ShouldUseDesktopNativeCursorManager() const = 0; | 171 virtual bool ShouldUseDesktopNativeCursorManager() const = 0; |
| 170 | 172 |
| 171 // Returns whether a VisibilityController should be created. | 173 // Returns whether a VisibilityController should be created. |
| 172 virtual bool ShouldCreateVisibilityController() const = 0; | 174 virtual bool ShouldCreateVisibilityController() const = 0; |
| 173 }; | 175 }; |
| 174 | 176 |
| 175 } // namespace views | 177 } // namespace views |
| 176 | 178 |
| 177 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 179 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
| OLD | NEW |