Update TrayPopupHeaderButton Visual Feedback
commit7cb27c033a1c3410f26bed928e051cad50f5b750
authorjonross <jonross@chromium.org>
Fri, 12 Dec 2014 00:01:00 +0000 (11 16:01 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Dec 2014 00:01:15 +0000 (12 00:01 +0000)
treeb36f550132ee10bcd627d624d879d8fb17997d7b
parent721c70f32d8c81f9409152d854ca458b6c4094a8
Update TrayPopupHeaderButton Visual Feedback

Add a new background to TrayPopupHeaderButton which is used for both mouse and touch feedback. Mouse hover, and tap down, events will trigger the background. Completing a click or tap, or exiting the button, will remove the feedback.

The size of TrayPopupHeadButton has been updated according to the new spec in issue 402515.

TEST=TrayDetailsViewTest.TrayPopupHeaderButtonTouchFeedback, TrayDetailsViewTest.TrayPopupHeaderButtonTouchFeedbackCancellation, TrayDetailsViewTest.TrayPopupHeaderButtonMouseHoverFeedback
BUG=402515

Review URL: https://codereview.chromium.org/800513002

Cr-Commit-Position: refs/heads/master@{#308000}
ash/system/tray/special_popup_row.cc
ash/system/tray/special_popup_row.h
ash/system/tray/tray_constants.cc
ash/system/tray/tray_constants.h
ash/system/tray/tray_details_view_unittest.cc
ash/system/tray/tray_popup_header_button.cc
ash/system/tray/tray_popup_header_button.h