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

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: Cleanup 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
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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 const std::vector<DropData::Metadata>& metadata, 271 const std::vector<DropData::Metadata>& metadata,
272 const gfx::Point& client_pt, 272 const gfx::Point& client_pt,
273 const gfx::Point& screen_pt, 273 const gfx::Point& screen_pt,
274 blink::WebDragOperationsMask operations_allowed, 274 blink::WebDragOperationsMask operations_allowed,
275 int key_modifiers) {}; 275 int key_modifiers) {};
276 virtual void DragTargetDragOver( 276 virtual void DragTargetDragOver(
277 const gfx::Point& client_pt, 277 const gfx::Point& client_pt,
278 const gfx::Point& screen_pt, 278 const gfx::Point& screen_pt,
279 blink::WebDragOperationsMask operations_allowed, 279 blink::WebDragOperationsMask operations_allowed,
280 int key_modifiers) {} 280 int key_modifiers) {}
281 virtual void DragTargetDragLeave() {} 281 virtual void DragTargetDragLeave(const gfx::Point& client_point,
282 const gfx::Point& screen_point) {}
282 virtual void DragTargetDrop(const DropData& drop_data, 283 virtual void DragTargetDrop(const DropData& drop_data,
283 const gfx::Point& client_pt, 284 const gfx::Point& client_pt,
284 const gfx::Point& screen_pt, 285 const gfx::Point& screen_pt,
285 int key_modifiers) {} 286 int key_modifiers) {}
286 287
287 // Notifies the renderer that a drag operation that it started has ended, 288 // Notifies the renderer that a drag operation that it started has ended,
288 // either in a drop or by being cancelled. 289 // either in a drop or by being cancelled.
289 virtual void DragSourceEndedAt(const gfx::Point& client_pt, 290 virtual void DragSourceEndedAt(const gfx::Point& client_pt,
290 const gfx::Point& screen_pt, 291 const gfx::Point& screen_pt,
291 blink::WebDragOperation operation) {}; 292 blink::WebDragOperation operation) {};
292 293
293 // Notifies the renderer that we're done with the drag and drop operation. 294 // Notifies the renderer that we're done with the drag and drop operation.
294 // This allows the renderer to reset some state. 295 // This allows the renderer to reset some state.
295 virtual void DragSourceSystemDragEnded() {}; 296 virtual void DragSourceSystemDragEnded() {};
296 297
297 // Filters drop data before it is passed to RenderWidgetHost. 298 // Filters drop data before it is passed to RenderWidgetHost.
298 virtual void FilterDropData(DropData* drop_data) {} 299 virtual void FilterDropData(DropData* drop_data) {}
299 }; 300 };
300 301
301 } // namespace content 302 } // namespace content
302 303
303 #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