Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: chrome/browser/ui/extensions/shell_window.h

Issue 14663010: Save and restore State for ShellWindows, including panels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/extensions/extension_keybinding_registry.h" 10 #include "chrome/browser/extensions/extension_keybinding_registry.h"
11 #include "chrome/browser/sessions/session_id.h" 11 #include "chrome/browser/sessions/session_id.h"
12 #include "chrome/browser/ui/base_window.h" 12 #include "chrome/browser/ui/base_window.h"
13 #include "chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h" 13 #include "chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h"
14 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "content/public/browser/web_contents_delegate.h" 16 #include "content/public/browser/web_contents_delegate.h"
17 #include "content/public/common/console_message_level.h" 17 #include "content/public/common/console_message_level.h"
18 #include "ui/base/ui_base_types.h" // WindowShowState
18 #include "ui/gfx/image/image.h" 19 #include "ui/gfx/image/image.h"
19 #include "ui/gfx/rect.h" 20 #include "ui/gfx/rect.h"
20 21
21 class GURL; 22 class GURL;
22 class Profile; 23 class Profile;
23 class NativeAppWindow; 24 class NativeAppWindow;
24 25
25 namespace content { 26 namespace content {
26 class WebContents; 27 class WebContents;
27 } 28 }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 gfx::Rect bounds; 96 gfx::Rect bounds;
96 97
97 gfx::Size minimum_size; 98 gfx::Size minimum_size;
98 gfx::Size maximum_size; 99 gfx::Size maximum_size;
99 100
100 std::string window_key; 101 std::string window_key;
101 102
102 // The process ID of the process that requested the create. 103 // The process ID of the process that requested the create.
103 int32 creator_process_id; 104 int32 creator_process_id;
104 105
105 enum State {
106 STATE_NORMAL,
107 STATE_FULLSCREEN,
108 STATE_MAXIMIZED,
109 STATE_MINIMIZED
110 };
111
112 // Initial state of the window. 106 // Initial state of the window.
113 State state; 107 ui::WindowShowState state;
114 108
115 // If true, don't show the window after creation. 109 // If true, don't show the window after creation.
116 bool hidden; 110 bool hidden;
117 111
118 // If true, the window will be resizable by the user. Defaults to true. 112 // If true, the window will be resizable by the user. Defaults to true.
119 bool resizable; 113 bool resizable;
120 114
121 // If true, the window will be focused on creation. Defaults to true. 115 // If true, the window will be focused on creation. Defaults to true.
122 bool focused; 116 bool focused;
123 }; 117 };
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 298
305 // Fullscreen entered by app.window api. 299 // Fullscreen entered by app.window api.
306 bool fullscreen_for_window_api_; 300 bool fullscreen_for_window_api_;
307 // Fullscreen entered by HTML requestFullscreen. 301 // Fullscreen entered by HTML requestFullscreen.
308 bool fullscreen_for_tab_; 302 bool fullscreen_for_tab_;
309 303
310 DISALLOW_COPY_AND_ASSIGN(ShellWindow); 304 DISALLOW_COPY_AND_ASSIGN(ShellWindow);
311 }; 305 };
312 306
313 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 307 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/native_app_window.h ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698