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

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

Issue 2896993002: Route OnDragEvent through ViewAndroid tree (Closed)
Patch Set: +ui/base Created 3 years, 7 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 e371e371b8a063bf81a80e7aca34397b7e60a0e5..bc6961a1ac85f3a6e20da9a00d51b351b384e0d2 100644
--- a/content/browser/web_contents/web_contents_view_android.h
+++ b/content/browser/web_contents/web_contents_view_android.h
@@ -96,6 +96,13 @@ class WebContentsViewAndroid : public WebContentsView,
void GotFocus() override;
void TakeFocus(bool reverse) override;
+ // ui::ViewClient implementation.
+ bool OnTouchEvent(const ui::MotionEventAndroid& event,
+ bool for_touch_handle) override;
+ bool OnDragEvent(const ui::DragEventAndroid& event) override;
+ void OnPhysicalBackingSizeChanged() override;
+
+ private:
void OnDragEntered(const std::vector<DropData::Metadata>& metadata,
const gfx::Point& location,
const gfx::Point& screen_location);
@@ -107,12 +114,6 @@ 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;
- void OnPhysicalBackingSizeChanged() override;
-
- private:
// The WebContents whose contents we display.
WebContentsImpl* web_contents_;
« no previous file with comments | « content/browser/android/content_view_core_impl.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