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 2bbf2f22185988d2548c2a06a7f08f23bf57ef04..45e500be1854fe84773e79c8865041a9995ba29a 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.h |
+++ b/content/browser/browser_plugin/browser_plugin_guest.h |
@@ -79,9 +79,11 @@ struct MediaStreamRequest; |
// A BrowserPluginGuest can also create a new unattached guest via |
// CreateNewWindow. The newly created guest will live in the same partition, |
// which means it can share storage and can script this guest. |
-class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver, |
- public WebContentsDelegate, |
- public WebContentsObserver { |
+class CONTENT_EXPORT BrowserPluginGuest |
+ : public NotificationObserver, |
+ public WebContentsDelegate, |
+ public WebContentsObserver, |
+ public base::SupportsWeakPtr<BrowserPluginGuest> { |
public: |
typedef base::Callback<void(bool)> GeolocationCallback; |
virtual ~BrowserPluginGuest(); |
@@ -238,6 +240,15 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver, |
// |message|. |
static bool ShouldForwardToBrowserPluginGuest(const IPC::Message& message); |
+ void DragSourceEndedAt(int client_x, int client_y, int screen_x, |
+ int screen_y, WebKit::WebDragOperation operation); |
+ |
+ void DragSourceMovedTo(int client_x, int client_y, |
+ int screen_x, int screen_y); |
+ |
+ // Called when the drag started by this guest ends at an OS-level. |
+ void EndSystemDrag(); |
+ |
private: |
typedef std::pair<MediaStreamRequest, MediaResponseCallback> |
MediaStreamRequestAndCallbackPair; |
@@ -363,6 +374,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver, |
// Message handlers for messages from guest. |
+ void OnDragStopped(); |
void OnHandleInputEventAck( |
WebKit::WebInputEvent::Type event_type, |
InputEventAckState ack_result); |
@@ -376,7 +388,6 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver, |
void OnShowWidget(int route_id, const gfx::Rect& initial_pos); |
// Overriden in tests. |
virtual void OnTakeFocus(bool reverse); |
- void OnUpdateDragCursor(WebKit::WebDragOperation operation); |
void OnUpdateFrameName(int frame_id, |
bool is_top_level, |
const std::string& name); |