| OLD | NEW |
| 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_touch_event_traits.h" | 9 #include "content/common/input/web_touch_event_traits.h" |
| 10 #include "third_party/WebKit/public/platform/WebTouchEvent.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 base::StringPrintf; | 13 using base::StringPrintf; |
| 13 using blink::WebInputEvent; | 14 using blink::WebInputEvent; |
| 14 using blink::WebTouchEvent; | 15 using blink::WebTouchEvent; |
| 15 using blink::WebTouchPoint; | 16 using blink::WebTouchPoint; |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 if (!found_valid_state_for_type) { | 161 if (!found_valid_state_for_type) { |
| 161 error_msg->append( | 162 error_msg->append( |
| 162 StringPrintf("No valid touch point corresponding to event type: %s\n", | 163 StringPrintf("No valid touch point corresponding to event type: %s\n", |
| 163 WebInputEvent::GetName(event.type()))); | 164 WebInputEvent::GetName(event.type()))); |
| 164 } | 165 } |
| 165 | 166 |
| 166 return error_msg->empty(); | 167 return error_msg->empty(); |
| 167 } | 168 } |
| 168 | 169 |
| 169 } // namespace content | 170 } // namespace content |
| OLD | NEW |