summaryrefslogtreecommitdiffstats
path: root/views/window
diff options
context:
space:
mode:
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 {