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

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

Issue 9359022: Aura: Support hovering restore & close buttons for full screen apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove resources, as they've already been committed Created 8 years, 10 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_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>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Index of the selected tab in tabs; -1 if no tab is selected. After restore 174 // Index of the selected tab in tabs; -1 if no tab is selected. After restore
175 // this value is guaranteed to be a valid index into tabs. 175 // this value is guaranteed to be a valid index into tabs.
176 // 176 //
177 // NOTE: when the service is creating SessionWindows, initially this 177 // NOTE: when the service is creating SessionWindows, initially this
178 // corresponds to SessionTab.tab_visual_index, not the index in 178 // corresponds to SessionTab.tab_visual_index, not the index in
179 // tabs. When done creating though, this is set to the index in 179 // tabs. When done creating though, this is set to the index in
180 // tabs. 180 // tabs.
181 int selected_tab_index; 181 int selected_tab_index;
182 182
183 // Type of the browser. Currently we only store browsers of type 183 // Type of the browser. Currently we only store browsers of type
184 // TYPE_TABBED and TYPE_POPUP. 184 // TYPE_TABBED and TYPE_POPUP, and TYPE_APP.
185 // This would be Browser::Type, but that would cause a circular dependency. 185 // This would be Browser::Type, but that would cause a circular dependency.
186 int type; 186 int type;
187 187
188 // If true, the window is constrained. 188 // If true, the window is constrained.
189 // 189 //
190 // Currently SessionService prunes all constrained windows so that session 190 // Currently SessionService prunes all constrained windows so that session
191 // restore does not attempt to restore them. 191 // restore does not attempt to restore them.
192 bool is_constrained; 192 bool is_constrained;
193 193
194 // Timestamp for when this window was last modified. 194 // Timestamp for when this window was last modified.
195 base::Time timestamp; 195 base::Time timestamp;
196 196
197 // The tabs, ordered by visual order. 197 // The tabs, ordered by visual order.
198 std::vector<SessionTab*> tabs; 198 std::vector<SessionTab*> tabs;
199 199
200 // Is the window maximized, minimized, or normal? 200 // Is the window maximized, minimized, or normal?
201 ui::WindowShowState show_state; 201 ui::WindowShowState show_state;
202 202
203 private: 203 private:
204 DISALLOW_COPY_AND_ASSIGN(SessionWindow); 204 DISALLOW_COPY_AND_ASSIGN(SessionWindow);
205 }; 205 };
206 206
207 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ 207 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698