| 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/browser/renderer_host/input/web_input_event_builders_android.h
" | 5 #include "content/browser/renderer_host/input/web_input_event_builders_android.h
" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/browser/renderer_host/input/motion_event_android.h" | 8 #include "content/browser/renderer_host/input/motion_event_android.h" |
| 9 #include "content/browser/renderer_host/input/web_input_event_util.h" | 9 #include "content/browser/renderer_host/input/web_input_event_util.h" |
| 10 #include "content/browser/renderer_host/input/web_input_event_util_posix.h" | 10 #include "content/browser/renderer_host/input/web_input_event_util_posix.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 double time_sec, | 121 double time_sec, |
| 122 int x, | 122 int x, |
| 123 int y) { | 123 int y) { |
| 124 DCHECK(WebInputEvent::isGestureEventType(type)); | 124 DCHECK(WebInputEvent::isGestureEventType(type)); |
| 125 WebGestureEvent result; | 125 WebGestureEvent result; |
| 126 | 126 |
| 127 result.type = type; | 127 result.type = type; |
| 128 result.x = x; | 128 result.x = x; |
| 129 result.y = y; | 129 result.y = y; |
| 130 result.timeStampSeconds = time_sec; | 130 result.timeStampSeconds = time_sec; |
| 131 result.sourceDevice = WebGestureEvent::Touchscreen; | 131 result.sourceDevice = blink::WebGestureDeviceTouchscreen; |
| 132 | 132 |
| 133 return result; | 133 return result; |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace content | 136 } // namespace content |
| OLD | NEW |