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

Issue 925913002: Fixed WebDragData's wrong dependency. (Closed)

Created:
5 years, 10 months ago by tasak
Modified:
5 years, 9 months ago
Reviewers:
haraken, tkent, dcheng
CC:
dcheng, blink-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fixed WebDragData's wrong dependency. WebDragData is placed in public/platform, but its code is placed in Source/web. WebDragData should be placed in Source/platform/exported and should not depend on core. - since WebDragData depends on core and modules, modify DraggedIsolatedFileSystem, i.e. DraggedIsolatedFileSystemImpl in modules and DraggedIsolatedFileSystem in core. InitModules initializes core for DraggedIsolatedFileSystemImpl in modules. - WebDragData depends on "initialized" or not (content uses). Added m_valid to see whether "initialized" or not. BUG=358074 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191174

Patch Set 1 #

Patch Set 2 : Added FIXME #

Total comments: 2

Patch Set 3 : #

Total comments: 18

Patch Set 4 : #

Total comments: 7

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -401 lines) Patch
M Source/core/clipboard/DataObject.h View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/clipboard/DataObject.cpp View 1 2 3 4 5 2 chunks +93 lines, -0 lines 0 comments Download
A Source/core/clipboard/DraggedIsolatedFileSystem.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A Source/core/clipboard/DraggedIsolatedFileSystem.cpp View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M Source/core/clipboard/Pasteboard.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/InitModules.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/modules/filesystem/DataTransferItemFileSystem.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
D Source/modules/filesystem/DraggedIsolatedFileSystem.h View 1 2 3 1 chunk +0 lines, -67 lines 0 comments Download
D Source/modules/filesystem/DraggedIsolatedFileSystem.cpp View 1 2 3 1 chunk +0 lines, -79 lines 0 comments Download
A + Source/modules/filesystem/DraggedIsolatedFileSystemImpl.h View 1 2 3 2 chunks +13 lines, -10 lines 0 comments Download
A + Source/modules/filesystem/DraggedIsolatedFileSystemImpl.cpp View 1 2 3 3 chunks +16 lines, -10 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + Source/platform/exported/WebDragData.cpp View 1 2 3 1 chunk +11 lines, -16 lines 0 comments Download
M Source/web/DragClientImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebDragData.cpp View 1 2 1 chunk +0 lines, -182 lines 0 comments Download
M Source/web/WebDragDataTest.cpp View 1 2 3 chunks +8 lines, -7 lines 0 comments Download
M Source/web/WebPluginContainerImpl.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/web/web.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M public/platform/WebDragData.h View 1 2 3 4 5 2 chunks +48 lines, -21 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
tasak
PTAL?
5 years, 10 months ago (2015-02-16 10:24:51 UTC) #2
tasak
On 2015/02/16 10:24:51, tasak wrote: > PTAL? We need to fix 11 Web files: diff ...
5 years, 10 months ago (2015-02-16 11:08:54 UTC) #3
haraken
On 2015/02/16 11:08:54, tasak wrote: > On 2015/02/16 10:24:51, tasak wrote: > > PTAL? > ...
5 years, 10 months ago (2015-02-16 12:15:44 UTC) #4
haraken
Discussed offline. The inlining hack is nasty and we need a better integration between content, ...
5 years, 10 months ago (2015-02-17 12:35:28 UTC) #5
tasak
tkent, would you review this CL?
5 years, 10 months ago (2015-02-18 01:53:33 UTC) #7
tkent
https://codereview.chromium.org/925913002/diff/20001/public/platform/WebDragData.h File public/platform/WebDragData.h (right): https://codereview.chromium.org/925913002/diff/20001/public/platform/WebDragData.h#newcode117 public/platform/WebDragData.h:117: // FIXME: to avoid "core depends on web", use ...
5 years, 10 months ago (2015-02-18 02:17:57 UTC) #8
tkent
Repository merge improves nothing about this issue.
5 years, 10 months ago (2015-02-18 02:20:22 UTC) #9
tasak
Thank you for review. I moved WebDragData from Source/web to Source/platform/exported: - since WebDragData depends ...
5 years, 10 months ago (2015-02-23 09:20:33 UTC) #13
dcheng
https://codereview.chromium.org/925913002/diff/80001/Source/platform/exported/WebDragData.cpp File Source/platform/exported/WebDragData.cpp (right): https://codereview.chromium.org/925913002/diff/80001/Source/platform/exported/WebDragData.cpp#newcode39 Source/platform/exported/WebDragData.cpp:39: m_itemList = itemList; Using swap() would be nice here, ...
5 years, 10 months ago (2015-02-23 16:19:52 UTC) #15
tkent
https://codereview.chromium.org/925913002/diff/80001/Source/core/clipboard/DataObject.h File Source/core/clipboard/DataObject.h (right): https://codereview.chromium.org/925913002/diff/80001/Source/core/clipboard/DataObject.h#newcode101 Source/core/clipboard/DataObject.h:101: static PassRefPtrWillBeRawPtr<DataObject> createFromWebDragData(WebDragData); We can call this |create|. https://codereview.chromium.org/925913002/diff/80001/Source/core/clipboard/DraggedIsolatedFileSystem.cpp ...
5 years, 10 months ago (2015-02-23 23:40:41 UTC) #16
tasak
Thank you for review. https://codereview.chromium.org/925913002/diff/80001/Source/core/clipboard/DataObject.h File Source/core/clipboard/DataObject.h (right): https://codereview.chromium.org/925913002/diff/80001/Source/core/clipboard/DataObject.h#newcode101 Source/core/clipboard/DataObject.h:101: static PassRefPtrWillBeRawPtr<DataObject> createFromWebDragData(WebDragData); On 2015/02/23 ...
5 years, 10 months ago (2015-02-25 08:15:25 UTC) #17
tkent
lgtm https://codereview.chromium.org/925913002/diff/100001/Source/core/clipboard/DraggedIsolatedFileSystem.h File Source/core/clipboard/DraggedIsolatedFileSystem.h (right): https://codereview.chromium.org/925913002/diff/100001/Source/core/clipboard/DraggedIsolatedFileSystem.h#newcode21 Source/core/clipboard/DraggedIsolatedFileSystem.h:21: using fileSystemIdPreparationCallback = void(*)(DataObject*, const String&); fileSystem -> ...
5 years, 10 months ago (2015-02-25 08:27:17 UTC) #18
dcheng
https://codereview.chromium.org/925913002/diff/100001/Source/platform/exported/WebDragData.cpp File Source/platform/exported/WebDragData.cpp (right): https://codereview.chromium.org/925913002/diff/100001/Source/platform/exported/WebDragData.cpp#newcode36 Source/platform/exported/WebDragData.cpp:36: void WebDragData::setItems(WebVector<Item> itemList) You don't save a copy by ...
5 years, 9 months ago (2015-02-25 15:37:00 UTC) #19
tasak
Thank you for review. https://codereview.chromium.org/925913002/diff/100001/Source/core/clipboard/DraggedIsolatedFileSystem.h File Source/core/clipboard/DraggedIsolatedFileSystem.h (right): https://codereview.chromium.org/925913002/diff/100001/Source/core/clipboard/DraggedIsolatedFileSystem.h#newcode21 Source/core/clipboard/DraggedIsolatedFileSystem.h:21: using fileSystemIdPreparationCallback = void(*)(DataObject*, const ...
5 years, 9 months ago (2015-02-26 11:27:48 UTC) #20
dcheng
lgtm https://codereview.chromium.org/925913002/diff/100001/Source/platform/exported/WebDragData.cpp File Source/platform/exported/WebDragData.cpp (right): https://codereview.chromium.org/925913002/diff/100001/Source/platform/exported/WebDragData.cpp#newcode36 Source/platform/exported/WebDragData.cpp:36: void WebDragData::setItems(WebVector<Item> itemList) On 2015/02/26 11:27:48, tasak wrote: ...
5 years, 9 months ago (2015-02-27 16:53:03 UTC) #21
tasak
Thank you for review.
5 years, 9 months ago (2015-03-03 05:43:10 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/925913002/140001
5 years, 9 months ago (2015-03-03 05:43:23 UTC) #25
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 07:07:13 UTC) #26
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191174

Powered by Google App Engine
This is Rietveld 408576698