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

Unified Diff: ash/shelf/app_list_button.h

Issue 558703002: AppLauncher Touch Feedback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/shelf/app_list_button.cc » ('j') | ash/shelf/app_list_button.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..699f345ec2d865f7fd8d978369af7c743bbc04b3 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 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 draw_background_as_active_;
+
+ // 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.
« no previous file with comments | « no previous file | ash/shelf/app_list_button.cc » ('j') | ash/shelf/app_list_button.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698