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_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "ui/aura/client/focus_change_observer.h" | 10 #include "ui/aura/client/focus_change_observer.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); | 43 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); |
44 | 44 |
45 // Called internally by NativeWidget implementations to associate | 45 // Called internally by NativeWidget implementations to associate |
46 // |native_widget| with |window|. | 46 // |native_widget| with |window|. |
47 static void RegisterNativeWidgetForWindow( | 47 static void RegisterNativeWidgetForWindow( |
48 internal::NativeWidgetPrivate* native_widget, | 48 internal::NativeWidgetPrivate* native_widget, |
49 aura::Window* window); | 49 aura::Window* window); |
50 | 50 |
51 // Overridden from internal::NativeWidgetPrivate: | 51 // Overridden from internal::NativeWidgetPrivate: |
52 void InitNativeWidget(const Widget::InitParams& params) override; | 52 void InitNativeWidget(const Widget::InitParams& params) override; |
| 53 void OnWidgetInitDone() override; |
53 NonClientFrameView* CreateNonClientFrameView() override; | 54 NonClientFrameView* CreateNonClientFrameView() override; |
54 bool ShouldUseNativeFrame() const override; | 55 bool ShouldUseNativeFrame() const override; |
55 bool ShouldWindowContentsBeTransparent() const override; | 56 bool ShouldWindowContentsBeTransparent() const override; |
56 void FrameTypeChanged() override; | 57 void FrameTypeChanged() override; |
57 Widget* GetWidget() override; | 58 Widget* GetWidget() override; |
58 const Widget* GetWidget() const override; | 59 const Widget* GetWidget() const override; |
59 gfx::NativeView GetNativeView() const override; | 60 gfx::NativeView GetNativeView() const override; |
60 gfx::NativeWindow GetNativeWindow() const override; | 61 gfx::NativeWindow GetNativeWindow() const override; |
61 Widget* GetTopLevelWidget() override; | 62 Widget* GetTopLevelWidget() override; |
62 const ui::Compositor* GetCompositor() const override; | 63 const ui::Compositor* GetCompositor() const override; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // The following factory is used for calls to close the NativeWidgetAura | 226 // The following factory is used for calls to close the NativeWidgetAura |
226 // instance. | 227 // instance. |
227 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 228 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
228 | 229 |
229 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 230 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
230 }; | 231 }; |
231 | 232 |
232 } // namespace views | 233 } // namespace views |
233 | 234 |
234 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 235 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |