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

Unified Diff: content/browser/web_contents/web_contents_view_android.h

Issue 2708613002: Add EventForwarder for routing touch events (Closed)
Patch Set: EventForwarder... Created 3 years, 9 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: content/browser/web_contents/web_contents_view_android.h
diff --git a/content/browser/web_contents/web_contents_view_android.h b/content/browser/web_contents/web_contents_view_android.h
index c1ad8dc0a6065561d92d3f937ff69435b045d676..1179268abac62bc3f1dd3d69a97baf8780ac4f78 100644
--- a/content/browser/web_contents/web_contents_view_android.h
+++ b/content/browser/web_contents/web_contents_view_android.h
@@ -15,6 +15,7 @@
#include "content/public/common/drop_data.h"
#include "ui/android/overscroll_refresh.h"
#include "ui/android/view_android.h"
+#include "ui/android/view_client.h"
#include "ui/gfx/geometry/rect_f.h"
namespace content {
@@ -24,7 +25,8 @@ class WebContentsImpl;
// Android-specific implementation of the WebContentsView.
class WebContentsViewAndroid : public WebContentsView,
- public RenderViewHostDelegateView {
+ public RenderViewHostDelegateView,
+ public ui::ViewClient {
public:
WebContentsViewAndroid(WebContentsImpl* web_contents,
WebContentsViewDelegate* delegate);
@@ -105,6 +107,10 @@ class WebContentsViewAndroid : public WebContentsView,
const gfx::Point& screen_location);
void OnDragEnded();
+ // ui::ViewClient implementation.
+ bool OnTouchEvent(const ui::MotionEventAndroid& event,
+ bool for_touch_handle) override;
+
private:
// The WebContents whose contents we display.
WebContentsImpl* web_contents_;
« no previous file with comments | « content/browser/web_contents/web_contents_android.cc ('k') | content/browser/web_contents/web_contents_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698