| Index: content/renderer/render_widget.h
|
| diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
|
| index 5bde3b184419e453b372dd7994374c0d46c9717c..c36cd199c8b811df70055031429fcc83f46f688a 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"
|
| @@ -65,8 +66,10 @@ namespace scheduler {
|
| class RenderWidgetSchedulingState;
|
| }
|
| struct WebDeviceEmulationParams;
|
| +class WebDragData;
|
| class WebFrameWidget;
|
| class WebGestureEvent;
|
| +class WebImage;
|
| class WebLocalFrame;
|
| class WebMouseEvent;
|
| class WebNode;
|
| @@ -287,6 +290,11 @@ class CONTENT_EXPORT RenderWidget
|
| bool requestPointerLock() override;
|
| void requestPointerUnlock() override;
|
| bool isPointerLocked() override;
|
| + void startDragging(blink::WebLocalFrame* frame,
|
| + 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.
|
| @@ -392,6 +400,12 @@ class CONTENT_EXPORT RenderWidget
|
| focused_pepper_plugin_ = plugin;
|
| }
|
|
|
| + void set_possible_drag_event_info(ui::DragDropTypes::DragEventSource source,
|
| + gfx::Point location) {
|
| + possible_drag_event_info_.event_source = source;
|
| + possible_drag_event_info_.event_location = location;
|
| + }
|
| +
|
| // When emulated, this returns original device scale factor.
|
| float GetOriginalDeviceScaleFactor() const;
|
|
|
| @@ -821,6 +835,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);
|
| };
|
|
|
|
|