Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |