summaryrefslogtreecommitdiffstats
path: root/views/window
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 17:30:05 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 17:30:05 +0000
commit642c224f643ddc33f198b6a9096d02d2054c70fe (patch)
treea11e5fca7924e30326061c43636a302b6dd9bd55 /views/window
parenta4d95dda9d7bbb55b65ea348c16fb308ac2c79e8 (diff)
downloadchromium_src-642c224f643ddc33f198b6a9096d02d2054c70fe.zip
chromium_src-642c224f643ddc33f198b6a9096d02d2054c70fe.tar.gz
chromium_src-642c224f643ddc33f198b6a9096d02d2054c70fe.tar.bz2
Replace Widget::GetBounds with Widget::GetClientScreenBounds and GetWindowScreenBounds
BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6615016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76759 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window')
-rw-r--r--views/window/window_gtk.cc4
-rw-r--r--views/window/window_win.cc4
2 files changed, 2 insertions, 6 deletions
diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc
index 2cb367a..7e1e634 100644
--- a/views/window/window_gtk.cc
+++ b/views/window/window_gtk.cc
@@ -104,9 +104,7 @@ void Window::CloseAllSecondaryWindows() {
}
gfx::Rect WindowGtk::GetBounds() const {
- gfx::Rect bounds;
- WidgetGtk::GetBounds(&bounds, true);
- return bounds;
+ return GetWindowScreenBounds();
}
gfx::Rect WindowGtk::GetNormalBounds() const {
diff --git a/views/window/window_win.cc b/views/window/window_win.cc
index 0bff7c0..7776bea 100644
--- a/views/window/window_win.cc
+++ b/views/window/window_win.cc
@@ -223,9 +223,7 @@ Window* Window::CreateChromeWindow(gfx::NativeWindow parent,
}
gfx::Rect WindowWin::GetBounds() const {
- gfx::Rect bounds;
- WidgetWin::GetBounds(&bounds, true);
- return bounds;
+ return GetWindowScreenBounds();
}
gfx::Rect WindowWin::GetNormalBounds() const {