| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 virtual void OnRootViewLayout() const = 0; | 146 virtual void OnRootViewLayout() const = 0; |
| 147 | 147 |
| 148 // Called when the DesktopNativeWidgetAura's aura::Window is focused and | 148 // Called when the DesktopNativeWidgetAura's aura::Window is focused and |
| 149 // blurred. | 149 // blurred. |
| 150 virtual void OnNativeWidgetFocus() = 0; | 150 virtual void OnNativeWidgetFocus() = 0; |
| 151 virtual void OnNativeWidgetBlur() = 0; | 151 virtual void OnNativeWidgetBlur() = 0; |
| 152 | 152 |
| 153 // 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 |
| 154 // animations. | 154 // animations. |
| 155 virtual bool IsAnimatingClosed() const = 0; | 155 virtual bool IsAnimatingClosed() const = 0; |
| 156 |
| 157 // Returns true if the Widget supports translucency. |
| 158 virtual bool IsTranslucentWindowOpacitySupported() const = 0; |
| 156 }; | 159 }; |
| 157 | 160 |
| 158 } // namespace views | 161 } // namespace views |
| 159 | 162 |
| 160 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 163 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
| OLD | NEW |