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

Unified Diff: ash/launcher/launcher_button.h

Issue 10386212: Add new attention state to launcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « no previous file | ash/launcher/launcher_button.cc » ('j') | ash/launcher/launcher_button.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_button.h
diff --git a/ash/launcher/launcher_button.h b/ash/launcher/launcher_button.h
index d5fe8b8f067e6d9ea1b4c7624b9565c7b07edf75..e1278b8d462d817a393ccf51d72e81c581967cc1 100644
--- a/ash/launcher/launcher_button.h
+++ b/ash/launcher/launcher_button.h
@@ -19,10 +19,11 @@ class LauncherButton : public views::CustomButton {
public:
// Used to indicate the current state of the button.
enum State {
- STATE_NORMAL = 0,
- STATE_HOVERED = 1 << 0,
- STATE_RUNNING = 1 << 1,
- STATE_ACTIVE = 1 << 2
+ STATE_NORMAL = 0,
+ STATE_HOVERED = 1 << 0,
+ STATE_RUNNING = 1 << 1,
+ STATE_ACTIVE = 1 << 2,
+ STATE_ATTENTION = 1 << 3,
};
virtual ~LauncherButton();
@@ -86,6 +87,7 @@ class LauncherButton : public views::CustomButton {
LauncherButtonHost* host() const { return host_; }
private:
+ class BarView;
// Updates the parts of the button to reflect the current state_. This may
// add or remove views, layout and paint.
void UpdateState();
@@ -93,7 +95,7 @@ class LauncherButton : public views::CustomButton {
LauncherButtonHost* host_;
IconView* icon_view_;
// Draws a bar underneath the image to represent the state of the application.
- views::ImageView* bar_;
+ BarView* bar_;
// The current state of the application, multiple values of AppState are or'd
// together.
int state_;
« no previous file with comments | « no previous file | ash/launcher/launcher_button.cc » ('j') | ash/launcher/launcher_button.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698