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

Side by Side Diff: chrome/browser/sessions/tab_restore_service.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: Fix browser_test Created 8 years, 9 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
« no previous file with comments | « chrome/browser/sessions/session_types.h ('k') | chrome/browser/sessions/tab_restore_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TAB_RESTORE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ 6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Represents a previously open window. 109 // Represents a previously open window.
110 struct Window : public Entry { 110 struct Window : public Entry {
111 Window(); 111 Window();
112 virtual ~Window(); 112 virtual ~Window();
113 113
114 // The tabs that comprised the window, in order. 114 // The tabs that comprised the window, in order.
115 std::vector<Tab> tabs; 115 std::vector<Tab> tabs;
116 116
117 // Index of the selected tab. 117 // Index of the selected tab.
118 int selected_tab_index; 118 int selected_tab_index;
119
120 // If an application window, the name of the app.
121 std::string app_name;
119 }; 122 };
120 123
121 typedef std::list<Entry*> Entries; 124 typedef std::list<Entry*> Entries;
122 125
123 // Creates a new TabRestoreService and provides an object that provides the 126 // Creates a new TabRestoreService and provides an object that provides the
124 // current time. The TabRestoreService does not take ownership of the 127 // current time. The TabRestoreService does not take ownership of the
125 // |time_factory_|. 128 // |time_factory_|.
126 TabRestoreService(Profile* profile, TimeFactory* time_factory_ = NULL); 129 TabRestoreService(Profile* profile, TimeFactory* time_factory_ = NULL);
127 130
128 virtual ~TabRestoreService(); 131 virtual ~TabRestoreService();
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 // loading LoadStateChanged is invoked, which adds these entries to 369 // loading LoadStateChanged is invoked, which adds these entries to
367 // entries_. 370 // entries_.
368 std::vector<Entry*> staging_entries_; 371 std::vector<Entry*> staging_entries_;
369 372
370 TimeFactory* time_factory_; 373 TimeFactory* time_factory_;
371 374
372 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); 375 DISALLOW_COPY_AND_ASSIGN(TabRestoreService);
373 }; 376 };
374 377
375 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ 378 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_types.h ('k') | chrome/browser/sessions/tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698