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

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

Issue 1728193002: Support dragging texts into Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove dead includes Created 4 years, 6 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 925f5bbb1213d2943b7c34661550730123a59163..6d9dfb97765f80166ff4428aae00b647cf7b8c32 100644
--- a/content/browser/web_contents/web_contents_view_android.h
+++ b/content/browser/web_contents/web_contents_view_android.h
@@ -12,6 +12,7 @@
#include "content/browser/web_contents/web_contents_view.h"
#include "content/public/browser/web_contents_view_delegate.h"
#include "content/public/common/context_menu_params.h"
+#include "content/public/common/drop_data.h"
#include "ui/gfx/geometry/rect_f.h"
namespace content {
@@ -76,6 +77,12 @@ class WebContentsViewAndroid : public WebContentsView,
void GotFocus() override;
void TakeFocus(bool reverse) override;
+ void OnDragEntered(const std::vector<DropData::Metadata>& metadata,
+ std::vector<int> locations);
dcheng 2016/06/24 23:07:53 Let's just pass gfx::Points here. It's a bit more
hush (inactive) 2016/06/27 19:01:54 Done.
+ void OnDragUpdated(std::vector<int> locations);
+ void OnDragExited();
+ void OnPerformDrop(DropData& drop_data, std::vector<int> locations);
dcheng 2016/06/24 23:07:53 Chromium/C++ style doesn't permit mutable referenc
hush (inactive) 2016/06/27 19:01:54 use DropData* instead
+
private:
// The WebContents whose contents we display.
WebContentsImpl* web_contents_;

Powered by Google App Engine
This is Rietveld 408576698