summaryrefslogtreecommitdiffstats
path: root/ui/gfx
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-24 22:44:37 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-24 22:44:37 +0000
commitfa9d49ff4622e53722a971ec2c3d50674b1e541a (patch)
tree578d93871db645f9e924fad2e1468f3d7c4758db /ui/gfx
parent1e4ebc60c886041ba2c3101349f068bdba4c2785 (diff)
downloadchromium_src-fa9d49ff4622e53722a971ec2c3d50674b1e541a.zip
chromium_src-fa9d49ff4622e53722a971ec2c3d50674b1e541a.tar.gz
chromium_src-fa9d49ff4622e53722a971ec2c3d50674b1e541a.tar.bz2
Fixes a couple of bugs related to window sizing:
. Make RenderWidgetHostViewAura pass down the work area. . Makes ash force the window to no bigger than the work area. The last one is a bit dubious and may bite us at some point, but it seems we should enforce some constraint. BUG=155629 TEST=covered by tests R=ben@chromium.org,oshima@chromium.org Review URL: https://chromiumcodereview.appspot.com/11253002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163940 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx')
-rw-r--r--ui/gfx/screen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gfx/screen.h b/ui/gfx/screen.h
index 580fde9..1a04214 100644
--- a/ui/gfx/screen.h
+++ b/ui/gfx/screen.h
@@ -19,7 +19,8 @@ class Rect;
// cursor position, etc.
class UI_EXPORT Screen {
public:
- // Retrieves the Screen that the specified NativeView belongs to.
+ // Retrieves the Screen that the specified NativeView belongs to. A value of
+ // NULL is treated as |SCREEN_TYPE_NATIVE|.
static Screen* GetScreenFor(NativeView view);
// Returns the SCREEN_TYPE_NATIVE Screen. This should be used with caution,