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 28 matching lines...) Expand all Loading... |
39 // NativeWidget implementations. This file should not be included | 39 // NativeWidget implementations. This file should not be included |
40 // in code that does not fall into one of these use cases. | 40 // in code that does not fall into one of these use cases. |
41 // | 41 // |
42 class VIEWS_EXPORT NativeWidgetPrivate : public NativeWidget { | 42 class VIEWS_EXPORT NativeWidgetPrivate : public NativeWidget { |
43 public: | 43 public: |
44 virtual ~NativeWidgetPrivate() {} | 44 virtual ~NativeWidgetPrivate() {} |
45 | 45 |
46 // Creates an appropriate default NativeWidgetPrivate implementation for the | 46 // Creates an appropriate default NativeWidgetPrivate implementation for the |
47 // current OS/circumstance. | 47 // current OS/circumstance. |
48 static NativeWidgetPrivate* CreateNativeWidget( | 48 static NativeWidgetPrivate* CreateNativeWidget( |
49 internal::NativeWidgetDelegate* delegate); | 49 internal::NativeWidgetDelegate* delegate, gfx::NativeView parent); |
50 | 50 |
51 static NativeWidgetPrivate* GetNativeWidgetForNativeView( | 51 static NativeWidgetPrivate* GetNativeWidgetForNativeView( |
52 gfx::NativeView native_view); | 52 gfx::NativeView native_view); |
53 static NativeWidgetPrivate* GetNativeWidgetForNativeWindow( | 53 static NativeWidgetPrivate* GetNativeWidgetForNativeWindow( |
54 gfx::NativeWindow native_window); | 54 gfx::NativeWindow native_window); |
55 | 55 |
56 // Retrieves the top NativeWidgetPrivate in the hierarchy containing the given | 56 // Retrieves the top NativeWidgetPrivate in the hierarchy containing the given |
57 // NativeView, or NULL if there is no NativeWidgetPrivate that contains it. | 57 // NativeView, or NULL if there is no NativeWidgetPrivate that contains it. |
58 static NativeWidgetPrivate* GetTopLevelNativeWidget( | 58 static NativeWidgetPrivate* GetTopLevelNativeWidget( |
59 gfx::NativeView native_view); | 59 gfx::NativeView native_view); |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; | 215 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; |
216 | 216 |
217 // Overridden from NativeWidget: | 217 // Overridden from NativeWidget: |
218 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 218 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
219 }; | 219 }; |
220 | 220 |
221 } // namespace internal | 221 } // namespace internal |
222 } // namespace views | 222 } // namespace views |
223 | 223 |
224 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 224 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |