| 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/widget/native_widget.h" | 10 #include "views/widget/native_widget.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 // Returns the Widget associated with this NativeWidget. This function is | 77 // Returns the Widget associated with this NativeWidget. This function is |
| 78 // guaranteed to return non-NULL for the lifetime of the NativeWidget. | 78 // guaranteed to return non-NULL for the lifetime of the NativeWidget. |
| 79 virtual Widget* GetWidget() = 0; | 79 virtual Widget* GetWidget() = 0; |
| 80 virtual const Widget* GetWidget() const = 0; | 80 virtual const Widget* GetWidget() const = 0; |
| 81 | 81 |
| 82 // Returns the NativeView/Window associated with this NativeWidget. | 82 // Returns the NativeView/Window associated with this NativeWidget. |
| 83 virtual gfx::NativeView GetNativeView() const = 0; | 83 virtual gfx::NativeView GetNativeView() const = 0; |
| 84 virtual gfx::NativeWindow GetNativeWindow() const = 0; | 84 virtual gfx::NativeWindow GetNativeWindow() const = 0; |
| 85 | 85 |
| 86 // Returns the topmost Widget in a hierarchy. |
| 87 virtual Widget* GetTopLevelWidget() = 0; |
| 88 |
| 86 // Returns the Compositor, or NULL if there isn't one associated with this | 89 // Returns the Compositor, or NULL if there isn't one associated with this |
| 87 // NativeWidget. | 90 // NativeWidget. |
| 88 virtual const ui::Compositor* GetCompositor() const = 0; | 91 virtual const ui::Compositor* GetCompositor() const = 0; |
| 89 virtual ui::Compositor* GetCompositor() = 0; | 92 virtual ui::Compositor* GetCompositor() = 0; |
| 90 | 93 |
| 91 // See description in View for details. | 94 // See description in View for details. |
| 92 virtual void MarkLayerDirty() = 0; | 95 virtual void MarkLayerDirty() = 0; |
| 93 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, | 96 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, |
| 94 View** ancestor) = 0; | 97 View** ancestor) = 0; |
| 95 | 98 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 207 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
| 205 | 208 |
| 206 // Overridden from NativeWidget: | 209 // Overridden from NativeWidget: |
| 207 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 210 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
| 208 }; | 211 }; |
| 209 | 212 |
| 210 } // namespace internal | 213 } // namespace internal |
| 211 } // namespace views | 214 } // namespace views |
| 212 | 215 |
| 213 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 216 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| OLD | NEW |