Index: ash/shelf/app_list_button.h |
diff --git a/ash/shelf/app_list_button.h b/ash/shelf/app_list_button.h |
index 2571b717005918d3b0e4bea5b88583f1d2d4e189..c7243807bd75c73d1f442c5bddc043914419f140 100644 |
--- a/ash/shelf/app_list_button.h |
+++ b/ash/shelf/app_list_button.h |
@@ -22,6 +22,10 @@ class AppListButton : public views::ImageButton { |
ShelfWidget* shelf_widget); |
virtual ~AppListButton(); |
+ bool draw_background_as_active() { |
+ return set_draw_background_as_active_; |
+ } |
+ |
protected: |
// views::ImageButton overrides: |
virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
@@ -38,6 +42,17 @@ class AppListButton : public views::ImageButton { |
virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
private: |
+ // Toggles the active state for painting the background and schedules a paint. |
+ void SetDrawBackgroundAsActive(bool draw_background_as_active); |
+ |
+ // True if the background should render as active, regardless of the state of |
+ // the application list. |
+ bool set_draw_background_as_active_; |
flackr
2014/09/10 20:04:41
nit: s/set_draw_background_as_active_/draw_backgro
jonross
2014/09/11 15:06:52
Done.
|
+ |
+ // True if touch view feedback command line flag has been enabled. When |
+ // enabled touch gestures will toggle rendering the background as active. |
+ bool touch_feedback_enabled_; |
+ |
ShelfButtonHost* host_; |
// Reference to the shelf widget containing this button, owned by the |
// root window controller. |