summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/extensions/shell_window.h
diff options
context:
space:
mode:
authorstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-09 06:10:57 +0000
committerstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-09 06:10:57 +0000
commit68eeede20e63fbb9a8756ed73e482b87dde57c72 (patch)
tree26d1bd889cbfd7b32131d585a97dcb9b447b8733 /chrome/browser/ui/extensions/shell_window.h
parentc2ff9b4ec2549c5b3b36c11fe2fca7b5495adf9a (diff)
downloadchromium_src-68eeede20e63fbb9a8756ed73e482b87dde57c72.zip
chromium_src-68eeede20e63fbb9a8756ed73e482b87dde57c72.tar.gz
chromium_src-68eeede20e63fbb9a8756ed73e482b87dde57c72.tar.bz2
Save and restore State for ShellWindows, including panels
This replaces ShellWindow::CreateParams::State with ui::WindowShowState for simplicty and consistency with Browser session restore. BUG=233556 TBR=flackr@chromium.org, skuhne@chromium.org, sky@chromium.org Original CL: https://codereview.chromium.org/14031021/ + disabled flakey browser tests on linux Review URL: https://chromiumcodereview.appspot.com/14663010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/extensions/shell_window.h')
-rw-r--r--chrome/browser/ui/extensions/shell_window.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/ui/extensions/shell_window.h b/chrome/browser/ui/extensions/shell_window.h
index 7b28a5c..05b06ab 100644
--- a/chrome/browser/ui/extensions/shell_window.h
+++ b/chrome/browser/ui/extensions/shell_window.h
@@ -15,6 +15,7 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/common/console_message_level.h"
+#include "ui/base/ui_base_types.h" // WindowShowState
#include "ui/gfx/image/image.h"
#include "ui/gfx/rect.h"
@@ -102,15 +103,8 @@ class ShellWindow : public content::NotificationObserver,
// The process ID of the process that requested the create.
int32 creator_process_id;
- enum State {
- STATE_NORMAL,
- STATE_FULLSCREEN,
- STATE_MAXIMIZED,
- STATE_MINIMIZED
- };
-
// Initial state of the window.
- State state;
+ ui::WindowShowState state;
// If true, don't show the window after creation.
bool hidden;