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

Side by Side Diff: content/common/input/gesture_event_stream_validator.cc

Issue 2581943003: Move WebMouseWheelEvent into its own header file. (Closed)
Patch Set: Fix mac unittest Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/common/input/gesture_event_stream_validator.h" 5 #include "content/common/input/gesture_event_stream_validator.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
9 #include "third_party/WebKit/public/platform/WebInputEvent.h" 10 #include "third_party/WebKit/public/platform/WebInputEvent.h"
10 #include "ui/events/blink/web_input_event_traits.h" 11 #include "ui/events/blink/web_input_event_traits.h"
11 12
12 using blink::WebInputEvent; 13 using blink::WebInputEvent;
13 14
14 namespace content { 15 namespace content {
15 16
16 GestureEventStreamValidator::GestureEventStreamValidator() 17 GestureEventStreamValidator::GestureEventStreamValidator()
17 : scrolling_(false), pinching_(false), waiting_for_tap_end_(false) { 18 : scrolling_(false), pinching_(false), waiting_for_tap_end_(false) {
18 } 19 }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // 'continuity check', requiring that all events between an initial tap-down 105 // 'continuity check', requiring that all events between an initial tap-down
105 // and whatever terminates the sequence to have the same source device type, 106 // and whatever terminates the sequence to have the same source device type,
106 // and that touchpad gestures are only found on ScrollEvents. 107 // and that touchpad gestures are only found on ScrollEvents.
107 if (event.sourceDevice == blink::WebGestureDeviceUninitialized) 108 if (event.sourceDevice == blink::WebGestureDeviceUninitialized)
108 error_msg->append("Gesture event source is uninitialized.\n"); 109 error_msg->append("Gesture event source is uninitialized.\n");
109 110
110 return error_msg->empty(); 111 return error_msg->empty();
111 } 112 }
112 113
113 } // namespace content 114 } // namespace content
OLDNEW
« no previous file with comments | « content/common/input/event_with_latency_info.h ('k') | content/common/input/input_event_stream_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698