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

Unified Diff: ash/common/frame/caption_buttons/frame_caption_button.cc

Issue 2406323002: CustomButton: restrict animation repaints to buttons that actually animate (Closed)
Patch Set: CustomButton: restrict animation repaints to buttons that actually animate Created 4 years, 2 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 | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | ui/views/controls/button/custom_button.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/frame/caption_buttons/frame_caption_button.cc
diff --git a/ash/common/frame/caption_buttons/frame_caption_button.cc b/ash/common/frame/caption_buttons/frame_caption_button.cc
index eaf494c2cc13acf0c3c3ab8fbe532daeaa90f5c3..24bbbcfbfa1591f3b0f9580dee75d313b25a7a4a 100644
--- a/ash/common/frame/caption_buttons/frame_caption_button.cc
+++ b/ash/common/frame/caption_buttons/frame_caption_button.cc
@@ -44,6 +44,7 @@ FrameCaptionButton::FrameCaptionButton(views::ButtonListener* listener,
use_light_images_(false),
alpha_(255),
swap_images_animation_(new gfx::SlideAnimation(this)) {
+ set_animates_hover(true);
swap_images_animation_->Reset(1);
// Do not flip the gfx::Canvas passed to the OnPaint() method. The snap left
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | ui/views/controls/button/custom_button.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698