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

Unified Diff: ash/system/tray/hover_highlight_view.h

Issue 556383002: Status Panel 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
Index: ash/system/tray/hover_highlight_view.h
diff --git a/ash/system/tray/hover_highlight_view.h b/ash/system/tray/hover_highlight_view.h
index 47d15cfffa8ea48911e70385e345954d1a8e8ce3..1c8e2b043261964dc9a82b48dcae46d5a8375ed3 100644
--- a/ash/system/tray/hover_highlight_view.h
+++ b/ash/system/tray/hover_highlight_view.h
@@ -64,6 +64,9 @@ class HoverHighlightView : public ActionableView {
virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
private:
+ // Sets the value for |hover_| and updates the color of |text_label_|
flackr 2014/09/11 20:49:37 nit: Don't describe the implementation of the func
jonross 2014/09/12 18:57:48 Done.
+ void SetHoverHighlight(bool hover);
+
// Overridden from ActionableView:
virtual bool PerformAction(const ui::Event& event) OVERRIDE;
@@ -72,6 +75,7 @@ class HoverHighlightView : public ActionableView {
virtual int GetHeightForWidth(int width) const OVERRIDE;
virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
+ virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
virtual void OnEnabledChanged() OVERRIDE;
virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
virtual void OnFocus() OVERRIDE;
@@ -87,6 +91,10 @@ class HoverHighlightView : public ActionableView {
bool checkable_;
bool checked_;
+ // 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_;
+
DISALLOW_COPY_AND_ASSIGN(HoverHighlightView);
};

Powered by Google App Engine
This is Rietveld 408576698