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

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

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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
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/touch_event_stream_validator.h" 5 #include "content/common/input/touch_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 "content/common/input/web_input_event_traits.h" 9 #include "content/public/common/input/web_input_event_traits.h"
10 #include "content/common/input/web_touch_event_traits.h" 10 #include "content/public/common/input/web_touch_event_traits.h"
11 11
12 using base::StringPrintf; 12 using base::StringPrintf;
13 using blink::WebInputEvent; 13 using blink::WebInputEvent;
14 using blink::WebTouchEvent; 14 using blink::WebTouchEvent;
15 using blink::WebTouchPoint; 15 using blink::WebTouchPoint;
16 16
17 namespace content { 17 namespace content {
18 namespace { 18 namespace {
19 19
20 const WebTouchPoint* FindTouchPoint(const WebTouchEvent& event, int id) { 20 const WebTouchPoint* FindTouchPoint(const WebTouchEvent& event, int id) {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 if (!found_valid_state_for_type) { 156 if (!found_valid_state_for_type) {
157 error_msg->append( 157 error_msg->append(
158 StringPrintf("No valid touch point corresponding to event type: %s\n", 158 StringPrintf("No valid touch point corresponding to event type: %s\n",
159 WebInputEventTraits::GetName(event.type))); 159 WebInputEventTraits::GetName(event.type)));
160 } 160 }
161 161
162 return error_msg->empty(); 162 return error_msg->empty();
163 } 163 }
164 164
165 } // namespace content 165 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698