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

Unified Diff: content/browser/android/content_view_core_impl.h

Issue 182383007: Make the ContentGestureProvider a ui::FilteredGestureProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lower similarity Created 6 years, 10 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
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_view_core_impl.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index 9c4ec19aca32304737bcbf560959f9fd6623170d..a5f1042e7496dd07413bd4c0ff4bdf073fa54597 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -14,7 +14,6 @@
#include "base/i18n/rtl.h"
#include "base/memory/scoped_ptr.h"
#include "base/process/process.h"
-#include "content/browser/renderer_host/input/content_gesture_provider.h"
#include "content/browser/renderer_host/render_widget_host_view_android.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/android/content_view_core.h"
@@ -22,6 +21,7 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_observer.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
+#include "ui/events/gesture_detection/filtered_gesture_provider.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/rect_f.h"
#include "url/gurl.h"
@@ -37,7 +37,7 @@ struct MenuItem;
// TODO(jrg): this is a shell. Upstream the rest.
class ContentViewCoreImpl : public ContentViewCore,
- public ContentGestureProviderClient,
+ public ui::GestureProviderClient,
public NotificationObserver,
public WebContentsObserver {
public:
@@ -316,8 +316,8 @@ class ContentViewCoreImpl : public ContentViewCore,
virtual void RenderViewReady() OVERRIDE;
virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE;
- // ContentGestureProviderClient implementation.
- virtual void OnGestureEvent(const blink::WebGestureEvent& event) OVERRIDE;
+ // ui::GestureProviderClient implementation.
+ virtual void OnGestureEvent(const ui::GestureEventData& gesture) OVERRIDE;
// --------------------------------------------------------------------------
// Other private methods and data
@@ -349,6 +349,8 @@ class ContentViewCoreImpl : public ContentViewCore,
// through the touch pipeline.
void CancelActiveTouchSequenceIfNecessary();
+ float dpi_scale() const { return dpi_scale_; }
+
// A weak reference to the Java ContentViewCore object.
JavaObjectWeakGlobalRef java_ref_;
@@ -377,7 +379,7 @@ class ContentViewCoreImpl : public ContentViewCore,
// Provides gesture synthesis given a stream of touch events (derived from
// Android MotionEvent's) and touch event acks.
- ContentGestureProvider gesture_provider_;
+ ui::FilteredGestureProvider gesture_provider_;
// The cache of device's current orientation set from Java side, this value
// will be sent to Renderer once it is ready.
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698