| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 static NativeWidgetPrivate* GetNativeWidgetForNativeView( | 54 static NativeWidgetPrivate* GetNativeWidgetForNativeView( |
| 55 gfx::NativeView native_view); | 55 gfx::NativeView native_view); |
| 56 static NativeWidgetPrivate* GetNativeWidgetForNativeWindow( | 56 static NativeWidgetPrivate* GetNativeWidgetForNativeWindow( |
| 57 gfx::NativeWindow native_window); | 57 gfx::NativeWindow native_window); |
| 58 | 58 |
| 59 // Retrieves the top NativeWidgetPrivate in the hierarchy containing the given | 59 // Retrieves the top NativeWidgetPrivate in the hierarchy containing the given |
| 60 // NativeView, or NULL if there is no NativeWidgetPrivate that contains it. | 60 // NativeView, or NULL if there is no NativeWidgetPrivate that contains it. |
| 61 static NativeWidgetPrivate* GetTopLevelNativeWidget( | 61 static NativeWidgetPrivate* GetTopLevelNativeWidget( |
| 62 gfx::NativeView native_view); | 62 gfx::NativeView native_view); |
| 63 | 63 |
| 64 static void GetAllChildWidgets(gfx::NativeView native_view, | 64 static void GetAllChildAndOwnedWidgets(gfx::NativeView native_view, |
| 65 Widget::Widgets* children); | 65 Widget::Widgets* widgets); |
| 66 static void GetAllOwnedWidgets(gfx::NativeView native_view, | |
| 67 Widget::Widgets* owned); | |
| 68 static void ReparentNativeView(gfx::NativeView native_view, | 66 static void ReparentNativeView(gfx::NativeView native_view, |
| 69 gfx::NativeView new_parent); | 67 gfx::NativeView new_parent); |
| 70 | 68 |
| 71 // Returns true if any mouse button is currently down. | 69 // Returns true if any mouse button is currently down. |
| 72 static bool IsMouseButtonDown(); | 70 static bool IsMouseButtonDown(); |
| 73 | 71 |
| 74 static gfx::FontList GetWindowTitleFontList(); | 72 static gfx::FontList GetWindowTitleFontList(); |
| 75 | 73 |
| 76 // Initializes the NativeWidget. | 74 // Initializes the NativeWidget. |
| 77 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; | 75 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; | 229 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; |
| 232 | 230 |
| 233 // Overridden from NativeWidget: | 231 // Overridden from NativeWidget: |
| 234 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; | 232 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; |
| 235 }; | 233 }; |
| 236 | 234 |
| 237 } // namespace internal | 235 } // namespace internal |
| 238 } // namespace views | 236 } // namespace views |
| 239 | 237 |
| 240 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 238 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| OLD | NEW |