| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 virtual void ClearNativeFocus() = 0; | 121 virtual void ClearNativeFocus() = 0; |
| 122 | 122 |
| 123 virtual Widget::MoveLoopResult RunMoveLoop( | 123 virtual Widget::MoveLoopResult RunMoveLoop( |
| 124 const gfx::Vector2d& drag_offset, | 124 const gfx::Vector2d& drag_offset, |
| 125 Widget::MoveLoopSource source, | 125 Widget::MoveLoopSource source, |
| 126 Widget::MoveLoopEscapeBehavior escape_behavior) = 0; | 126 Widget::MoveLoopEscapeBehavior escape_behavior) = 0; |
| 127 virtual void EndMoveLoop() = 0; | 127 virtual void EndMoveLoop() = 0; |
| 128 | 128 |
| 129 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; | 129 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; |
| 130 | 130 |
| 131 virtual NonClientFrameView* CreateNonClientFrameView() = 0; |
| 132 |
| 131 // Determines whether the window should use native title bar and borders. | 133 // Determines whether the window should use native title bar and borders. |
| 132 virtual bool ShouldUseNativeFrame() const = 0; | 134 virtual bool ShouldUseNativeFrame() const = 0; |
| 133 // Determines whether the window contents should be rendered transparently | 135 // Determines whether the window contents should be rendered transparently |
| 134 // (for example, so that they can overhang onto the window title bar). | 136 // (for example, so that they can overhang onto the window title bar). |
| 135 virtual bool ShouldWindowContentsBeTransparent() const = 0; | 137 virtual bool ShouldWindowContentsBeTransparent() const = 0; |
| 136 virtual void FrameTypeChanged() = 0; | 138 virtual void FrameTypeChanged() = 0; |
| 137 | 139 |
| 138 virtual void SetFullscreen(bool fullscreen) = 0; | 140 virtual void SetFullscreen(bool fullscreen) = 0; |
| 139 virtual bool IsFullscreen() const = 0; | 141 virtual bool IsFullscreen() const = 0; |
| 140 | 142 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 154 // Returns true if the Widget supports translucency. | 156 // Returns true if the Widget supports translucency. |
| 155 virtual bool IsTranslucentWindowOpacitySupported() const = 0; | 157 virtual bool IsTranslucentWindowOpacitySupported() const = 0; |
| 156 | 158 |
| 157 // Called when the window's size constraints change. | 159 // Called when the window's size constraints change. |
| 158 virtual void SizeConstraintsChanged() = 0; | 160 virtual void SizeConstraintsChanged() = 0; |
| 159 }; | 161 }; |
| 160 | 162 |
| 161 } // namespace views | 163 } // namespace views |
| 162 | 164 |
| 163 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 165 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
| OLD | NEW |