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/strings/string16.h" | 8 #include "base/strings/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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 // Returns the Widget associated with this NativeWidget. This function is | 87 // Returns the Widget associated with this NativeWidget. This function is |
88 // guaranteed to return non-NULL for the lifetime of the NativeWidget. | 88 // guaranteed to return non-NULL for the lifetime of the NativeWidget. |
89 virtual Widget* GetWidget() = 0; | 89 virtual Widget* GetWidget() = 0; |
90 virtual const Widget* GetWidget() const = 0; | 90 virtual const Widget* GetWidget() const = 0; |
91 | 91 |
92 // Returns the NativeView/Window associated with this NativeWidget. | 92 // Returns the NativeView/Window associated with this NativeWidget. |
93 virtual gfx::NativeView GetNativeView() const = 0; | 93 virtual gfx::NativeView GetNativeView() const = 0; |
94 virtual gfx::NativeWindow GetNativeWindow() const = 0; | 94 virtual gfx::NativeWindow GetNativeWindow() const = 0; |
95 | 95 |
| 96 // Returns the native accessibility interface for this widget. |
| 97 virtual gfx::NativeViewAccessible GetNativeViewAccessible() const = 0; |
| 98 |
96 // Returns the topmost Widget in a hierarchy. | 99 // Returns the topmost Widget in a hierarchy. |
97 virtual Widget* GetTopLevelWidget() = 0; | 100 virtual Widget* GetTopLevelWidget() = 0; |
98 | 101 |
99 // Returns the Compositor, or NULL if there isn't one associated with this | 102 // Returns the Compositor, or NULL if there isn't one associated with this |
100 // NativeWidget. | 103 // NativeWidget. |
101 virtual const ui::Compositor* GetCompositor() const = 0; | 104 virtual const ui::Compositor* GetCompositor() const = 0; |
102 virtual ui::Compositor* GetCompositor() = 0; | 105 virtual ui::Compositor* GetCompositor() = 0; |
103 | 106 |
104 // Returns the NativeWidget's layer, if any. | 107 // Returns the NativeWidget's layer, if any. |
105 virtual ui::Layer* GetLayer() = 0; | 108 virtual ui::Layer* GetLayer() = 0; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; | 233 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; |
231 | 234 |
232 // Overridden from NativeWidget: | 235 // Overridden from NativeWidget: |
233 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 236 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
234 }; | 237 }; |
235 | 238 |
236 } // namespace internal | 239 } // namespace internal |
237 } // namespace views | 240 } // namespace views |
238 | 241 |
239 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 242 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |