| 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_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 return host_.get(); | 84 return host_.get(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 // Ensures that the correct window is activated/deactivated based on whether | 87 // Ensures that the correct window is activated/deactivated based on whether |
| 88 // we are being activated/deactivated. | 88 // we are being activated/deactivated. |
| 89 void HandleActivationChanged(bool active); | 89 void HandleActivationChanged(bool active); |
| 90 | 90 |
| 91 protected: | 91 protected: |
| 92 // Overridden from internal::NativeWidgetPrivate: | 92 // Overridden from internal::NativeWidgetPrivate: |
| 93 void InitNativeWidget(const Widget::InitParams& params) override; | 93 void InitNativeWidget(const Widget::InitParams& params) override; |
| 94 void OnWidgetInitDone() override; |
| 94 NonClientFrameView* CreateNonClientFrameView() override; | 95 NonClientFrameView* CreateNonClientFrameView() override; |
| 95 bool ShouldUseNativeFrame() const override; | 96 bool ShouldUseNativeFrame() const override; |
| 96 bool ShouldWindowContentsBeTransparent() const override; | 97 bool ShouldWindowContentsBeTransparent() const override; |
| 97 void FrameTypeChanged() override; | 98 void FrameTypeChanged() override; |
| 98 Widget* GetWidget() override; | 99 Widget* GetWidget() override; |
| 99 const Widget* GetWidget() const override; | 100 const Widget* GetWidget() const override; |
| 100 gfx::NativeView GetNativeView() const override; | 101 gfx::NativeView GetNativeView() const override; |
| 101 gfx::NativeWindow GetNativeWindow() const override; | 102 gfx::NativeWindow GetNativeWindow() const override; |
| 102 Widget* GetTopLevelWidget() override; | 103 Widget* GetTopLevelWidget() override; |
| 103 const ui::Compositor* GetCompositor() const override; | 104 const ui::Compositor* GetCompositor() const override; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // The following factory is used for calls to close the NativeWidgetAura | 302 // The following factory is used for calls to close the NativeWidgetAura |
| 302 // instance. | 303 // instance. |
| 303 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; | 304 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; |
| 304 | 305 |
| 305 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 306 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
| 306 }; | 307 }; |
| 307 | 308 |
| 308 } // namespace views | 309 } // namespace views |
| 309 | 310 |
| 310 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 311 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |