| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ANDROID_NATIVE_WIDGET_ANDROID_H_ | 5 #ifndef UI_VIEWS_WIDGET_ANDROID_NATIVE_WIDGET_ANDROID_H_ |
| 6 #define UI_VIEWS_WIDGET_ANDROID_NATIVE_WIDGET_ANDROID_H_ | 6 #define UI_VIEWS_WIDGET_ANDROID_NATIVE_WIDGET_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 public aura::client::FocusChangeObserver, | 52 public aura::client::FocusChangeObserver, |
| 53 public aura::client::DragDropDelegate, | 53 public aura::client::DragDropDelegate, |
| 54 public aura::WindowTreeHostObserver { | 54 public aura::WindowTreeHostObserver { |
| 55 public: | 55 public: |
| 56 explicit NativeWidgetAndroid(internal::NativeWidgetDelegate* delegate); | 56 explicit NativeWidgetAndroid(internal::NativeWidgetDelegate* delegate); |
| 57 | 57 |
| 58 aura::WindowTreeHost* host() { return host_.get(); } | 58 aura::WindowTreeHost* host() { return host_.get(); } |
| 59 | 59 |
| 60 // Overridden from internal::NativeWidgetPrivate: | 60 // Overridden from internal::NativeWidgetPrivate: |
| 61 void InitNativeWidget(const Widget::InitParams& params) override; | 61 void InitNativeWidget(const Widget::InitParams& params) override; |
| 62 void OnWidgetInitDone() override; |
| 62 NonClientFrameView* CreateNonClientFrameView() override; | 63 NonClientFrameView* CreateNonClientFrameView() override; |
| 63 bool ShouldUseNativeFrame() const override; | 64 bool ShouldUseNativeFrame() const override; |
| 64 bool ShouldWindowContentsBeTransparent() const override; | 65 bool ShouldWindowContentsBeTransparent() const override; |
| 65 void FrameTypeChanged() override; | 66 void FrameTypeChanged() override; |
| 66 Widget* GetWidget() override; | 67 Widget* GetWidget() override; |
| 67 const Widget* GetWidget() const override; | 68 const Widget* GetWidget() const override; |
| 68 gfx::NativeView GetNativeView() const override; | 69 gfx::NativeView GetNativeView() const override; |
| 69 gfx::NativeWindow GetNativeWindow() const override; | 70 gfx::NativeWindow GetNativeWindow() const override; |
| 70 Widget* GetTopLevelWidget() override; | 71 Widget* GetTopLevelWidget() override; |
| 71 const ui::Compositor* GetCompositor() const override; | 72 const ui::Compositor* GetCompositor() const override; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // The following factory is used for calls to close the | 240 // The following factory is used for calls to close the |
| 240 // NativeWidgetAndroid instance. | 241 // NativeWidgetAndroid instance. |
| 241 base::WeakPtrFactory<NativeWidgetAndroid> close_widget_factory_; | 242 base::WeakPtrFactory<NativeWidgetAndroid> close_widget_factory_; |
| 242 | 243 |
| 243 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAndroid); | 244 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAndroid); |
| 244 }; | 245 }; |
| 245 | 246 |
| 246 } // namespace views | 247 } // namespace views |
| 247 | 248 |
| 248 #endif // UI_VIEWS_WIDGET_ANDROID_NATIVE_WIDGET_ANDROID_H_ | 249 #endif // UI_VIEWS_WIDGET_ANDROID_NATIVE_WIDGET_ANDROID_H_ |
| OLD | NEW |