summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs/base_tab.cc
diff options
context:
space:
mode:
authorstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 16:34:10 +0000
committerstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 16:34:10 +0000
commitf38eb3b69a075915d49a7ef0e73ac8799cfa47f2 (patch)
tree36f3d78998ce65adbb91b2accbfafc1642591429 /chrome/browser/views/tabs/base_tab.cc
parentf4baafa9589f39be7c49b2db4a0cffde7681ff13 (diff)
downloadchromium_src-f38eb3b69a075915d49a7ef0e73ac8799cfa47f2.zip
chromium_src-f38eb3b69a075915d49a7ef0e73ac8799cfa47f2.tar.gz
chromium_src-f38eb3b69a075915d49a7ef0e73ac8799cfa47f2.tar.bz2
Remove SetAnimation() call for tab close button.
http://code.google.com/p/chromium-os/issues/detail?id=3929 BUG=chromium-os:3929 TEST=manual (hover over close button, should fade in/out same as other hover behavior) Review URL: http://codereview.chromium.org/2809054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tabs/base_tab.cc')
-rw-r--r--chrome/browser/views/tabs/base_tab.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/views/tabs/base_tab.cc b/chrome/browser/views/tabs/base_tab.cc
index 8a7b11d..fb8e525 100644
--- a/chrome/browser/views/tabs/base_tab.cc
+++ b/chrome/browser/views/tabs/base_tab.cc
@@ -161,6 +161,8 @@ BaseTab::BaseTab(TabController* controller)
close_button->SetImage(views::CustomButton::BS_PUSHED, close_button_p);
close_button->SetTooltipText(l10n_util::GetString(IDS_TOOLTIP_CLOSE_TAB));
close_button->SetAccessibleName(l10n_util::GetString(IDS_ACCNAME_CLOSE));
+ // Disable animation so that the red danger sign shows up immediately
+ // to help avoid mis-clicks.
close_button->SetAnimationDuration(0);
AddChildView(close_button);