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

Unified Diff: blimp/client/core/input/blimp_input_handler_wrapper.cc

Issue 2241623002: blimp: Move compositing, input and render widget feature to client/core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments from #7 Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: blimp/client/core/input/blimp_input_handler_wrapper.cc
diff --git a/blimp/client/feature/compositor/blimp_input_handler_wrapper.cc b/blimp/client/core/input/blimp_input_handler_wrapper.cc
similarity index 81%
rename from blimp/client/feature/compositor/blimp_input_handler_wrapper.cc
rename to blimp/client/core/input/blimp_input_handler_wrapper.cc
index 9f24ec8590cdd32d1d1ee371dd46f6bff30ffbe3..f105e5723b2a4f3640558f47456e4c144691532e 100644
--- a/blimp/client/feature/compositor/blimp_input_handler_wrapper.cc
+++ b/blimp/client/core/input/blimp_input_handler_wrapper.cc
@@ -2,12 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "blimp/client/feature/compositor/blimp_input_handler_wrapper.h"
+#include "blimp/client/core/input/blimp_input_handler_wrapper.h"
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
-#include "blimp/client/feature/compositor/blimp_input_manager.h"
+#include "base/synchronization/waitable_event.h"
+#include "base/threading/thread_checker.h"
+#include "blimp/client/core/input/blimp_input_manager.h"
+#include "ui/events/blink/input_handler_proxy.h"
#include "ui/events/gestures/blink/web_gesture_curve_impl.h"
namespace blimp {
@@ -21,8 +24,7 @@ BlimpInputHandlerWrapper::BlimpInputHandlerWrapper(
input_manager_weak_ptr_(input_manager_weak_ptr) {
DCHECK(compositor_thread_checker_.CalledOnValidThread());
DCHECK(input_handler);
- input_handler_proxy_.reset(
- new ui::InputHandlerProxy(input_handler, this));
+ input_handler_proxy_.reset(new ui::InputHandlerProxy(input_handler, this));
}
BlimpInputHandlerWrapper::~BlimpInputHandlerWrapper() {
@@ -72,21 +74,21 @@ void BlimpInputHandlerWrapper::TransferActiveWheelFlingAnimation(
const blink::WebActiveWheelFlingParameters& params) {
DCHECK(compositor_thread_checker_.CalledOnValidThread());
- NOTIMPLEMENTED() <<
- "Transferring Fling Animations to the engine is not supported";
+ NOTIMPLEMENTED()
+ << "Transferring Fling Animations to the engine is not supported";
}
blink::WebGestureCurve* BlimpInputHandlerWrapper::CreateFlingAnimationCurve(
- blink::WebGestureDevice device_source,
- const blink::WebFloatPoint& velocity,
- const blink::WebSize& cumulative_scroll) {
+ blink::WebGestureDevice device_source,
+ const blink::WebFloatPoint& velocity,
+ const blink::WebSize& cumulative_scroll) {
DCHECK(compositor_thread_checker_.CalledOnValidThread());
return ui::WebGestureCurveImpl::CreateFromDefaultPlatformCurve(
- gfx::Vector2dF(velocity.x, velocity.y),
- gfx::Vector2dF(cumulative_scroll.width,
- cumulative_scroll.height),
- false /* on_main_thread */).release();
+ gfx::Vector2dF(velocity.x, velocity.y),
+ gfx::Vector2dF(cumulative_scroll.width, cumulative_scroll.height),
+ false /* on_main_thread */)
+ .release();
}
void BlimpInputHandlerWrapper::DidOverscroll(

Powered by Google App Engine
This is Rietveld 408576698