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

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

Issue 304793003: use enum to specify deviceSource for fling animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed desired #include Created 6 years, 6 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 | Annotate | Revision Log
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::WebGestureDeviceTouchpad;
132 132
133 return result; 133 return result;
134 } 134 }
135 135
136 } // namespace content 136 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698