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

Side by Side Diff: ui/events/blink/blink_event_util.cc

Issue 2951973002: Reland of [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « ui/chromeos/touch_exploration_controller.cc ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // MSVC++ requires this to be set before any other includes to get M_PI. 5 // MSVC++ requires this to be set before any other includes to get M_PI.
6 #define _USE_MATH_DEFINES 6 #define _USE_MATH_DEFINES
7 7
8 #include "ui/events/blink/blink_event_util.h" 8 #include "ui/events/blink/blink_event_util.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 break; 620 break;
621 case GestureDeviceType::DEVICE_TOUCHPAD: 621 case GestureDeviceType::DEVICE_TOUCHPAD:
622 gesture.source_device = blink::kWebGestureDeviceTouchpad; 622 gesture.source_device = blink::kWebGestureDeviceTouchpad;
623 break; 623 break;
624 case GestureDeviceType::DEVICE_UNKNOWN: 624 case GestureDeviceType::DEVICE_UNKNOWN:
625 NOTREACHED() << "Unknown device type is not allowed"; 625 NOTREACHED() << "Unknown device type is not allowed";
626 gesture.source_device = blink::kWebGestureDeviceUninitialized; 626 gesture.source_device = blink::kWebGestureDeviceUninitialized;
627 break; 627 break;
628 } 628 }
629 629
630 gesture.is_source_touch_event_set_non_blocking =
631 details.is_source_touch_event_set_non_blocking();
632
630 gesture.unique_touch_event_id = unique_touch_event_id; 633 gesture.unique_touch_event_id = unique_touch_event_id;
631 634
632 switch (details.type()) { 635 switch (details.type()) {
633 case ET_GESTURE_SHOW_PRESS: 636 case ET_GESTURE_SHOW_PRESS:
634 gesture.SetType(WebInputEvent::kGestureShowPress); 637 gesture.SetType(WebInputEvent::kGestureShowPress);
635 gesture.data.show_press.width = details.bounding_box_f().width(); 638 gesture.data.show_press.width = details.bounding_box_f().width();
636 gesture.data.show_press.height = details.bounding_box_f().height(); 639 gesture.data.show_press.height = details.bounding_box_f().height();
637 break; 640 break;
638 case ET_GESTURE_DOUBLE_TAP: 641 case ET_GESTURE_DOUBLE_TAP:
639 gesture.SetType(WebInputEvent::kGestureDoubleTap); 642 gesture.SetType(WebInputEvent::kGestureDoubleTap);
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 switch (type) { 986 switch (type) {
984 case blink::WebGestureEvent::kGestureScrollUpdate: 987 case blink::WebGestureEvent::kGestureScrollUpdate:
985 case blink::WebGestureEvent::kGesturePinchUpdate: 988 case blink::WebGestureEvent::kGesturePinchUpdate:
986 return true; 989 return true;
987 default: 990 default:
988 return false; 991 return false;
989 } 992 }
990 } 993 }
991 994
992 } // namespace ui 995 } // namespace ui
OLDNEW
« no previous file with comments | « ui/chromeos/touch_exploration_controller.cc ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698