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

Unified Diff: webkit/glue/webview.h

Issue 67297: Provide an override for Webview drop effect.... Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 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: webkit/glue/webview.h
===================================================================
--- webkit/glue/webview.h (revision 14025)
+++ webkit/glue/webview.h (working copy)
@@ -194,8 +194,8 @@
// Notfies the webview that the system drag and drop operation has ended.
virtual void DragSourceSystemDragEnded() = 0;
- // Callback methods when a drag and drop operation is trying to drop
- // something on the renderer.
+ // Callback methods when a drag and drop operation is trying to drop data
+ // on this webview.
virtual bool DragTargetDragEnter(
const WebKit::WebDragData& drag_data, int identity,
const WebKit::WebPoint& client_point,
@@ -207,8 +207,16 @@
virtual void DragTargetDrop(
const WebKit::WebPoint& client_point,
const WebKit::WebPoint& screen_point) = 0;
+
+ // Helper method for drag and drop target operations: return the drag data
+ // identity.
virtual int32 GetDragIdentity() = 0;
+ // Helper method for drag and drop target operations: override the default
+ // drop effect with either a "copy" (accept true) or "none" (accept false)
+ // effect. Return true on success.
+ virtual bool SetDropEffect(bool accept) = 0;
+
// Notifies the webview that autofill suggestions are available for a node.
virtual void AutofillSuggestionsForNode(
int64 node_id,

Powered by Google App Engine
This is Rietveld 408576698