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

Unified Diff: ui/views/controls/button/button.cc

Issue 11419227: touch: Fix ctrl+taps for buttons on bookmark bar and toolbar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « ui/views/controls/button/button.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/button.cc
diff --git a/ui/views/controls/button/button.cc b/ui/views/controls/button/button.cc
index 0de1e57e87b90623a3bd310d563a462399218cc5..9f1437393c43a1cef39126559650f01fd5f0eaab 100644
--- a/ui/views/controls/button/button.cc
+++ b/ui/views/controls/button/button.cc
@@ -50,19 +50,15 @@ void Button::GetAccessibleState(ui::AccessibleViewState* state) {
Button::Button(ButtonListener* listener)
: listener_(listener),
- tag_(-1),
- mouse_event_flags_(0) {
+ tag_(-1) {
set_accessibility_focusable(true);
}
void Button::NotifyClick(const ui::Event& event) {
- mouse_event_flags_ = event.IsMouseEvent() ? event.flags() : 0;
// We can be called when there is no listener, in cases like double clicks on
// menu buttons etc.
if (listener_)
listener_->ButtonPressed(this, event);
- // NOTE: don't attempt to reset mouse_event_flags_ as the listener may have
- // deleted us.
}
} // namespace views
« no previous file with comments | « ui/views/controls/button/button.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698