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

Unified Diff: webkit/glue/webview_impl.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
« no previous file with comments | « webkit/glue/webview.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webview_impl.h
===================================================================
--- webkit/glue/webview_impl.h (revision 14025)
+++ webkit/glue/webview_impl.h (working copy)
@@ -115,6 +115,7 @@
const WebKit::WebPoint& client_point,
const WebKit::WebPoint& screen_point);
virtual int32 GetDragIdentity();
+ virtual bool SetDropEffect(bool accept);
virtual void AutofillSuggestionsForNode(
int64 node_id,
const std::vector<std::wstring>& suggestions,
@@ -324,6 +325,16 @@
// copied from the WebDropData object sent from the browser process.
int32 drag_identity_;
+ // Valid when drag_target_dispatch_ is true. Used to override the default
+ // browser drop effect with the effects "copy" or "none".
+ enum DragTargetDropEffect {
+ DROP_EFFECT_DEFAULT = 0, DROP_EFFECT_COPY, DROP_EFFECT_NONE
tony 2009/04/21 18:26:28 Nit: one value per line (that's what we do everywh
+ } drop_effect_;
+
+ // When true, the drag data can be dropped onto the current drop target in
+ // this WebView (the drop target can accept the drop).
+ bool drop_accept_;
+
// The autocomplete popup. Kept around and reused every-time new suggestions
// should be shown.
RefPtr<WebCore::PopupContainer> autocomplete_popup_;
« no previous file with comments | « webkit/glue/webview.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698