| 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()); |
| 100 DCHECK_EQ(event->type, blink::WebInputEvent::MouseWheel); |
| 101 |
| 102 NOTIMPLEMENTED() |
| 103 << "Dispatching Non Blocking Events to the engine is not supported"; |
| 104 } |
| 105 |
| 96 blink::WebGestureCurve* BlimpInputHandlerWrapper::CreateFlingAnimationCurve( | 106 blink::WebGestureCurve* BlimpInputHandlerWrapper::CreateFlingAnimationCurve( |
| 97 blink::WebGestureDevice device_source, | 107 blink::WebGestureDevice device_source, |
| 98 const blink::WebFloatPoint& velocity, | 108 const blink::WebFloatPoint& velocity, |
| 99 const blink::WebSize& cumulative_scroll) { | 109 const blink::WebSize& cumulative_scroll) { |
| 100 DCHECK(compositor_thread_checker_.CalledOnValidThread()); | 110 DCHECK(compositor_thread_checker_.CalledOnValidThread()); |
| 101 | 111 |
| 102 return ui::WebGestureCurveImpl::CreateFromDefaultPlatformCurve( | 112 return ui::WebGestureCurveImpl::CreateFromDefaultPlatformCurve( |
| 103 gfx::Vector2dF(velocity.x, velocity.y), | 113 gfx::Vector2dF(velocity.x, velocity.y), |
| 104 gfx::Vector2dF(cumulative_scroll.width, cumulative_scroll.height), | 114 gfx::Vector2dF(cumulative_scroll.width, cumulative_scroll.height), |
| 105 false /* on_main_thread */) | 115 false /* on_main_thread */) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 133 input_handler_proxy_ = | 143 input_handler_proxy_ = |
| 134 base::MakeUnique<ui::InputHandlerProxy>(input_handler, this); | 144 base::MakeUnique<ui::InputHandlerProxy>(input_handler, this); |
| 135 main_task_runner_->PostTask( | 145 main_task_runner_->PostTask( |
| 136 FROM_HERE, | 146 FROM_HERE, |
| 137 base::Bind(&BlimpInputManager::OnInputHandlerWrapperInitialized, | 147 base::Bind(&BlimpInputManager::OnInputHandlerWrapperInitialized, |
| 138 input_manager_weak_ptr_, weak_factory_.GetWeakPtr())); | 148 input_manager_weak_ptr_, weak_factory_.GetWeakPtr())); |
| 139 } | 149 } |
| 140 | 150 |
| 141 } // namespace client | 151 } // namespace client |
| 142 } // namespace blimp | 152 } // namespace blimp |
| OLD | NEW |