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

Side by Side Diff: chrome/browser/sessions/session_types.h

Issue 7621061: Restoring a session should restore window minimization state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing Mark's comments. Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SESSIONS_SESSION_TYPES_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ 6 #define CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "chrome/browser/sessions/session_id.h" 15 #include "chrome/browser/sessions/session_id.h"
16 #include "content/common/page_transition_types.h" 16 #include "content/common/page_transition_types.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "ui/base/ui_base_types.h"
18 #include "ui/gfx/rect.h" 19 #include "ui/gfx/rect.h"
19 20
20 class NavigationEntry; 21 class NavigationEntry;
21 class Profile; 22 class Profile;
22 23
23 // TabNavigation ------------------------------------------------------------- 24 // TabNavigation -------------------------------------------------------------
24 25
25 // TabNavigation corresponds to the parts of NavigationEntry needed to restore 26 // TabNavigation corresponds to the parts of NavigationEntry needed to restore
26 // the NavigationEntry during session restore and tab restore. 27 // the NavigationEntry during session restore and tab restore.
27 // 28 //
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Currently SessionService prunes all constrained windows so that session 183 // Currently SessionService prunes all constrained windows so that session
183 // restore does not attempt to restore them. 184 // restore does not attempt to restore them.
184 bool is_constrained; 185 bool is_constrained;
185 186
186 // Timestamp for when this window was last modified. 187 // Timestamp for when this window was last modified.
187 base::Time timestamp; 188 base::Time timestamp;
188 189
189 // The tabs, ordered by visual order. 190 // The tabs, ordered by visual order.
190 std::vector<SessionTab*> tabs; 191 std::vector<SessionTab*> tabs;
191 192
192 // Is the window maximized? 193 // Is the window maximized, minimized, or normal?
193 bool is_maximized; 194 ui::WindowShowState show_state;
194 195
195 private: 196 private:
196 DISALLOW_COPY_AND_ASSIGN(SessionWindow); 197 DISALLOW_COPY_AND_ASSIGN(SessionWindow);
197 }; 198 };
198 199
199 // Defines a synced session for use by session sync. A synced session is a 200 // Defines a synced session for use by session sync. A synced session is a
200 // list of windows along with a unique session identifer (tag). 201 // list of windows along with a unique session identifer (tag).
201 struct SyncedSession { 202 struct SyncedSession {
202 SyncedSession(); 203 SyncedSession();
203 ~SyncedSession(); 204 ~SyncedSession();
204 205
205 // Unique tag for each session. 206 // Unique tag for each session.
206 std::string session_tag; 207 std::string session_tag;
207 std::vector<SessionWindow*> windows; 208 std::vector<SessionWindow*> windows;
208 }; 209 };
209 210
210 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ 211 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service_unittest.cc ('k') | chrome/browser/sessions/session_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698