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

Unified Diff: ui/views/controls/menu/menu_event_dispatcher_linux.cc

Issue 785753002: Don't refcount tracking id -> slot id mapping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix uninitialized memory issue. Created 6 years 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
« ui/events/event.cc ('K') | « ui/events/x/events_x_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_event_dispatcher_linux.cc
diff --git a/ui/views/controls/menu/menu_event_dispatcher_linux.cc b/ui/views/controls/menu/menu_event_dispatcher_linux.cc
index 51990fd07f00f50abadf05859a6d6c33a67208e2..bd9548b43b9ea674077257f65711af82f1e723ca 100644
--- a/ui/views/controls/menu/menu_event_dispatcher_linux.cc
+++ b/ui/views/controls/menu/menu_event_dispatcher_linux.cc
@@ -75,6 +75,10 @@ uint32_t MenuEventDispatcher::DispatchEvent(const ui::PlatformEvent& event) {
should_quit = false;
should_perform_default = false;
break;
+ case ui::ET_TOUCH_RELEASED:
+ case ui::ET_TOUCH_CANCELLED:
+ static_cast<ui::TouchEvent*>(ui_event.get())
+ ->set_should_remove_native_touch_id_mapping(false);
sadrul 2015/01/14 20:21:35 + break; Add a comment explaining why this is nec
tdresser 2015/01/23 18:12:34 Done (eek, thanks)
default:
break;
}
« ui/events/event.cc ('K') | « ui/events/x/events_x_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698