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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual gfx::NativeWindow GetNativeWindow() const = 0; | 90 virtual gfx::NativeWindow GetNativeWindow() const = 0; |
91 | 91 |
92 // Returns the topmost Widget in a hierarchy. | 92 // Returns the topmost Widget in a hierarchy. |
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 // See description in View for details. | 100 // Returns the NativeWidget's layer, if any. |
101 virtual gfx::Vector2d CalculateOffsetToAncestorWithLayer( | 101 virtual ui::Layer* GetLayer() = 0; |
102 ui::Layer** layer_parent) = 0; | |
103 | 102 |
104 // Notifies the NativeWidget that a view was removed from the Widget's view | 103 // Notifies the NativeWidget that a view was removed from the Widget's view |
105 // hierarchy. | 104 // hierarchy. |
106 virtual void ViewRemoved(View* view) = 0; | 105 virtual void ViewRemoved(View* view) = 0; |
107 | 106 |
108 // Sets/Gets a native window property on the underlying native window object. | 107 // 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 | 108 // Returns NULL if the property does not exist. Setting the property value to |
110 // NULL removes the property. | 109 // NULL removes the property. |
111 virtual void SetNativeWindowProperty(const char* name, void* value) = 0; | 110 virtual void SetNativeWindowProperty(const char* name, void* value) = 0; |
112 virtual void* GetNativeWindowProperty(const char* name) const = 0; | 111 virtual void* GetNativeWindowProperty(const char* name) const = 0; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 virtual ui::NativeTheme* GetNativeTheme() const = 0; | 205 virtual ui::NativeTheme* GetNativeTheme() const = 0; |
207 | 206 |
208 // Overridden from NativeWidget: | 207 // Overridden from NativeWidget: |
209 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 208 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
210 }; | 209 }; |
211 | 210 |
212 } // namespace internal | 211 } // namespace internal |
213 } // namespace views | 212 } // namespace views |
214 | 213 |
215 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 214 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |