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

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

Issue 2336803003: Make SyntheticPointerAction to flush the pointer action sequence (Closed)
Patch Set: controller Created 3 years, 12 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 | « no previous file | content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc » ('j') | 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/synthetic_gesture.h" 5 #include "content/browser/renderer_host/input/synthetic_gesture.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" 8 #include "content/browser/renderer_host/input/synthetic_gesture_target.h"
9 #include "content/browser/renderer_host/input/synthetic_pinch_gesture.h" 9 #include "content/browser/renderer_host/input/synthetic_pinch_gesture.h"
10 #include "content/browser/renderer_host/input/synthetic_pointer_action.h" 10 #include "content/browser/renderer_host/input/synthetic_pointer_action.h"
(...skipping 25 matching lines...) Expand all
36 SyntheticSmoothScrollGestureParams>(gesture_params); 36 SyntheticSmoothScrollGestureParams>(gesture_params);
37 case SyntheticGestureParams::SMOOTH_DRAG_GESTURE: 37 case SyntheticGestureParams::SMOOTH_DRAG_GESTURE:
38 return CreateGesture<SyntheticSmoothDragGesture, 38 return CreateGesture<SyntheticSmoothDragGesture,
39 SyntheticSmoothDragGestureParams>(gesture_params); 39 SyntheticSmoothDragGestureParams>(gesture_params);
40 case SyntheticGestureParams::PINCH_GESTURE: 40 case SyntheticGestureParams::PINCH_GESTURE:
41 return CreateGesture<SyntheticPinchGesture, 41 return CreateGesture<SyntheticPinchGesture,
42 SyntheticPinchGestureParams>(gesture_params); 42 SyntheticPinchGestureParams>(gesture_params);
43 case SyntheticGestureParams::TAP_GESTURE: 43 case SyntheticGestureParams::TAP_GESTURE:
44 return CreateGesture<SyntheticTapGesture, 44 return CreateGesture<SyntheticTapGesture,
45 SyntheticTapGestureParams>(gesture_params); 45 SyntheticTapGestureParams>(gesture_params);
46 case SyntheticGestureParams::POINTER_ACTION_LIST:
47 return CreateGesture<SyntheticPointerAction,
48 SyntheticPointerActionListParams>(gesture_params);
46 default: 49 default:
47 NOTREACHED() << "Invalid synthetic gesture type"; 50 NOTREACHED() << "Invalid synthetic gesture type";
48 return nullptr; 51 return nullptr;
49 } 52 }
50 } 53 }
51 54
52 } // namespace content 55 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698