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

Side by Side Diff: content/public/browser/render_widget_host.h

Issue 2501213002: Drag-and-drop: dragSourceEndedAt, dragSourceSystemDragEnded (Closed)
Patch Set: Rebased. Added check for !GetWebWidget(). Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 const gfx::Point& client_pt, 278 const gfx::Point& client_pt,
279 const gfx::Point& screen_pt, 279 const gfx::Point& screen_pt,
280 blink::WebDragOperationsMask operations_allowed, 280 blink::WebDragOperationsMask operations_allowed,
281 int key_modifiers) {} 281 int key_modifiers) {}
282 virtual void DragTargetDragLeave() {} 282 virtual void DragTargetDragLeave() {}
283 virtual void DragTargetDrop(const DropData& drop_data, 283 virtual void DragTargetDrop(const DropData& drop_data,
284 const gfx::Point& client_pt, 284 const gfx::Point& client_pt,
285 const gfx::Point& screen_pt, 285 const gfx::Point& screen_pt,
286 int key_modifiers) {} 286 int key_modifiers) {}
287 287
288 // Notifies the renderer that a a drag operation that it started has ended,
289 // either in a drop or by being cancelled.
290 virtual void DragSourceEndedAt(
291 int client_x, int client_y, int screen_x, int screen_y,
292 blink::WebDragOperation operation) {};
293
294 // Notifies the renderer that we're done with the drag and drop operation.
295 // This allows the renderer to reset some state.
296 virtual void DragSourceSystemDragEnded() {};
297
288 // Filters drop data before it is passed to RenderWidgetHost. 298 // Filters drop data before it is passed to RenderWidgetHost.
289 virtual void FilterDropData(DropData* drop_data) {} 299 virtual void FilterDropData(DropData* drop_data) {}
290 }; 300 };
291 301
292 } // namespace content 302 } // namespace content
293 303
294 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 304 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698