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

Unified Diff: chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h

Issue 9649013: Show a different icon in the launcher for incognito windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Re-upload 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell/shell_main.cc ('k') | chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h
diff --git a/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h b/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h
index 7784e453e427ce56f94c1e56bb48c369d0bc581f..68d392e8e196ec3b62a6203973c060e9d9597a24 100644
--- a/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h
+++ b/chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h
@@ -43,6 +43,12 @@ class ChromeLauncherDelegate : public ash::LauncherDelegate,
APP_TYPE_TAB
};
+ // Indicates if a launcher item is incognito or not.
+ enum IncognitoState {
+ STATE_INCOGNITO,
+ STATE_NOT_INCOGNITO,
+ };
+
// Interface used to load app icons. This is in it's own class so that it can
// be mocked.
class AppIconLoader {
@@ -75,7 +81,8 @@ class ChromeLauncherDelegate : public ash::LauncherDelegate,
static void RegisterUserPrefs(PrefService* user_prefs);
// Creates a new tabbed item on the launcher for |updater|.
- ash::LauncherID CreateTabbedLauncherItem(LauncherUpdater* updater);
+ ash::LauncherID CreateTabbedLauncherItem(LauncherUpdater* updater,
+ IncognitoState is_incognito);
// Creates a new app item on the launcher for |updater|. If there is an
// existing pinned app that isn't running on the launcher, its id is returned.
« no previous file with comments | « ash/shell/shell_main.cc ('k') | chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698