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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/aura/window_event_dispatcher.h" | 9 #include "ui/aura/window_event_dispatcher.h" |
10 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 virtual void EndMoveLoop() = 0; | 123 virtual void EndMoveLoop() = 0; |
124 | 124 |
125 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; | 125 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; |
126 | 126 |
127 // Determines whether the window should use native title bar and borders. | 127 // Determines whether the window should use native title bar and borders. |
128 virtual bool ShouldUseNativeFrame() const = 0; | 128 virtual bool ShouldUseNativeFrame() const = 0; |
129 // Determines whether the window contents should be rendered transparently | 129 // Determines whether the window contents should be rendered transparently |
130 // (for example, so that they can overhang onto the window title bar). | 130 // (for example, so that they can overhang onto the window title bar). |
131 virtual bool ShouldWindowContentsBeTransparent() const = 0; | 131 virtual bool ShouldWindowContentsBeTransparent() const = 0; |
132 virtual void FrameTypeChanged() = 0; | 132 virtual void FrameTypeChanged() = 0; |
133 virtual NonClientFrameView* CreateNonClientFrameView() = 0; | |
134 | 133 |
135 virtual void SetFullscreen(bool fullscreen) = 0; | 134 virtual void SetFullscreen(bool fullscreen) = 0; |
136 virtual bool IsFullscreen() const = 0; | 135 virtual bool IsFullscreen() const = 0; |
137 | 136 |
138 virtual void SetOpacity(unsigned char opacity) = 0; | 137 virtual void SetOpacity(unsigned char opacity) = 0; |
139 | 138 |
140 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, | 139 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, |
141 const gfx::ImageSkia& app_icon) = 0; | 140 const gfx::ImageSkia& app_icon) = 0; |
142 | 141 |
143 virtual void InitModalType(ui::ModalType modal_type) = 0; | 142 virtual void InitModalType(ui::ModalType modal_type) = 0; |
144 | 143 |
145 virtual void FlashFrame(bool flash_frame) = 0; | 144 virtual void FlashFrame(bool flash_frame) = 0; |
146 | 145 |
147 virtual void OnRootViewLayout() const = 0; | 146 virtual void OnRootViewLayout() const = 0; |
148 | 147 |
149 // Called when the DesktopNativeWidgetAura's aura::Window is focused and | 148 // Called when the DesktopNativeWidgetAura's aura::Window is focused and |
150 // blurred. | 149 // blurred. |
151 virtual void OnNativeWidgetFocus() = 0; | 150 virtual void OnNativeWidgetFocus() = 0; |
152 virtual void OnNativeWidgetBlur() = 0; | 151 virtual void OnNativeWidgetBlur() = 0; |
153 | 152 |
154 // Returns true if the Widget was closed but is still showing because of | 153 // Returns true if the Widget was closed but is still showing because of |
155 // animations. | 154 // animations. |
156 virtual bool IsAnimatingClosed() const = 0; | 155 virtual bool IsAnimatingClosed() const = 0; |
157 }; | 156 }; |
158 | 157 |
159 } // namespace views | 158 } // namespace views |
160 | 159 |
161 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 160 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
OLD | NEW |