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_NATIVE_WIDGET_HELPER_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/aura/root_window_observer.h" | 9 #include "ui/aura/root_window_observer.h" |
10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
(...skipping 15 matching lines...) Expand all Loading... | |
26 public aura::RootWindowObserver { | 26 public aura::RootWindowObserver { |
27 public: | 27 public: |
28 explicit DesktopNativeWidgetHelperAura(NativeWidgetAura* widget); | 28 explicit DesktopNativeWidgetHelperAura(NativeWidgetAura* widget); |
29 virtual ~DesktopNativeWidgetHelperAura(); | 29 virtual ~DesktopNativeWidgetHelperAura(); |
30 | 30 |
31 // Overridden from aura::NativeWidgetHelperAura: | 31 // Overridden from aura::NativeWidgetHelperAura: |
32 virtual void PreInitialize(const Widget::InitParams& params) OVERRIDE; | 32 virtual void PreInitialize(const Widget::InitParams& params) OVERRIDE; |
33 virtual void ShowRootWindow() OVERRIDE; | 33 virtual void ShowRootWindow() OVERRIDE; |
34 virtual aura::RootWindow* GetRootWindow() OVERRIDE; | 34 virtual aura::RootWindow* GetRootWindow() OVERRIDE; |
35 virtual gfx::Rect ModifyAndSetBounds(gfx::Rect bounds) OVERRIDE; | 35 virtual gfx::Rect ModifyAndSetBounds(gfx::Rect bounds) OVERRIDE; |
36 virtual gfx::Rect ChangeRootWindowBoundsToScreenBounds( | |
37 gfx::Rect bounds) OVERRIDE; | |
sky
2012/04/24 22:42:28
const gfx::Rect&
| |
36 | 38 |
37 // Overridden from aura::RootWindowObserver: | 39 // Overridden from aura::RootWindowObserver: |
38 virtual void OnRootWindowResized(const aura::RootWindow* root, | 40 virtual void OnRootWindowResized(const aura::RootWindow* root, |
39 const gfx::Size& old_size) OVERRIDE; | 41 const gfx::Size& old_size) OVERRIDE; |
40 virtual void OnRootWindowHostClosed(const aura::RootWindow* root) OVERRIDE; | 42 virtual void OnRootWindowHostClosed(const aura::RootWindow* root) OVERRIDE; |
41 | 43 |
42 private: | 44 private: |
43 // A weak pointer back to our owning widget. | 45 // A weak pointer back to our owning widget. |
44 NativeWidgetAura* widget_; | 46 NativeWidgetAura* widget_; |
45 | 47 |
46 // Optionally, a RootWindow that we attach ourselves to. | 48 // Optionally, a RootWindow that we attach ourselves to. |
47 scoped_ptr<aura::RootWindow> root_window_; | 49 scoped_ptr<aura::RootWindow> root_window_; |
48 | 50 |
49 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetHelperAura); | 51 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetHelperAura); |
50 }; | 52 }; |
51 | 53 |
52 } // namespace views | 54 } // namespace views |
53 | 55 |
54 #endif // UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_ | 56 #endif // UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_HELPER_AURA_H_ |
OLD | NEW |