diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-03 20:13:13 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-03 20:13:13 +0000 |
commit | 048ce498307613fd2670bc1e79b431abea9c5e2b (patch) | |
tree | d3245158a598200ce1185a4e845956a4fc27869b /ui/aura | |
parent | b135155763972d5ee37fe036315d8bb244f7e455 (diff) | |
download | chromium_src-048ce498307613fd2670bc1e79b431abea9c5e2b.zip chromium_src-048ce498307613fd2670bc1e79b431abea9c5e2b.tar.gz chromium_src-048ce498307613fd2670bc1e79b431abea9c5e2b.tar.bz2 |
Adds a TabContentsViewAura.
It is derived from TCVV/NTCVA. Right now, it's behind the flag --enable-tcva.
http://crbug.com/118410
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9963079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura')
-rw-r--r-- | ui/aura/window.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/aura/window.cc b/ui/aura/window.cc index b67b2b2..d9862c8 100644 --- a/ui/aura/window.cc +++ b/ui/aura/window.cc @@ -187,6 +187,11 @@ bool Window::IsVisible() const { } gfx::Rect Window::GetScreenBounds() const { + // TODO(beng): There may be a better way to handle this, and the existing code + // is likely wrong anyway in a multi-monitor world, but this will + // do for now. + if (!GetRootWindow()) + return bounds(); gfx::Point origin = bounds().origin(); Window::ConvertPointToWindow(parent_, GetRootWindow(), &origin); return gfx::Rect(origin, bounds().size()); |