Chromium Code Reviews| 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_; |