Skip to content

Commit

Permalink
Make notification close button not animate when being hovered over
Browse files Browse the repository at this point in the history
Also no animation for hovering over expand button.

BUG=249113
TEST=Manual test by hovering over close button

Review URL: https://chromiumcodereview.appspot.com/17283004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206823 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
jianli@chromium.org committed Jun 17, 2013
1 parent 704b038 commit 933d632
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/message_center/views/message_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ MessageView::MessageView(const Notification& notification,
close->SetHoveredImage(IDR_NOTIFICATION_CLOSE_HOVER);
close->SetPressedImage(IDR_NOTIFICATION_CLOSE_PRESSED);
close->set_owned_by_client();
close->set_animate_on_state_change(false);
close->SetAccessibleName(l10n_util::GetStringUTF16(
IDS_MESSAGE_CENTER_CLOSE_NOTIFICATION_BUTTON_ACCESSIBLE_NAME));
close_button_.reset(close);
Expand All @@ -367,6 +368,7 @@ MessageView::MessageView(const Notification& notification,
expand->SetHoveredImage(IDR_NOTIFICATION_EXPAND_HOVER);
expand->SetPressedImage(IDR_NOTIFICATION_EXPAND_PRESSED);
expand->set_owned_by_client();
expand->set_animate_on_state_change(false);
expand->SetAccessibleName(l10n_util::GetStringUTF16(
IDS_MESSAGE_CENTER_EXPAND_NOTIFICATION_BUTTON_ACCESSIBLE_NAME));
expand_button_.reset(expand);
Expand Down

0 comments on commit 933d632

Please sign in to comment.