Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: ui/views/widget/desktop_native_widget_helper_aura.h

Issue 10210005: Ash/aura split: NativeWidgetAura::GetWindowScreenBounds() should return screen bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698