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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 gfx::NativeView new_parent); | 67 gfx::NativeView new_parent); |
68 | 68 |
69 // Returns true if any mouse button is currently down. | 69 // Returns true if any mouse button is currently down. |
70 static bool IsMouseButtonDown(); | 70 static bool IsMouseButtonDown(); |
71 | 71 |
72 static gfx::FontList GetWindowTitleFontList(); | 72 static gfx::FontList GetWindowTitleFontList(); |
73 | 73 |
74 // Initializes the NativeWidget. | 74 // Initializes the NativeWidget. |
75 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; | 75 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; |
76 | 76 |
| 77 // Called at the end of Widget::Init(), after Widget has completed |
| 78 // initialization. |
| 79 virtual void OnWidgetInitDone() = 0; |
| 80 |
77 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if | 81 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if |
78 // the NativeWidget wants no special NonClientFrameView. | 82 // the NativeWidget wants no special NonClientFrameView. |
79 virtual NonClientFrameView* CreateNonClientFrameView() = 0; | 83 virtual NonClientFrameView* CreateNonClientFrameView() = 0; |
80 | 84 |
81 virtual bool ShouldUseNativeFrame() const = 0; | 85 virtual bool ShouldUseNativeFrame() const = 0; |
82 virtual bool ShouldWindowContentsBeTransparent() const = 0; | 86 virtual bool ShouldWindowContentsBeTransparent() const = 0; |
83 virtual void FrameTypeChanged() = 0; | 87 virtual void FrameTypeChanged() = 0; |
84 | 88 |
85 // Returns the Widget associated with this NativeWidget. This function is | 89 // Returns the Widget associated with this NativeWidget. This function is |
86 // guaranteed to return non-NULL for the lifetime of the NativeWidget. | 90 // guaranteed to return non-NULL for the lifetime of the NativeWidget. |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; | 225 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; |
222 | 226 |
223 // Overridden from NativeWidget: | 227 // Overridden from NativeWidget: |
224 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; | 228 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; |
225 }; | 229 }; |
226 | 230 |
227 } // namespace internal | 231 } // namespace internal |
228 } // namespace views | 232 } // namespace views |
229 | 233 |
230 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 234 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |