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

Unified Diff: ui/events/blink/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: Rebase. 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
« no previous file with comments | « ui/events/blink/input_handler_proxy.cc ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/input_handler_proxy_client.h
diff --git a/content/renderer/input/input_handler_proxy_client.h b/ui/events/blink/input_handler_proxy_client.h
similarity index 72%
rename from content/renderer/input/input_handler_proxy_client.h
rename to ui/events/blink/input_handler_proxy_client.h
index 53b4bc94846de1a4c6097587e25105dffa9ab86d..34ce9fe95a9b4a1a2b7ed2c9dfc13de13309e3af 100644
--- a/content/renderer/input/input_handler_proxy_client.h
+++ b/ui/events/blink/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 UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_
+#define UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_
namespace blink {
class WebGestureCurve;
@@ -12,9 +12,7 @@ struct WebFloatPoint;
struct WebSize;
}
-namespace content {
-
-struct DidOverscrollParams;
+namespace ui {
// 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 ui
-#endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
+#endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_
« no previous file with comments | « ui/events/blink/input_handler_proxy.cc ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698