From 8d625fbd16a1d20f5e34bd01b83b0402bd3b4c80 Mon Sep 17 00:00:00 2001 From: "oshima@chromium.org" Date: Wed, 18 Jul 2012 16:40:06 +0000 Subject: * Use Virtual Screen Coordinates in more places - When setting widget bounds. - Workspace Manager - When resizing - Restore bounds * Refactored ScreenPositionClient to manage Screen coordinates for different configurations. * Renamed GetBounds/SetBounds methods to GetScreen/ParentBounds to make it clear that in which coordinates you're dealing with. * I used InScreen/InParent for RestoreBounds because RestoreParent/ScreenBounds sounds strange. Converted Linux/Aura to use ScreenPositionClient. BUG=123160 TEST=several tests are updated to match VSC. added screen_ash_unittests. I'll update rest of tests when this is enable by default. Review URL: https://chromiumcodereview.appspot.com/10696023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147250 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/views/widget/widget.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/views/widget/widget.h') diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h index f16ea6b..b993108 100644 --- a/ui/views/widget/widget.h +++ b/ui/views/widget/widget.h @@ -615,8 +615,8 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, // with it. TYPE_CONTROL and TYPE_TOOLTIP is not considered top level. bool is_top_level() const { return is_top_level_; } - // Returns the bounds of work area in the screen that Widget belongs to. - gfx::Rect GetWorkAreaBoundsInScreen() const; + // Returns the work are bounds of the screen the Widget belongs to. + gfx::Rect GetWorkAreaScreenBounds() const; // Notification that our owner is closing. // NOTE: this is not invoked for aura as it's currently not needed there. -- cgit v1.1