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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <deque> 11 #include <deque>
12 #include <map> 12 #include <map>
13 #include <memory> 13 #include <memory>
14 #include <queue> 14 #include <queue>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "base/observer_list.h" 20 #include "base/observer_list.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
24 #include "content/common/cursors/webcursor.h" 24 #include "content/common/cursors/webcursor.h"
25 #include "content/common/drag_event_source_info.h"
25 #include "content/common/edit_command.h" 26 #include "content/common/edit_command.h"
26 #include "content/common/input/synthetic_gesture_params.h" 27 #include "content/common/input/synthetic_gesture_params.h"
27 #include "content/public/common/screen_info.h" 28 #include "content/public/common/screen_info.h"
28 #include "content/renderer/devtools/render_widget_screen_metrics_emulator_delega te.h" 29 #include "content/renderer/devtools/render_widget_screen_metrics_emulator_delega te.h"
29 #include "content/renderer/gpu/render_widget_compositor_delegate.h" 30 #include "content/renderer/gpu/render_widget_compositor_delegate.h"
30 #include "content/renderer/input/render_widget_input_handler.h" 31 #include "content/renderer/input/render_widget_input_handler.h"
31 #include "content/renderer/input/render_widget_input_handler_delegate.h" 32 #include "content/renderer/input/render_widget_input_handler_delegate.h"
32 #include "content/renderer/message_delivery_policy.h" 33 #include "content/renderer/message_delivery_policy.h"
33 #include "content/renderer/mouse_lock_dispatcher.h" 34 #include "content/renderer/mouse_lock_dispatcher.h"
34 #include "content/renderer/render_widget_mouse_lock_dispatcher.h" 35 #include "content/renderer/render_widget_mouse_lock_dispatcher.h"
35 #include "ipc/ipc_listener.h" 36 #include "ipc/ipc_listener.h"
36 #include "ipc/ipc_sender.h" 37 #include "ipc/ipc_sender.h"
37 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 38 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
38 #include "third_party/WebKit/public/platform/WebInputEvent.h" 39 #include "third_party/WebKit/public/platform/WebInputEvent.h"
39 #include "third_party/WebKit/public/platform/WebRect.h" 40 #include "third_party/WebKit/public/platform/WebRect.h"
41 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
40 #include "third_party/WebKit/public/platform/WebTextInputInfo.h" 42 #include "third_party/WebKit/public/platform/WebTextInputInfo.h"
41 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 43 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
42 #include "third_party/WebKit/public/web/WebPopupType.h" 44 #include "third_party/WebKit/public/web/WebPopupType.h"
43 #include "third_party/WebKit/public/web/WebTextDirection.h" 45 #include "third_party/WebKit/public/web/WebTextDirection.h"
44 #include "third_party/WebKit/public/web/WebTouchAction.h" 46 #include "third_party/WebKit/public/web/WebTouchAction.h"
45 #include "third_party/WebKit/public/web/WebWidget.h" 47 #include "third_party/WebKit/public/web/WebWidget.h"
46 #include "third_party/WebKit/public/web/WebWidgetClient.h" 48 #include "third_party/WebKit/public/web/WebWidgetClient.h"
47 #include "ui/base/ime/text_input_mode.h" 49 #include "ui/base/ime/text_input_mode.h"
48 #include "ui/base/ime/text_input_type.h" 50 #include "ui/base/ime/text_input_type.h"
49 #include "ui/base/ui_base_types.h" 51 #include "ui/base/ui_base_types.h"
50 #include "ui/gfx/geometry/rect.h" 52 #include "ui/gfx/geometry/rect.h"
51 #include "ui/gfx/geometry/vector2d_f.h" 53 #include "ui/gfx/geometry/vector2d_f.h"
52 #include "ui/gfx/native_widget_types.h" 54 #include "ui/gfx/native_widget_types.h"
53 #include "ui/gfx/range/range.h" 55 #include "ui/gfx/range/range.h"
54 #include "ui/surface/transport_dib.h" 56 #include "ui/surface/transport_dib.h"
55 57
56 class GURL; 58 class GURL;
57 59
58 namespace IPC { 60 namespace IPC {
59 class SyncMessage; 61 class SyncMessage;
60 class SyncMessageFilter; 62 class SyncMessageFilter;
61 } 63 }
62 64
63 namespace blink { 65 namespace blink {
64 namespace scheduler { 66 namespace scheduler {
65 class RenderWidgetSchedulingState; 67 class RenderWidgetSchedulingState;
66 } 68 }
67 struct WebDeviceEmulationParams; 69 struct WebDeviceEmulationParams;
70 class WebDragData;
68 class WebFrameWidget; 71 class WebFrameWidget;
69 class WebGestureEvent; 72 class WebGestureEvent;
73 class WebImage;
70 class WebLocalFrame; 74 class WebLocalFrame;
71 class WebMouseEvent; 75 class WebMouseEvent;
72 class WebNode; 76 class WebNode;
73 struct WebPoint; 77 struct WebPoint;
74 } 78 }
75 79
76 namespace cc { 80 namespace cc {
77 class CompositorFrameSink; 81 class CompositorFrameSink;
78 class FrameSinkId; 82 class FrameSinkId;
79 class SwapPromise; 83 class SwapPromise;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 void didOverscroll(const blink::WebFloatSize& overscrollDelta, 284 void didOverscroll(const blink::WebFloatSize& overscrollDelta,
281 const blink::WebFloatSize& accumulatedOverscroll, 285 const blink::WebFloatSize& accumulatedOverscroll,
282 const blink::WebFloatPoint& position, 286 const blink::WebFloatPoint& position,
283 const blink::WebFloatSize& velocity) override; 287 const blink::WebFloatSize& velocity) override;
284 void showImeIfNeeded() override; 288 void showImeIfNeeded() override;
285 void convertViewportToWindow(blink::WebRect* rect) override; 289 void convertViewportToWindow(blink::WebRect* rect) override;
286 void convertWindowToViewport(blink::WebFloatRect* rect) override; 290 void convertWindowToViewport(blink::WebFloatRect* rect) override;
287 bool requestPointerLock() override; 291 bool requestPointerLock() override;
288 void requestPointerUnlock() override; 292 void requestPointerUnlock() override;
289 bool isPointerLocked() override; 293 bool isPointerLocked() override;
294 void startDragging(blink::WebReferrerPolicy policy,
295 const blink::WebDragData& data,
296 blink::WebDragOperationsMask mask,
297 const blink::WebImage& image,
298 const blink::WebPoint& imageOffset) override;
290 299
291 // Override point to obtain that the current input method state and caret 300 // Override point to obtain that the current input method state and caret
292 // position. 301 // position.
293 virtual ui::TextInputType GetTextInputType(); 302 virtual ui::TextInputType GetTextInputType();
294 303
295 #if defined(OS_ANDROID) 304 #if defined(OS_ANDROID)
296 // Notifies that a tap was not consumed, so showing a UI for the unhandled 305 // Notifies that a tap was not consumed, so showing a UI for the unhandled
297 // tap may be needed. 306 // tap may be needed.
298 // Performs various checks on the given WebNode to apply heuristics to 307 // Performs various checks on the given WebNode to apply heuristics to
299 // determine if triggering is appropriate. 308 // determine if triggering is appropriate.
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 #endif 816 #endif
808 817
809 // This reference is set by the RenderFrame and is used to query the IME- 818 // This reference is set by the RenderFrame and is used to query the IME-
810 // related state from the plugin to later send to the browser. 819 // related state from the plugin to later send to the browser.
811 PepperPluginInstanceImpl* focused_pepper_plugin_; 820 PepperPluginInstanceImpl* focused_pepper_plugin_;
812 821
813 // Stores edit commands associated to the next key event. 822 // Stores edit commands associated to the next key event.
814 // Will be cleared as soon as the next key event is processed. 823 // Will be cleared as soon as the next key event is processed.
815 EditCommands edit_commands_; 824 EditCommands edit_commands_;
816 825
826 // This field stores drag/drop related info for the event that is currently
827 // being handled. If the current event results in starting a drag/drop
828 // session, this info is sent to the browser along with other drag/drop info.
829 DragEventSourceInfo possible_drag_event_info_;
830
817 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 831 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
818 }; 832 };
819 833
820 } // namespace content 834 } // namespace content
821 835
822 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 836 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« 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