Index: content/browser/renderer_host/input/synthetic_gesture_controller.cc |
diff --git a/content/browser/renderer_host/input/synthetic_gesture_controller.cc b/content/browser/renderer_host/input/synthetic_gesture_controller.cc |
index 9e5bc84403eb18e01f09e43b26b9db51fbd20211..ea9b82c06726c23eefa960a1c3697bc573c27354 100644 |
--- a/content/browser/renderer_host/input/synthetic_gesture_controller.cc |
+++ b/content/browser/renderer_host/input/synthetic_gesture_controller.cc |
@@ -16,7 +16,10 @@ namespace content { |
SyntheticGestureController::SyntheticGestureController( |
std::unique_ptr<SyntheticGestureTarget> gesture_target) |
- : gesture_target_(std::move(gesture_target)) {} |
+ : gesture_target_(std::move(gesture_target)) { |
+ pointer_action_controller_.SetDefaultGestureSourceType( |
+ gesture_target_->GetDefaultSyntheticGestureSourceType()); |
+} |
SyntheticGestureController::~SyntheticGestureController() {} |
@@ -93,6 +96,13 @@ void SyntheticGestureController::StopGesture( |
completion_callback.Run(result); |
} |
+std::unique_ptr<SyntheticGesture> |
+SyntheticGestureController::CreateSyntheticPointerAction( |
+ const SyntheticPointerActionListParams& gesture_params) { |
+ return pointer_action_controller_.CreateSyntheticPointerAction( |
+ *SyntheticPointerActionListParams::Cast(&gesture_params)); |
+} |
+ |
SyntheticGestureController::GestureAndCallbackQueue::GestureAndCallbackQueue() { |
} |