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

Unified Diff: ui/views/widget/desktop_native_widget_helper_aura.h

Issue 10409011: Aura/ash: On Desktops, use a aura::client to resolve screen coordinates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge with trunk. Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/client/screen_position_client.cc ('k') | ui/views/widget/desktop_native_widget_helper_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_native_widget_helper_aura.h
diff --git a/ui/views/widget/desktop_native_widget_helper_aura.h b/ui/views/widget/desktop_native_widget_helper_aura.h
index ee9b0d5b7643f167facc92bc19bca291dd0cfc2b..9126ba81fc2966ed79f95f2b8ac43b74d55be454 100644
--- a/ui/views/widget/desktop_native_widget_helper_aura.h
+++ b/ui/views/widget/desktop_native_widget_helper_aura.h
@@ -14,6 +14,9 @@
namespace aura {
class RootWindow;
+namespace client {
+class ScreenPositionClient;
+}
namespace shared {
class InputMethodEventFilter;
class RootWindowEventFilter;
@@ -43,13 +46,12 @@ class VIEWS_EXPORT DesktopNativeWidgetHelperAura
virtual ~DesktopNativeWidgetHelperAura();
// Overridden from aura::NativeWidgetHelperAura:
- virtual void PreInitialize(const Widget::InitParams& params) OVERRIDE;
+ virtual void PreInitialize(aura::Window* window,
+ const Widget::InitParams& params) OVERRIDE;
virtual void PostInitialize() OVERRIDE;
virtual void ShowRootWindow() OVERRIDE;
virtual aura::RootWindow* GetRootWindow() OVERRIDE;
virtual gfx::Rect ModifyAndSetBounds(const gfx::Rect& bounds) OVERRIDE;
- virtual gfx::Rect ChangeRootWindowBoundsToScreenBounds(
- const gfx::Rect& bounds) OVERRIDE;
// Overridden from aura::RootWindowObserver:
virtual void OnRootWindowResized(const aura::RootWindow* root,
@@ -74,6 +76,10 @@ class VIEWS_EXPORT DesktopNativeWidgetHelperAura
// windows.
bool is_embedded_window_;
+ // In some cases, we set a screen position client on |root_window_|. If we
+ // do, we're responsible for the lifetime.
+ scoped_ptr<aura::client::ScreenPositionClient> position_client_;
+
#if defined(OS_WIN)
scoped_ptr<ui::HWNDSubclass> subclass_;
#elif defined(USE_X11)
« no previous file with comments | « ui/aura/client/screen_position_client.cc ('k') | ui/views/widget/desktop_native_widget_helper_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698