summaryrefslogtreecommitdiffstats
path: root/ash/shell
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 15:23:12 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 15:23:12 +0000
commit0194049bcb726664d1f6fc1bca67a64fcc4e0139 (patch)
tree2c54f6be7fdccf78c4760a031b816f7fd99d6c7a /ash/shell
parentf8c9260f34a924bfafc932ee7573c1318babf22e (diff)
downloadchromium_src-0194049bcb726664d1f6fc1bca67a64fcc4e0139.zip
chromium_src-0194049bcb726664d1f6fc1bca67a64fcc4e0139.tar.gz
chromium_src-0194049bcb726664d1f6fc1bca67a64fcc4e0139.tar.bz2
Make sure the non browser/no app widget is fully visible when created on ash
added minimum_visibility flag to WindowState to guarantee that the part of widget is always visible. TEST=open TaskManager on 2nd display, close it, disconnect display, then open task manager again. minimum visibility is covered by test. Review URL: https://codereview.chromium.org/55303006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell')
-rw-r--r--ash/shell/toplevel_window.cc1
-rw-r--r--ash/shell/toplevel_window.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/ash/shell/toplevel_window.cc b/ash/shell/toplevel_window.cc
index b12a37c..ea8b79f 100644
--- a/ash/shell/toplevel_window.cc
+++ b/ash/shell/toplevel_window.cc
@@ -76,6 +76,7 @@ void ToplevelWindow::SaveWindowPlacement(const gfx::Rect& bounds,
}
bool ToplevelWindow::GetSavedWindowPlacement(
+ const views::Widget* widget,
gfx::Rect* bounds,
ui::WindowShowState* show_state) const {
bool is_saved_bounds = !!saved_state;
diff --git a/ash/shell/toplevel_window.h b/ash/shell/toplevel_window.h
index 71bbfa2..8a31d26 100644
--- a/ash/shell/toplevel_window.h
+++ b/ash/shell/toplevel_window.h
@@ -38,6 +38,7 @@ class ToplevelWindow : public views::WidgetDelegateView {
const gfx::Rect& bounds,
ui::WindowShowState show_state) OVERRIDE;
virtual bool GetSavedWindowPlacement(
+ const views::Widget* widget,
gfx::Rect* bounds,
ui::WindowShowState* show_state) const OVERRIDE;
virtual View* GetContentsView() OVERRIDE;