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_NATIVE_WIDGET_PRIVATE_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Returns the Compositor, or NULL if there isn't one associated with this | 95 // Returns the Compositor, or NULL if there isn't one associated with this |
96 // NativeWidget. | 96 // NativeWidget. |
97 virtual const ui::Compositor* GetCompositor() const = 0; | 97 virtual const ui::Compositor* GetCompositor() const = 0; |
98 virtual ui::Compositor* GetCompositor() = 0; | 98 virtual ui::Compositor* GetCompositor() = 0; |
99 | 99 |
100 // See description in View for details. | 100 // See description in View for details. |
101 virtual gfx::Vector2d CalculateOffsetToAncestorWithLayer( | 101 virtual gfx::Vector2d CalculateOffsetToAncestorWithLayer( |
102 ui::Layer** layer_parent) = 0; | 102 ui::Layer** layer_parent) = 0; |
103 | 103 |
| 104 // Reorder the child layers of the widget's layer so that their order matches |
| 105 // the order of views with layers / views with attached layers in the view |
| 106 // hierarchy. |
| 107 virtual void ReorderLayers() = 0; |
| 108 |
| 109 // Returns true if a child NativeView is attached to one of the widget's |
| 110 // views. |
| 111 virtual bool HasNativeViewAttachedToViewTree() const = 0; |
| 112 |
104 // Notifies the NativeWidget that a view was removed from the Widget's view | 113 // Notifies the NativeWidget that a view was removed from the Widget's view |
105 // hierarchy. | 114 // hierarchy. |
106 virtual void ViewRemoved(View* view) = 0; | 115 virtual void ViewRemoved(View* view) = 0; |
107 | 116 |
108 // Sets/Gets a native window property on the underlying native window object. | 117 // Sets/Gets a native window property on the underlying native window object. |
109 // Returns NULL if the property does not exist. Setting the property value to | 118 // Returns NULL if the property does not exist. Setting the property value to |
110 // NULL removes the property. | 119 // NULL removes the property. |
111 virtual void SetNativeWindowProperty(const char* name, void* value) = 0; | 120 virtual void SetNativeWindowProperty(const char* name, void* value) = 0; |
112 virtual void* GetNativeWindowProperty(const char* name) const = 0; | 121 virtual void* GetNativeWindowProperty(const char* name) const = 0; |
113 | 122 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 virtual ui::NativeTheme* GetNativeTheme() const = 0; | 215 virtual ui::NativeTheme* GetNativeTheme() const = 0; |
207 | 216 |
208 // Overridden from NativeWidget: | 217 // Overridden from NativeWidget: |
209 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 218 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
210 }; | 219 }; |
211 | 220 |
212 } // namespace internal | 221 } // namespace internal |
213 } // namespace views | 222 } // namespace views |
214 | 223 |
215 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 224 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |