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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBVIEW_H_ 5 #ifndef WEBKIT_GLUE_WEBVIEW_H_
6 #define WEBKIT_GLUE_WEBVIEW_H_ 6 #define WEBKIT_GLUE_WEBVIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 // Notifies the webview that a drag and drop operation is in progress, with 188 // Notifies the webview that a drag and drop operation is in progress, with
189 // dropable items over the view. 189 // dropable items over the view.
190 virtual void DragSourceMovedTo( 190 virtual void DragSourceMovedTo(
191 const WebKit::WebPoint& client_point, 191 const WebKit::WebPoint& client_point,
192 const WebKit::WebPoint& screen_point) = 0; 192 const WebKit::WebPoint& screen_point) = 0;
193 193
194 // Notfies the webview that the system drag and drop operation has ended. 194 // Notfies the webview that the system drag and drop operation has ended.
195 virtual void DragSourceSystemDragEnded() = 0; 195 virtual void DragSourceSystemDragEnded() = 0;
196 196
197 // Callback methods when a drag and drop operation is trying to drop 197 // Callback methods when a drag and drop operation is trying to drop data
198 // something on the renderer. 198 // on this webview.
199 virtual bool DragTargetDragEnter( 199 virtual bool DragTargetDragEnter(
200 const WebKit::WebDragData& drag_data, int identity, 200 const WebKit::WebDragData& drag_data, int identity,
201 const WebKit::WebPoint& client_point, 201 const WebKit::WebPoint& client_point,
202 const WebKit::WebPoint& screen_point) = 0; 202 const WebKit::WebPoint& screen_point) = 0;
203 virtual bool DragTargetDragOver( 203 virtual bool DragTargetDragOver(
204 const WebKit::WebPoint& client_point, 204 const WebKit::WebPoint& client_point,
205 const WebKit::WebPoint& screen_point) = 0; 205 const WebKit::WebPoint& screen_point) = 0;
206 virtual void DragTargetDragLeave() = 0; 206 virtual void DragTargetDragLeave() = 0;
207 virtual void DragTargetDrop( 207 virtual void DragTargetDrop(
208 const WebKit::WebPoint& client_point, 208 const WebKit::WebPoint& client_point,
209 const WebKit::WebPoint& screen_point) = 0; 209 const WebKit::WebPoint& screen_point) = 0;
210
211 // Helper method for drag and drop target operations: return the drag data
212 // identity.
210 virtual int32 GetDragIdentity() = 0; 213 virtual int32 GetDragIdentity() = 0;
211 214
215 // Helper method for drag and drop target operations: override the default
216 // drop effect with either a "copy" (accept true) or "none" (accept false)
217 // effect. Return true on success.
218 virtual bool SetDropEffect(bool accept) = 0;
219
212 // Notifies the webview that autofill suggestions are available for a node. 220 // Notifies the webview that autofill suggestions are available for a node.
213 virtual void AutofillSuggestionsForNode( 221 virtual void AutofillSuggestionsForNode(
214 int64 node_id, 222 int64 node_id,
215 const std::vector<std::wstring>& suggestions, 223 const std::vector<std::wstring>& suggestions,
216 int default_suggestion_index) = 0; 224 int default_suggestion_index) = 0;
217 225
218 // Hides the autofill popup if any are showing. 226 // Hides the autofill popup if any are showing.
219 virtual void HideAutofillPopup() = 0; 227 virtual void HideAutofillPopup() = 0;
220 228
221 // Returns development tools agent instance belonging to this view. 229 // Returns development tools agent instance belonging to this view.
222 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; 230 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0;
223 231
224 private: 232 private:
225 DISALLOW_COPY_AND_ASSIGN(WebView); 233 DISALLOW_COPY_AND_ASSIGN(WebView);
226 }; 234 };
227 235
228 #endif // WEBKIT_GLUE_WEBVIEW_H_ 236 #endif // WEBKIT_GLUE_WEBVIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698