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

Unified Diff: components/web_input/input_handler_proxy_client.h

Issue 1415953004: Move content/renderer input handling for web input events to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Component rename. Created 5 years, 1 month 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: components/web_input/input_handler_proxy_client.h
diff --git a/content/renderer/input/input_handler_proxy_client.h b/components/web_input/input_handler_proxy_client.h
similarity index 71%
rename from content/renderer/input/input_handler_proxy_client.h
rename to components/web_input/input_handler_proxy_client.h
index 53b4bc94846de1a4c6097587e25105dffa9ab86d..b7106f698392cd566d2879cc7746d9cf0cb086a8 100644
--- a/content/renderer/input/input_handler_proxy_client.h
+++ b/components/web_input/input_handler_proxy_client.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
-#define CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
+#ifndef COMPONENTS_WEB_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
+#define COMPONENTS_WEB_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
namespace blink {
class WebGestureCurve;
@@ -12,9 +12,7 @@ struct WebFloatPoint;
struct WebSize;
}
-namespace content {
-
-struct DidOverscrollParams;
+namespace web_input {
// All callbacks invoked from the compositor thread.
class InputHandlerProxyClient {
@@ -34,7 +32,11 @@ class InputHandlerProxyClient {
const blink::WebFloatPoint& velocity,
const blink::WebSize& cumulative_scroll) = 0;
- virtual void DidOverscroll(const DidOverscrollParams& params) = 0;
+ virtual void DidOverscroll(
+ const gfx::Vector2dF& accumulated_overscroll,
+ const gfx::Vector2dF& latest_overscroll_delta,
+ const gfx::Vector2dF& current_fling_velocity,
+ const gfx::PointF& causal_event_viewport_point) = 0;
virtual void DidStopFlinging() = 0;
@@ -44,6 +46,6 @@ class InputHandlerProxyClient {
virtual ~InputHandlerProxyClient() {}
};
-} // namespace content
+} // namespace web_input
-#endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
+#endif // COMPONENTS_WEB_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698