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

Unified Diff: ui/views/widget/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: sky+oshima stuff 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_helper_aura.h
diff --git a/ui/views/widget/native_widget_helper_aura.h b/ui/views/widget/native_widget_helper_aura.h
index 4d73932724a691a91f05b2c59164380c090e2b84..b89ce0fe62cd7e1d22c3b4f5dec715fd32a25f6d 100644
--- a/ui/views/widget/native_widget_helper_aura.h
+++ b/ui/views/widget/native_widget_helper_aura.h
@@ -30,7 +30,12 @@ class VIEWS_EXPORT NativeWidgetHelperAura {
// If this NativeWidgetAura has its own RootWindow, sets the position at the
// |root_window_|, and returns modified bounds to set the origin to
// zero. Otherwise, pass through in_bounds.
- virtual gfx::Rect ModifyAndSetBounds(gfx::Rect bounds) = 0;
+ virtual gfx::Rect ModifyAndSetBounds(const gfx::Rect& bounds) = 0;
+
+ // Takes bounds relative to the RootWindow and changes them to be relative to
+ // the screen.
+ virtual gfx::Rect ChangeRootWindowBoundsToScreenBounds(
+ const gfx::Rect& bounds) = 0;
};
} // namespace views
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698