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

Unified Diff: ash/launcher/tabbed_launcher_button.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: 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
Index: ash/launcher/tabbed_launcher_button.h
diff --git a/ash/launcher/tabbed_launcher_button.h b/ash/launcher/tabbed_launcher_button.h
index 44917b7f76290de403e07e34a4cbfdf54df54c6e..c15af13504ab8707c6c147858c7bd344768c4377 100644
--- a/ash/launcher/tabbed_launcher_button.h
+++ b/ash/launcher/tabbed_launcher_button.h
@@ -32,7 +32,7 @@ class TabbedLauncherButton : public views::ImageButton {
void PrepareForImageChange();
// Sets the images to display for this entry.
- void SetTabImage(const SkBitmap& image, int count);
+ void SetTabImage(const SkBitmap& image, int count, bool private_tab);
protected:
// View overrides:
@@ -90,11 +90,15 @@ class TabbedLauncherButton : public views::ImageButton {
bool show_image_;
// Background images. Which one is chosen depends upon how many images are
- // provided.
+ // provided and if the tab is private.
oshima 2012/03/09 17:54:02 browser window is incognito (or off the record).
Zachary Kuznia 2012/03/09 22:17:35 Done.
static ImageSet* bg_image_1_;
static ImageSet* bg_image_2_;
static ImageSet* bg_image_3_;
+ static ImageSet* bg_private_image_1_;
+ static ImageSet* bg_private_image_2_;
+ static ImageSet* bg_private_image_3_;
+
views::GlowHoverController hover_controller_;
DISALLOW_COPY_AND_ASSIGN(TabbedLauncherButton);

Powered by Google App Engine
This is Rietveld 408576698