summaryrefslogtreecommitdiffstats
path: root/ash/shell/toplevel_window.h
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-30 15:33:18 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-30 15:33:18 +0000
commit13b4a8882c128d91da9af5aef7f4136bc83c2a80 (patch)
tree4a3c17d0b3435a16be5af5638d46e342598c8473 /ash/shell/toplevel_window.h
parent4d1ad8a1add3379004da95cb2c7634048c822529 (diff)
downloadchromium_src-13b4a8882c128d91da9af5aef7f4136bc83c2a80.zip
chromium_src-13b4a8882c128d91da9af5aef7f4136bc83c2a80.tar.gz
chromium_src-13b4a8882c128d91da9af5aef7f4136bc83c2a80.tar.bz2
Always adjust the bounds to work area if the new window is the first window.
I think this is correct behavior. Cleanup: remove set_target_root_window() when adding new root window. This was old hack for test and no longer necessary. BUG=286391 TEST=covered by unit test. Review URL: https://codereview.chromium.org/46183004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell/toplevel_window.h')
-rw-r--r--ash/shell/toplevel_window.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ash/shell/toplevel_window.h b/ash/shell/toplevel_window.h
index 77b29aa..71bbfa2 100644
--- a/ash/shell/toplevel_window.h
+++ b/ash/shell/toplevel_window.h
@@ -18,7 +18,12 @@ class ToplevelWindow : public views::WidgetDelegateView {
bool can_resize;
bool can_maximize;
};
- static void CreateToplevelWindow(const CreateParams& params);
+ static views::Widget* CreateToplevelWindow(
+ const CreateParams& params);
+
+ // Clears saved show state and bounds used to position
+ // a new window.
+ static void ClearSavedStateForTest();
private:
explicit ToplevelWindow(const CreateParams& params);