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

Unified Diff: content/renderer/render_widget.h

Issue 2475443003: Drag-and-drop: Move startDrag out of WebView/RenderView. (Closed)
Patch Set: Removed unneeded declarations. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 87866408934b1d6e9a731f74ebec8a9637f40a4c..8962e31a6e59fafd25b5dd47fba47a67540be4c0 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -22,6 +22,7 @@
#include "build/build_config.h"
#include "content/common/content_export.h"
#include "content/common/cursors/webcursor.h"
+#include "content/common/drag_event_source_info.h"
#include "content/common/edit_command.h"
#include "content/common/input/synthetic_gesture_params.h"
#include "content/public/common/screen_info.h"
@@ -37,6 +38,7 @@
#include "third_party/WebKit/public/platform/WebDisplayMode.h"
#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "third_party/WebKit/public/platform/WebRect.h"
+#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
#include "third_party/WebKit/public/platform/WebTextInputInfo.h"
#include "third_party/WebKit/public/web/WebCompositionUnderline.h"
#include "third_party/WebKit/public/web/WebPopupType.h"
@@ -65,8 +67,10 @@ namespace scheduler {
class RenderWidgetSchedulingState;
}
struct WebDeviceEmulationParams;
+class WebDragData;
class WebFrameWidget;
class WebGestureEvent;
+class WebImage;
class WebLocalFrame;
class WebMouseEvent;
class WebNode;
@@ -287,6 +291,11 @@ class CONTENT_EXPORT RenderWidget
bool requestPointerLock() override;
void requestPointerUnlock() override;
bool isPointerLocked() override;
+ void startDragging(blink::WebReferrerPolicy policy,
+ const blink::WebDragData& data,
+ blink::WebDragOperationsMask mask,
+ const blink::WebImage& image,
+ const blink::WebPoint& imageOffset) override;
// Override point to obtain that the current input method state and caret
// position.
@@ -814,6 +823,11 @@ class CONTENT_EXPORT RenderWidget
// Will be cleared as soon as the next key event is processed.
EditCommands edit_commands_;
+ // This field stores drag/drop related info for the event that is currently
+ // being handled. If the current event results in starting a drag/drop
+ // session, this info is sent to the browser along with other drag/drop info.
+ DragEventSourceInfo possible_drag_event_info_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidget);
};
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698