| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // Determines whether the window should use native title bar and borders. | 130 // Determines whether the window should use native title bar and borders. |
| 131 virtual bool ShouldUseNativeFrame() const = 0; | 131 virtual bool ShouldUseNativeFrame() const = 0; |
| 132 // Determines whether the window contents should be rendered transparently | 132 // Determines whether the window contents should be rendered transparently |
| 133 // (for example, so that they can overhang onto the window title bar). | 133 // (for example, so that they can overhang onto the window title bar). |
| 134 virtual bool ShouldWindowContentsBeTransparent() const = 0; | 134 virtual bool ShouldWindowContentsBeTransparent() const = 0; |
| 135 virtual void FrameTypeChanged() = 0; | 135 virtual void FrameTypeChanged() = 0; |
| 136 | 136 |
| 137 virtual void SetFullscreen(bool fullscreen) = 0; | 137 virtual void SetFullscreen(bool fullscreen) = 0; |
| 138 virtual bool IsFullscreen() const = 0; | 138 virtual bool IsFullscreen() const = 0; |
| 139 | 139 |
| 140 virtual void SetOpacity(unsigned char opacity) = 0; | 140 virtual void SetOpacity(float opacity) = 0; |
| 141 | 141 |
| 142 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, | 142 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, |
| 143 const gfx::ImageSkia& app_icon) = 0; | 143 const gfx::ImageSkia& app_icon) = 0; |
| 144 | 144 |
| 145 virtual void InitModalType(ui::ModalType modal_type) = 0; | 145 virtual void InitModalType(ui::ModalType modal_type) = 0; |
| 146 | 146 |
| 147 virtual void FlashFrame(bool flash_frame) = 0; | 147 virtual void FlashFrame(bool flash_frame) = 0; |
| 148 | 148 |
| 149 virtual void OnRootViewLayout() = 0; | 149 virtual void OnRootViewLayout() = 0; |
| 150 | 150 |
| 151 // Called when the DesktopNativeWidgetAura's aura::Window is focused and | 151 // Called when the DesktopNativeWidgetAura's aura::Window is focused and |
| 152 // blurred. | 152 // blurred. |
| 153 virtual void OnNativeWidgetFocus() = 0; | 153 virtual void OnNativeWidgetFocus() = 0; |
| 154 virtual void OnNativeWidgetBlur() = 0; | 154 virtual void OnNativeWidgetBlur() = 0; |
| 155 | 155 |
| 156 // Returns true if the Widget was closed but is still showing because of | 156 // Returns true if the Widget was closed but is still showing because of |
| 157 // animations. | 157 // animations. |
| 158 virtual bool IsAnimatingClosed() const = 0; | 158 virtual bool IsAnimatingClosed() const = 0; |
| 159 | 159 |
| 160 // Returns true if the Widget supports translucency. | 160 // Returns true if the Widget supports translucency. |
| 161 virtual bool IsTranslucentWindowOpacitySupported() const = 0; | 161 virtual bool IsTranslucentWindowOpacitySupported() const = 0; |
| 162 | 162 |
| 163 // Called when the window's size constraints change. | 163 // Called when the window's size constraints change. |
| 164 virtual void SizeConstraintsChanged() = 0; | 164 virtual void SizeConstraintsChanged() = 0; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace views | 167 } // namespace views |
| 168 | 168 |
| 169 #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 |