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

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

Issue 2166703003: Implement Main Thread RAF Aligned Input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_main_thread_queue
Patch Set: Fix build Created 4 years, 3 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
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 15 matching lines...) Expand all
26 input_handler_proxy_(input_handler.get(), this), 26 input_handler_proxy_(input_handler.get(), this),
27 main_task_runner_(main_task_runner), 27 main_task_runner_(main_task_runner),
28 render_view_impl_(render_view_impl) { 28 render_view_impl_(render_view_impl) {
29 DCHECK(input_handler); 29 DCHECK(input_handler);
30 input_handler_proxy_.set_smooth_scroll_enabled(enable_smooth_scrolling); 30 input_handler_proxy_.set_smooth_scroll_enabled(enable_smooth_scrolling);
31 } 31 }
32 32
33 InputHandlerWrapper::~InputHandlerWrapper() { 33 InputHandlerWrapper::~InputHandlerWrapper() {
34 } 34 }
35 35
36 void InputHandlerWrapper::NeedsMainFrame() {
37 main_task_runner_->PostTask(
38 FROM_HERE,
39 base::Bind(&RenderViewImpl::NeedsMainFrame, render_view_impl_));
40 }
41
36 void InputHandlerWrapper::TransferActiveWheelFlingAnimation( 42 void InputHandlerWrapper::TransferActiveWheelFlingAnimation(
37 const blink::WebActiveWheelFlingParameters& params) { 43 const blink::WebActiveWheelFlingParameters& params) {
38 main_task_runner_->PostTask( 44 main_task_runner_->PostTask(
39 FROM_HERE, base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation, 45 FROM_HERE, base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation,
40 render_view_impl_, params)); 46 render_view_impl_, params));
41 } 47 }
42 48
43 void InputHandlerWrapper::WillShutdown() { 49 void InputHandlerWrapper::WillShutdown() {
44 input_handler_manager_->RemoveInputHandler(routing_id_); 50 input_handler_manager_->RemoveInputHandler(routing_id_);
45 } 51 }
(...skipping 26 matching lines...) Expand all
72 78
73 void InputHandlerWrapper::DidStopFlinging() { 79 void InputHandlerWrapper::DidStopFlinging() {
74 input_handler_manager_->DidStopFlinging(routing_id_); 80 input_handler_manager_->DidStopFlinging(routing_id_);
75 } 81 }
76 82
77 void InputHandlerWrapper::DidAnimateForInput() { 83 void InputHandlerWrapper::DidAnimateForInput() {
78 input_handler_manager_->DidAnimateForInput(); 84 input_handler_manager_->DidAnimateForInput();
79 } 85 }
80 86
81 } // namespace content 87 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698