summaryrefslogtreecommitdiffstats
path: root/chrome/views
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 19:35:15 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 19:35:15 +0000
commit5e5df50b03c73dad60d81c989b11d8e1ee436dbe (patch)
tree9d64b42c5c109dfe14581e56c9bb6a731d82e352 /chrome/views
parentd62232baeefd5a2b0385238647266d26332628d0 (diff)
downloadchromium_src-5e5df50b03c73dad60d81c989b11d8e1ee436dbe.zip
chromium_src-5e5df50b03c73dad60d81c989b11d8e1ee436dbe.tar.gz
chromium_src-5e5df50b03c73dad60d81c989b11d8e1ee436dbe.tar.bz2
Reverting r12383, caused a build breakage on all platforms.
TBR=idanan Review URL: http://codereview.chromium.org/42571 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12385 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views')
-rw-r--r--chrome/views/controls/button/custom_button.cc5
-rw-r--r--chrome/views/controls/button/custom_button.h11
2 files changed, 2 insertions, 14 deletions
diff --git a/chrome/views/controls/button/custom_button.cc b/chrome/views/controls/button/custom_button.cc
index 4193918..a01c0ab 100644
--- a/chrome/views/controls/button/custom_button.cc
+++ b/chrome/views/controls/button/custom_button.cc
@@ -82,14 +82,13 @@ bool CustomButton::IsFocusable() const {
CustomButton::CustomButton(ButtonListener* listener)
: Button(listener),
state_(BS_NORMAL),
- animate_on_state_change_(true),
- triggerable_event_flags_(MouseEvent::EF_LEFT_BUTTON_DOWN) {
+ animate_on_state_change_(true) {
hover_animation_.reset(new ThrobAnimation(this));
hover_animation_->SetSlideDuration(kHoverFadeDurationMs);
}
bool CustomButton::IsTriggerableEvent(const MouseEvent& e) {
- return (triggerable_event_flags_ & e.GetFlags()) != 0;
+ return e.IsLeftMouseButton();
}
////////////////////////////////////////////////////////////////////////////////
diff --git a/chrome/views/controls/button/custom_button.h b/chrome/views/controls/button/custom_button.h
index db0bc9e..cb4db5d 100644
--- a/chrome/views/controls/button/custom_button.h
+++ b/chrome/views/controls/button/custom_button.h
@@ -43,14 +43,6 @@ class CustomButton : public Button,
virtual bool IsEnabled() const;
virtual bool IsFocusable() const;
- void set_triggerable_event_flags(int triggerable_event_flags) {
- triggerable_event_flags_ = triggerable_event_flags;
- }
-
- int triggerable_event_flags() const {
- return triggerable_event_flags_;
- }
-
protected:
// Construct the Button with a Listener. See comment for Button's ctor.
explicit CustomButton(ButtonListener* listener);
@@ -94,9 +86,6 @@ class CustomButton : public Button,
// throbbing.
bool animate_on_state_change_;
- // Mouse event flags which can trigger button actions.
- int triggerable_event_flags_;
-
DISALLOW_COPY_AND_ASSIGN(CustomButton);
};