| 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/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "ui/aura/client/activation_change_observer.h" | 9 #include "ui/aura/client/activation_change_observer.h" |
| 10 #include "ui/aura/client/activation_delegate.h" | 10 #include "ui/aura/client/activation_delegate.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 // Ensures that the correct window is activated/deactivated based on whether | 90 // Ensures that the correct window is activated/deactivated based on whether |
| 91 // we are being activated/deactivated. | 91 // we are being activated/deactivated. |
| 92 void HandleActivationChanged(bool active); | 92 void HandleActivationChanged(bool active); |
| 93 | 93 |
| 94 protected: | 94 protected: |
| 95 // Overridden from internal::NativeWidgetPrivate: | 95 // Overridden from internal::NativeWidgetPrivate: |
| 96 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; | 96 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; |
| 97 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 97 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
| 98 virtual bool ShouldUseNativeFrame() const OVERRIDE; | 98 virtual bool ShouldUseNativeFrame() const OVERRIDE; |
| 99 virtual void FrameTypeChanged() OVERRIDE; | 99 virtual void FrameTypeChanged(Widget::FrameType new_type) OVERRIDE; |
| 100 virtual Widget* GetWidget() OVERRIDE; | 100 virtual Widget* GetWidget() OVERRIDE; |
| 101 virtual const Widget* GetWidget() const OVERRIDE; | 101 virtual const Widget* GetWidget() const OVERRIDE; |
| 102 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 102 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 103 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; | 103 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; |
| 104 virtual Widget* GetTopLevelWidget() OVERRIDE; | 104 virtual Widget* GetTopLevelWidget() OVERRIDE; |
| 105 virtual const ui::Compositor* GetCompositor() const OVERRIDE; | 105 virtual const ui::Compositor* GetCompositor() const OVERRIDE; |
| 106 virtual ui::Compositor* GetCompositor() OVERRIDE; | 106 virtual ui::Compositor* GetCompositor() OVERRIDE; |
| 107 virtual ui::Layer* GetLayer() OVERRIDE; | 107 virtual ui::Layer* GetLayer() OVERRIDE; |
| 108 virtual void ReorderNativeViews() OVERRIDE; | 108 virtual void ReorderNativeViews() OVERRIDE; |
| 109 virtual void ViewRemoved(View* view) OVERRIDE; | 109 virtual void ViewRemoved(View* view) OVERRIDE; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 315 |
| 316 // See class documentation for Widget in widget.h for a note about type. | 316 // See class documentation for Widget in widget.h for a note about type. |
| 317 Widget::InitParams::Type widget_type_; | 317 Widget::InitParams::Type widget_type_; |
| 318 | 318 |
| 319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 } // namespace views | 322 } // namespace views |
| 323 | 323 |
| 324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |