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

Unified Diff: ash/wm/maximize_mode/internal_input_device_list_x11.cc

Issue 313913004: Block internal PlatformEvents before they are dispatched in touchview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove obsolete comment and unnecessary includes. Created 6 years, 6 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
Index: ash/wm/maximize_mode/internal_input_device_list_x11.cc
diff --git a/ash/wm/maximize_mode/internal_input_device_list_x11.cc b/ash/wm/maximize_mode/internal_input_device_list_x11.cc
index 8753f8259de932def03c1db588ebc14bce7ec559..6928184a591b12e6054574b49d9d9af98882a9e6 100644
--- a/ash/wm/maximize_mode/internal_input_device_list_x11.cc
+++ b/ash/wm/maximize_mode/internal_input_device_list_x11.cc
@@ -43,14 +43,12 @@ InternalInputDeviceListX11::~InternalInputDeviceListX11() {
}
bool InternalInputDeviceListX11::IsEventFromInternalDevice(
- const ui::Event* event) {
- if (!event->HasNativeEvent() ||
- event->native_event()->type != GenericEvent) {
+ const ui::PlatformEvent& event) {
+ if (event->type != GenericEvent)
return false;
- }
XIDeviceEvent* xiev = static_cast<XIDeviceEvent*>(
- event->native_event()->xcookie.data);
+ event->xcookie.data);
return internal_device_ids_.find(xiev->sourceid) !=
internal_device_ids_.end();
}

Powered by Google App Engine
This is Rietveld 408576698