OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 #include "views/ime/input_method_delegate.h" | 10 #include "views/ime/input_method_delegate.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 // Returns the topmost Widget in a hierarchy. | 88 // Returns the topmost Widget in a hierarchy. |
89 virtual Widget* GetTopLevelWidget() = 0; | 89 virtual Widget* GetTopLevelWidget() = 0; |
90 | 90 |
91 // Returns the Compositor, or NULL if there isn't one associated with this | 91 // Returns the Compositor, or NULL if there isn't one associated with this |
92 // NativeWidget. | 92 // NativeWidget. |
93 virtual const ui::Compositor* GetCompositor() const = 0; | 93 virtual const ui::Compositor* GetCompositor() const = 0; |
94 virtual ui::Compositor* GetCompositor() = 0; | 94 virtual ui::Compositor* GetCompositor() = 0; |
95 | 95 |
96 // See description in View for details. | 96 // See description in View for details. |
97 virtual void MarkLayerDirty() = 0; | |
98 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, | 97 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, |
99 View** ancestor) = 0; | 98 ui::Layer** layer_parent) = 0; |
100 | 99 |
101 // Notifies the NativeWidget that a view was removed from the Widget's view | 100 // Notifies the NativeWidget that a view was removed from the Widget's view |
102 // hierarchy. | 101 // hierarchy. |
103 virtual void ViewRemoved(View* view) = 0; | 102 virtual void ViewRemoved(View* view) = 0; |
104 | 103 |
105 // Sets/Gets a native window property on the underlying native window object. | 104 // Sets/Gets a native window property on the underlying native window object. |
106 // Returns NULL if the property does not exist. Setting the property value to | 105 // Returns NULL if the property does not exist. Setting the property value to |
107 // NULL removes the property. | 106 // NULL removes the property. |
108 virtual void SetNativeWindowProperty(const char* name, void* value) = 0; | 107 virtual void SetNativeWindowProperty(const char* name, void* value) = 0; |
109 virtual void* GetNativeWindowProperty(const char* name) const = 0; | 108 virtual void* GetNativeWindowProperty(const char* name) const = 0; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 const Widget* ancestor, gfx::Point* point) const = 0; | 205 const Widget* ancestor, gfx::Point* point) 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 // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 214 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |