| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |