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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual Widget* GetTopLevelWidget() = 0; | 93 virtual Widget* GetTopLevelWidget() = 0; |
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 // Returns the NativeWidget's layer, if any. | 100 // Returns the NativeWidget's layer, if any. |
101 virtual ui::Layer* GetLayer() = 0; | 101 virtual ui::Layer* GetLayer() = 0; |
102 | 102 |
| 103 // Reorders the widget's child NativeViews which are associated to the view |
| 104 // tree (eg via a NativeViewHost) to match the z-order of the views in the |
| 105 // view tree. The z-order of views with layers relative to views with |
| 106 // associated NativeViews is used to reorder the NativeView layers. This |
| 107 // method assumes that the widget's child layers which are owned by a view are |
| 108 // already in the correct z-order relative to each other and does no |
| 109 // reordering if there are no views with an associated NativeView. |
| 110 virtual void ReorderNativeViews() = 0; |
| 111 |
103 // Notifies the NativeWidget that a view was removed from the Widget's view | 112 // Notifies the NativeWidget that a view was removed from the Widget's view |
104 // hierarchy. | 113 // hierarchy. |
105 virtual void ViewRemoved(View* view) = 0; | 114 virtual void ViewRemoved(View* view) = 0; |
106 | 115 |
107 // Sets/Gets a native window property on the underlying native window object. | 116 // Sets/Gets a native window property on the underlying native window object. |
108 // Returns NULL if the property does not exist. Setting the property value to | 117 // Returns NULL if the property does not exist. Setting the property value to |
109 // NULL removes the property. | 118 // NULL removes the property. |
110 virtual void SetNativeWindowProperty(const char* name, void* value) = 0; | 119 virtual void SetNativeWindowProperty(const char* name, void* value) = 0; |
111 virtual void* GetNativeWindowProperty(const char* name) const = 0; | 120 virtual void* GetNativeWindowProperty(const char* name) const = 0; |
112 | 121 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 virtual ui::NativeTheme* GetNativeTheme() const = 0; | 214 virtual ui::NativeTheme* GetNativeTheme() const = 0; |
206 | 215 |
207 // Overridden from NativeWidget: | 216 // Overridden from NativeWidget: |
208 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 217 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
209 }; | 218 }; |
210 | 219 |
211 } // namespace internal | 220 } // namespace internal |
212 } // namespace views | 221 } // namespace views |
213 | 222 |
214 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 223 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |