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

Issue 174364: Plumb the DragOperation through all the layers between the platform DnD code ... (Closed)

Created:
11 years, 4 months ago by Jens Alfke
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, Erik does not do reviews, jam, darin (slow to review), brettw, Ben Goodger (Google)
Visibility:
Public.

Description

Plumb the DragOperation through all the layers between the platform Drag-n-drop code and WebCore. This allows the HTML5 DataTransfer effectAllowed and dropEffect properties to be set correctly in JS handlers, as per the HTML5 spec. (The drag-dropeffect test isn't in WebKit yet -- it's part of a separate WebKit patch that's been in review for weeks.) R=darin,pink BUG=http://code.google.com/p/chromium/issues/detail?id=14654, http://code.google.com/p/chromium/issues/detail?id=20985 TEST=LayoutTests/fast/events/drag-dropeffect.html, LayoutTests/editing/pasteboard/files-during-page-drags.html Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25629

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 3

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 86

Patch Set 16 : '' #

Patch Set 17 : '' #

Total comments: 12

Patch Set 18 : '' #

Total comments: 2

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -223 lines) Patch
M chrome/browser/cocoa/web_drag_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/web_drag_source.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +12 lines, -9 lines 0 comments Download
M chrome/browser/cocoa/web_drop_target.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/web_drop_target.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +15 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/gtk/tab_contents_drag_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/gtk/tab_contents_drag_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +19 lines, -20 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/interstitial_page.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +20 lines, -8 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +34 lines, -14 lines 0 comments Download
M chrome/browser/tab_contents/web_drag_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/web_drop_target.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/views/tab_contents/tab_contents_view_gtk.cc View 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/views/tab_contents/tab_contents_view_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/views/tab_contents/tab_contents_view_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +11 lines, -8 lines 0 comments Download
M chrome/common/webkit_param_traits.h View 18 19 20 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +14 lines, -7 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +24 lines, -15 lines 0 comments Download
A webkit/api/public/WebDragOperation.h View 13 14 15 1 chunk +59 lines, -0 lines 0 comments Download
A webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/events/drag-in-frames-expected.txt View 1 chunk +18 lines, -0 lines 0 comments Download
A webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/events/drag-in-frames-expected.txt View 1 chunk +18 lines, -0 lines 0 comments Download
MM webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/events/drag-in-frames-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/dragclient_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +9 lines, -1 line 0 comments Download
M webkit/glue/webview.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +10 lines, -11 lines 0 comments Download
M webkit/glue/webview_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -1 line 0 comments Download
M webkit/glue/webview_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +18 lines, -12 lines 0 comments Download
M webkit/glue/webview_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 11 chunks +61 lines, -35 lines 0 comments Download
M webkit/tools/layout_tests/test_expectations.txt View 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/tools/test_shell/drag_delegate.cc View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -1 line 0 comments Download
M webkit/tools/test_shell/drop_delegate.cc View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +14 lines, -6 lines 0 comments Download
M webkit/tools/test_shell/event_sending_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +5 lines, -1 line 0 comments Download
M webkit/tools/test_shell/event_sending_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +26 lines, -8 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -1 line 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Jens Alfke
11 years, 3 months ago (2009-08-28 18:34:04 UTC) #1
darin (slow to review)
more feedback in a bit... http://codereview.chromium.org/174364/diff/511/1332 File webkit/glue/drag_operations.h (right): http://codereview.chromium.org/174364/diff/511/1332#newcode8 Line 8: namespace WebKit { ...
11 years, 3 months ago (2009-08-28 18:35:34 UTC) #2
Jens Alfke
OK, moved drag_operations.h to WebDragOperation.h, changed style and renamed types and constants to match other ...
11 years, 3 months ago (2009-08-28 20:38:13 UTC) #3
darin (slow to review)
http://codereview.chromium.org/174364/diff/6086/6107 File chrome/browser/cocoa/web_drag_source.h (right): http://codereview.chromium.org/174364/diff/6086/6107#newcode27 Line 27: NSDragOperation dragOperationMask_; please find someone who is more ...
11 years, 3 months ago (2009-09-01 18:11:41 UTC) #4
Jens Alfke
Whew! I think I've addressed everything. http://codereview.chromium.org/174364/diff/6086/6096 File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/174364/diff/6086/6096#newcode279 Line 279: WebKit::WebDragOperationsMask operation_mask) ...
11 years, 3 months ago (2009-09-01 23:07:25 UTC) #5
darin (slow to review)
http://codereview.chromium.org/174364/diff/6086/6122 File webkit/api/public/WebDragOperation.h (right): http://codereview.chromium.org/174364/diff/6086/6122#newcode39 Line 39: // destination. On 2009/09/01 23:07:28, Jens Alfke wrote: ...
11 years, 3 months ago (2009-09-01 23:12:45 UTC) #6
darin (slow to review)
Just a few more issues... http://codereview.chromium.org/174364/diff/7018/3039 File chrome/browser/cocoa/web_drop_target.mm (right): http://codereview.chromium.org/174364/diff/7018/3039#newcode92 Line 92: static_cast<WebKit::WebDragOperationsMask>(mask)); oh, wow... ...
11 years, 3 months ago (2009-09-01 23:22:54 UTC) #7
Jens Alfke
Darin: I've addressed your remaining issues, I think. Mike: Could you look at the three ...
11 years, 3 months ago (2009-09-01 23:52:41 UTC) #8
pink (ping after 24hrs)
Mac stuff LGTM (w/ one nit) as long as we're sure the WebKit constants will ...
11 years, 3 months ago (2009-09-02 14:34:43 UTC) #9
Jens Alfke
http://codereview.chromium.org/174364/diff/7019/3072 File chrome/browser/tab_contents/tab_contents_view_mac.mm (right): http://codereview.chromium.org/174364/diff/7019/3072#newcode350 Line 350: return [dragSource_ draggingSourceOperationMaskForLocal: isLocal]; On 2009/09/02 14:34:43, pink ...
11 years, 3 months ago (2009-09-02 16:04:38 UTC) #10
darin (slow to review)
http://codereview.chromium.org/174364/diff/7018/3039 File chrome/browser/cocoa/web_drop_target.mm (right): http://codereview.chromium.org/174364/diff/7018/3039#newcode92 Line 92: static_cast<WebKit::WebDragOperationsMask>(mask)); On 2009/09/01 23:52:41, Jens Alfke wrote: > ...
11 years, 3 months ago (2009-09-02 16:15:36 UTC) #11
Jens Alfke
http://codereview.chromium.org/174364/diff/7018/3039 File chrome/browser/cocoa/web_drop_target.mm (right): http://codereview.chromium.org/174364/diff/7018/3039#newcode92 Line 92: static_cast<WebKit::WebDragOperationsMask>(mask)); On 2009/09/02 16:15:36, darin wrote: > On ...
11 years, 3 months ago (2009-09-02 16:30:53 UTC) #12
darin (slow to review)
11 years, 3 months ago (2009-09-02 16:32:57 UTC) #13
LGTM

Powered by Google App Engine
This is Rietveld 408576698