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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 885803002: <webview> fix drag and drop issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up for review, add comments Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 094178200b6467423d6bc36d19f5bdb47a3cb7f2..874e6ce3730b582d5b940981c3945c3f09e16076 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -198,7 +198,8 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestSizer,
int screen_y, blink::WebDragOperation operation);
// Called when the drag started by this guest ends at an OS-level.
- void EndSystemDrag();
+ void EmbedderSystemDragEnded();
+ void EndSystemDragIfApplicable();
void RespondToPermissionRequest(int request_id,
bool should_allow,
@@ -387,6 +388,12 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestSizer,
// The is the routing ID for a swapped out RenderView for the guest
// WebContents in the embedder's process.
int guest_proxy_routing_id_;
+ // Last seen state of drag status update.
+ blink::WebDragStatus last_drag_status_;
+ // Whether or not our embedder has seen a SystemDragEnded() call.
+ bool seen_embedder_system_drag_ended_;
+ // Whether or not our embedder has seen a DragSourceEndedAt() call.
+ bool seen_embedder_drag_source_ended_at_;
// Guests generate frames and send a CompositorFrameSwapped (CFS) message
// indicating the next frame is ready to be positioned and composited.
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698