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

Side by Side Diff: content/renderer/input/input_handler_wrapper.cc

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent Created 4 years, 1 month 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
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/renderer/input/input_handler_wrapper.h" 5 #include "content/renderer/input/input_handler_wrapper.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "content/renderer/input/input_event_filter.h" 10 #include "content/renderer/input/input_event_filter.h"
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 void InputHandlerWrapper::TransferActiveWheelFlingAnimation( 42 void InputHandlerWrapper::TransferActiveWheelFlingAnimation(
43 const blink::WebActiveWheelFlingParameters& params) { 43 const blink::WebActiveWheelFlingParameters& params) {
44 main_task_runner_->PostTask( 44 main_task_runner_->PostTask(
45 FROM_HERE, base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation, 45 FROM_HERE, base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation,
46 render_view_impl_, params)); 46 render_view_impl_, params));
47 } 47 }
48 48
49 void InputHandlerWrapper::DispatchNonBlockingEventToMainThread( 49 void InputHandlerWrapper::DispatchNonBlockingEventToMainThread(
50 ui::ScopedWebInputEvent event, 50 blink::ScopedCoalescedWebInputEvent event,
51 const ui::LatencyInfo& latency_info) { 51 const ui::LatencyInfo& latency_info) {
52 input_handler_manager_->DispatchNonBlockingEventToMainThread( 52 input_handler_manager_->DispatchNonBlockingEventToMainThread(
53 routing_id_, std::move(event), latency_info); 53 routing_id_, std::move(event), latency_info);
54 } 54 }
55 55
56 void InputHandlerWrapper::WillShutdown() { 56 void InputHandlerWrapper::WillShutdown() {
57 input_handler_manager_->RemoveInputHandler(routing_id_); 57 input_handler_manager_->RemoveInputHandler(routing_id_);
58 } 58 }
59 59
60 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve( 60 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve(
(...skipping 19 matching lines...) Expand all
80 80
81 void InputHandlerWrapper::DidStopFlinging() { 81 void InputHandlerWrapper::DidStopFlinging() {
82 input_handler_manager_->DidStopFlinging(routing_id_); 82 input_handler_manager_->DidStopFlinging(routing_id_);
83 } 83 }
84 84
85 void InputHandlerWrapper::DidAnimateForInput() { 85 void InputHandlerWrapper::DidAnimateForInput() {
86 input_handler_manager_->DidAnimateForInput(); 86 input_handler_manager_->DidAnimateForInput();
87 } 87 }
88 88
89 } // namespace content 89 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698