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

Side by Side Diff: blimp/client/core/input/blimp_input_handler_wrapper.cc

Issue 2341873002: Handle touchpad flings with passive event listeners on compositor thread. (Closed)
Patch Set: Fix windows 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "blimp/client/core/input/blimp_input_handler_wrapper.h" 5 #include "blimp/client/core/input/blimp_input_handler_wrapper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 void BlimpInputHandlerWrapper::TransferActiveWheelFlingAnimation( 88 void BlimpInputHandlerWrapper::TransferActiveWheelFlingAnimation(
89 const blink::WebActiveWheelFlingParameters& params) { 89 const blink::WebActiveWheelFlingParameters& params) {
90 DCHECK(compositor_thread_checker_.CalledOnValidThread()); 90 DCHECK(compositor_thread_checker_.CalledOnValidThread());
91 91
92 NOTIMPLEMENTED() 92 NOTIMPLEMENTED()
93 << "Transferring Fling Animations to the engine is not supported"; 93 << "Transferring Fling Animations to the engine is not supported";
94 } 94 }
95 95
96 void BlimpInputHandlerWrapper::DispatchNonBlockingEventToMainThread(
97 ui::ScopedWebInputEvent event,
98 const ui::LatencyInfo& latency_info) {
99 DCHECK(compositor_thread_checker_.CalledOnValidThread());
Wez 2016/09/20 20:24:24 Let's DCHECK the assumption that this is only hand
dtapuska 2016/09/20 21:14:01 Done.
100
101 NOTIMPLEMENTED()
102 << "Dispatching Non Blocking Events to the engine is not supported";
103 }
104
96 blink::WebGestureCurve* BlimpInputHandlerWrapper::CreateFlingAnimationCurve( 105 blink::WebGestureCurve* BlimpInputHandlerWrapper::CreateFlingAnimationCurve(
97 blink::WebGestureDevice device_source, 106 blink::WebGestureDevice device_source,
98 const blink::WebFloatPoint& velocity, 107 const blink::WebFloatPoint& velocity,
99 const blink::WebSize& cumulative_scroll) { 108 const blink::WebSize& cumulative_scroll) {
100 DCHECK(compositor_thread_checker_.CalledOnValidThread()); 109 DCHECK(compositor_thread_checker_.CalledOnValidThread());
101 110
102 return ui::WebGestureCurveImpl::CreateFromDefaultPlatformCurve( 111 return ui::WebGestureCurveImpl::CreateFromDefaultPlatformCurve(
103 gfx::Vector2dF(velocity.x, velocity.y), 112 gfx::Vector2dF(velocity.x, velocity.y),
104 gfx::Vector2dF(cumulative_scroll.width, cumulative_scroll.height), 113 gfx::Vector2dF(cumulative_scroll.width, cumulative_scroll.height),
105 false /* on_main_thread */) 114 false /* on_main_thread */)
(...skipping 27 matching lines...) Expand all
133 input_handler_proxy_ = 142 input_handler_proxy_ =
134 base::MakeUnique<ui::InputHandlerProxy>(input_handler, this); 143 base::MakeUnique<ui::InputHandlerProxy>(input_handler, this);
135 main_task_runner_->PostTask( 144 main_task_runner_->PostTask(
136 FROM_HERE, 145 FROM_HERE,
137 base::Bind(&BlimpInputManager::OnInputHandlerWrapperInitialized, 146 base::Bind(&BlimpInputManager::OnInputHandlerWrapperInitialized,
138 input_manager_weak_ptr_, weak_factory_.GetWeakPtr())); 147 input_manager_weak_ptr_, weak_factory_.GetWeakPtr()));
139 } 148 }
140 149
141 } // namespace client 150 } // namespace client
142 } // namespace blimp 151 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/input/blimp_input_handler_wrapper.h ('k') | content/renderer/input/input_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698