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

Unified Diff: chrome/browser/sessions/session_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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sessions/session_restore.cc ('k') | chrome/browser/sessions/session_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_service.h
diff --git a/chrome/browser/sessions/session_service.h b/chrome/browser/sessions/session_service.h
index e6feffd1f400847d0218bdb2b953040c5842354c..53eea0ad6fffb8563e1d5426e8cff65928c6cd36 100644
--- a/chrome/browser/sessions/session_service.h
+++ b/chrome/browser/sessions/session_service.h
@@ -55,6 +55,12 @@ class SessionService : public BaseSessionService,
public content::NotificationObserver {
friend class SessionServiceTestHelper;
public:
+ // Used to distinguish an application window from a normal one.
+ enum AppType {
+ TYPE_APP,
+ TYPE_NORMAL
+ };
+
// Creates a SessionService for the specified profile.
explicit SessionService(Profile* profile);
// For testing.
@@ -121,7 +127,13 @@ class SessionService : public BaseSessionService,
// Sets the type of window. In order for the contents of a window to be
// tracked SetWindowType must be invoked with a type we track
// (should_track_changes_for_browser_type returns true).
- void SetWindowType(const SessionID& window_id, Browser::Type type);
+ void SetWindowType(const SessionID& window_id,
+ Browser::Type type,
+ AppType app_type);
+
+ // Sets the application name of the specified window.
+ void SetWindowAppName(const SessionID& window_id,
+ const std::string& app_name);
// Invoked when the NavigationController has removed entries from the back of
// the list. |count| gives the number of entries in the navigation controller.
@@ -362,7 +374,9 @@ class SessionService : public BaseSessionService,
bool ShouldTrackChangesToWindow(const SessionID& window_id);
// Returns true if we track changes to the specified browser type.
- static bool should_track_changes_for_browser_type(Browser::Type type);
+ static bool should_track_changes_for_browser_type(
+ Browser::Type type,
+ AppType app_type);
// Returns true if we should record a window close as pending.
// |has_open_trackable_browsers_| must be up-to-date before calling this.
« no previous file with comments | « chrome/browser/sessions/session_restore.cc ('k') | chrome/browser/sessions/session_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698