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

Side by Side Diff: content/browser/renderer_host/input/web_input_event_builders_android.cc

Issue 217253002: [Android] Short-circuit touch forwarding when no touch handlers exist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 years, 8 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
« no previous file with comments | « content/browser/renderer_host/input/web_input_event_builders_android.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/web_input_event_builders_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698