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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 = WebGestureEvent::Touchscreen; |
132 | 132 |
133 return result; | 133 return result; |
134 } | 134 } |
135 | 135 |
136 blink::WebTouchEvent WebTouchEventBuilder::Build( | |
137 const MotionEventAndroid& event, | |
138 float scale) { | |
139 return CreateWebTouchEventFromMotionEvent(event, scale); | |
140 } | |
141 | |
142 } // namespace content | 136 } // namespace content |
OLD | NEW |