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

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

Issue 2655463015: Correctly set dragLeave and dragEnd coords for OOPIF drag and drop (Closed)
Patch Set: Added checks for null RWH on drag end Created 3 years, 10 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
« no previous file with comments | « content/common/drag_messages.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 const std::vector<DropData::Metadata>& metadata, 269 const std::vector<DropData::Metadata>& metadata,
270 const gfx::Point& client_pt, 270 const gfx::Point& client_pt,
271 const gfx::Point& screen_pt, 271 const gfx::Point& screen_pt,
272 blink::WebDragOperationsMask operations_allowed, 272 blink::WebDragOperationsMask operations_allowed,
273 int key_modifiers) {}; 273 int key_modifiers) {};
274 virtual void DragTargetDragOver( 274 virtual void DragTargetDragOver(
275 const gfx::Point& client_pt, 275 const gfx::Point& client_pt,
276 const gfx::Point& screen_pt, 276 const gfx::Point& screen_pt,
277 blink::WebDragOperationsMask operations_allowed, 277 blink::WebDragOperationsMask operations_allowed,
278 int key_modifiers) {} 278 int key_modifiers) {}
279 virtual void DragTargetDragLeave() {} 279 virtual void DragTargetDragLeave(const gfx::Point& client_point,
280 const gfx::Point& screen_point) {}
280 virtual void DragTargetDrop(const DropData& drop_data, 281 virtual void DragTargetDrop(const DropData& drop_data,
281 const gfx::Point& client_pt, 282 const gfx::Point& client_pt,
282 const gfx::Point& screen_pt, 283 const gfx::Point& screen_pt,
283 int key_modifiers) {} 284 int key_modifiers) {}
284 285
285 // Notifies the renderer that a drag operation that it started has ended, 286 // Notifies the renderer that a drag operation that it started has ended,
286 // either in a drop or by being cancelled. 287 // either in a drop or by being cancelled.
287 virtual void DragSourceEndedAt(const gfx::Point& client_pt, 288 virtual void DragSourceEndedAt(const gfx::Point& client_pt,
288 const gfx::Point& screen_pt, 289 const gfx::Point& screen_pt,
289 blink::WebDragOperation operation) {}; 290 blink::WebDragOperation operation) {};
290 291
291 // Notifies the renderer that we're done with the drag and drop operation. 292 // Notifies the renderer that we're done with the drag and drop operation.
292 // This allows the renderer to reset some state. 293 // This allows the renderer to reset some state.
293 virtual void DragSourceSystemDragEnded() {}; 294 virtual void DragSourceSystemDragEnded() {};
294 295
295 // Filters drop data before it is passed to RenderWidgetHost. 296 // Filters drop data before it is passed to RenderWidgetHost.
296 virtual void FilterDropData(DropData* drop_data) {} 297 virtual void FilterDropData(DropData* drop_data) {}
297 }; 298 };
298 299
299 } // namespace content 300 } // namespace content
300 301
301 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 302 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/common/drag_messages.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698