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/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "ui/aura/client/focus_change_observer.h" | 9 #include "ui/aura/client/focus_change_observer.h" |
10 #include "ui/aura/window_delegate.h" | 10 #include "ui/aura/window_delegate.h" |
(...skipping 23 matching lines...) Expand all Loading... | |
34 : public internal::NativeWidgetPrivate, | 34 : public internal::NativeWidgetPrivate, |
35 public aura::WindowDelegate, | 35 public aura::WindowDelegate, |
36 public aura::WindowObserver, | 36 public aura::WindowObserver, |
37 public aura::client::ActivationDelegate, | 37 public aura::client::ActivationDelegate, |
38 public aura::client::ActivationChangeObserver, | 38 public aura::client::ActivationChangeObserver, |
39 public aura::client::FocusChangeObserver, | 39 public aura::client::FocusChangeObserver, |
40 public aura::client::DragDropDelegate { | 40 public aura::client::DragDropDelegate { |
41 public: | 41 public: |
42 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); | 42 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); |
43 | 43 |
44 // Called internally by NativeWidgetAura and DesktopNativeWidgetAura to | 44 // Called internally by NativeWidgetAura, DesktopNativeWidgetAura and |
45 // associate |native_widget| with |window|. | 45 // DesktopNativeWidgetAndroid to associate |native_widget| with |window|. |
sky
2015/11/18 19:11:06
NativeWidgetAndroid, or nuke all the names and say
bshe
2015/11/18 19:29:52
Done.
| |
46 static void RegisterNativeWidgetForWindow( | 46 static void RegisterNativeWidgetForWindow( |
47 internal::NativeWidgetPrivate* native_widget, | 47 internal::NativeWidgetPrivate* native_widget, |
48 aura::Window* window); | 48 aura::Window* window); |
49 | 49 |
50 // Overridden from internal::NativeWidgetPrivate: | 50 // Overridden from internal::NativeWidgetPrivate: |
51 void InitNativeWidget(const Widget::InitParams& params) override; | 51 void InitNativeWidget(const Widget::InitParams& params) override; |
52 NonClientFrameView* CreateNonClientFrameView() override; | 52 NonClientFrameView* CreateNonClientFrameView() override; |
53 bool ShouldUseNativeFrame() const override; | 53 bool ShouldUseNativeFrame() const override; |
54 bool ShouldWindowContentsBeTransparent() const override; | 54 bool ShouldWindowContentsBeTransparent() const override; |
55 void FrameTypeChanged() override; | 55 void FrameTypeChanged() override; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 // The following factory is used for calls to close the NativeWidgetAura | 224 // The following factory is used for calls to close the NativeWidgetAura |
225 // instance. | 225 // instance. |
226 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 226 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
227 | 227 |
228 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 228 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
229 }; | 229 }; |
230 | 230 |
231 } // namespace views | 231 } // namespace views |
232 | 232 |
233 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 233 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |