| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/synthetic_web_input_event_builders.h" | 5 #include "content/common/input/synthetic_web_input_event_builders.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/common/input/web_touch_event_traits.h" | 8 #include "content/public/common/input/web_touch_event_traits.h" |
| 9 #include "ui/events/base_event_utils.h" | 9 #include "ui/events/base_event_utils.h" |
| 10 #include "ui/events/keycodes/keyboard_codes.h" | 10 #include "ui/events/keycodes/keyboard_codes.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 using blink::WebInputEvent; | 14 using blink::WebInputEvent; |
| 15 using blink::WebKeyboardEvent; | 15 using blink::WebKeyboardEvent; |
| 16 using blink::WebGestureEvent; | 16 using blink::WebGestureEvent; |
| 17 using blink::WebMouseEvent; | 17 using blink::WebMouseEvent; |
| 18 using blink::WebMouseWheelEvent; | 18 using blink::WebMouseWheelEvent; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 touches[index].state = WebTouchPoint::StateCancelled; | 221 touches[index].state = WebTouchPoint::StateCancelled; |
| 222 WebTouchEventTraits::ResetType( | 222 WebTouchEventTraits::ResetType( |
| 223 WebInputEvent::TouchCancel, timeStampSeconds, this); | 223 WebInputEvent::TouchCancel, timeStampSeconds, this); |
| 224 } | 224 } |
| 225 | 225 |
| 226 void SyntheticWebTouchEvent::SetTimestamp(base::TimeDelta timestamp) { | 226 void SyntheticWebTouchEvent::SetTimestamp(base::TimeDelta timestamp) { |
| 227 timeStampSeconds = timestamp.InSecondsF(); | 227 timeStampSeconds = timestamp.InSecondsF(); |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace content | 230 } // namespace content |
| OLD | NEW |