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

Issue 373423002: Split Dictionary's get and convert into DictionaryHelper. (Closed)

Created:
6 years, 5 months ago by tasak
Modified:
6 years, 5 months ago
CC:
blink-reviews, shans, tzik, eae+blinkwatch, serviceworker-reviews, ericu+idb_chromium.org, apavlov+blink_chromium.org, Steve Block, rune+blink, jsbell+serviceworker_chromium.org, arv+blink, blink-reviews-dom_chromium.org, blink-reviews-css, alecflett, Timothy Loh, abarth-chromium, dstockwell, dglazkov+blink, blink-reviews-events_chromium.org, blink-reviews-bindings_chromium.org, rwlbuis, Eric Willigers, rjwright, mvanouwerkerk+watch_chromium.org, sof, nhiroki, tommyw+watchlist_chromium.org, timvolodine, darktears, jsbell+idb_chromium.org, alecflett+watch_chromium.org, michaeln, blink-reviews-animation_chromium.org, horo+watch_chromium.org, falken, Mike Lawther (Google), ed+blinkwatch_opera.com, kinuko+serviceworker, cmumford, dgrogan, kinuko+fileapi
Project:
blink
Visibility:
Public.

Description

Split Dictionary's get and convert into DictionaryHelper. Dictionary's get and convert depends on both core and modules code. So the get and convert logic is split into DictionaryHelper. DictionaryHelper is a class which has static template methods: get and convert: - the methods are implemented in DictionaryHelperForCore.cpp and DictionaryHelperForModules.cpp. - DictionaryHelperForCore.cpp has get and convert for core code. - DictionaryHelperForModules.cpp has get and convert for modules code. BUG=358074 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177908

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : Fixed LICENSE and windows build #

Total comments: 4

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+949 lines, -817 lines) Patch
M Source/bindings/core/v8/CustomElementConstructorBuilder.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/Dictionary.h View 1 2 3 4 5 chunks +17 lines, -212 lines 0 comments Download
M Source/bindings/core/v8/Dictionary.cpp View 1 2 3 4 chunks +0 lines, -492 lines 0 comments Download
A Source/bindings/core/v8/DictionaryHelperForBindings.h View 1 2 3 4 1 chunk +70 lines, -0 lines 0 comments Download
A Source/bindings/core/v8/DictionaryHelperForCore.cpp View 1 2 3 4 1 chunk +655 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/core/v8/v8.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A Source/bindings/modules/v8/DictionaryHelperForModules.cpp View 1 2 3 4 1 chunk +90 lines, -0 lines 0 comments Download
M Source/bindings/modules/v8/v8.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp View 1 2 3 4 1 chunk +10 lines, -10 lines 0 comments Download
M Source/core/animation/AnimationTest.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/animation/EffectInput.cpp View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download
M Source/core/animation/TimingInput.cpp View 1 2 3 4 1 chunk +9 lines, -9 lines 0 comments Download
M Source/core/css/FontFace.cpp View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/dom/MutationObserver.cpp View 1 2 3 4 1 chunk +7 lines, -7 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/page/EventSource.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/crypto/NormalizeAlgorithm.cpp View 1 2 3 4 6 chunks +6 lines, -6 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/encoding/TextDecoder.cpp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/encoding/TextEncoder.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/filesystem/FileSystemFlags.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/geolocation/PositionOptions.cpp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/indexeddb/IDBDatabase.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/IDBObjectStore.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/mediastream/MediaConstraintsImpl.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/mediastream/RTCIceCandidate.cpp View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/mediastream/RTCPeerConnection.cpp View 1 2 3 4 5 chunks +12 lines, -12 lines 0 comments Download
M Source/modules/mediastream/RTCSessionDescription.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/mediastream/UserMediaRequest.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/notifications/Notification.cpp View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M Source/modules/serviceworkers/Headers.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/serviceworkers/RegistrationOptionList.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/RequestInit.h View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M Source/modules/serviceworkers/ResponseInit.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M Source/modules/webmidi/MIDIOptions.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
tasak
Would you review this CL? The most important part of this patch is DictionaryHelper.h, DictonaryHelperForCore.cpp, ...
6 years, 5 months ago (2014-07-09 07:21:53 UTC) #1
bashi
On 2014/07/09 07:21:53, tasak wrote: > Would you review this CL? > > The most ...
6 years, 5 months ago (2014-07-09 07:58:13 UTC) #2
tasak
bashi-san, Thank you. haraken-san, I'm sorry. I'm now working on fixing compile failure in win_blink. ...
6 years, 5 months ago (2014-07-09 08:07:40 UTC) #3
Nils Barth (inactive)
A couple GYP/Python nits. https://codereview.chromium.org/373423002/diff/50001/Source/bindings/core/v8/v8.gypi File Source/bindings/core/v8/v8.gypi (right): https://codereview.chromium.org/373423002/diff/50001/Source/bindings/core/v8/v8.gypi#newcode34 Source/bindings/core/v8/v8.gypi:34: 'DictionaryHelperForCore.cpp', alpha (longer after shorter) ...
6 years, 5 months ago (2014-07-09 13:20:38 UTC) #4
tasak
Thank you for reviewing. https://codereview.chromium.org/373423002/diff/50001/Source/bindings/core/v8/v8.gypi File Source/bindings/core/v8/v8.gypi (right): https://codereview.chromium.org/373423002/diff/50001/Source/bindings/core/v8/v8.gypi#newcode34 Source/bindings/core/v8/v8.gypi:34: 'DictionaryHelperForCore.cpp', On 2014/07/09 13:20:37, Nils ...
6 years, 5 months ago (2014-07-10 04:52:08 UTC) #5
haraken
Sorry about the review delay. Mostly looks good. It looks like you're basically just splitting ...
6 years, 5 months ago (2014-07-10 15:05:48 UTC) #6
tasak
Thank you for reviewing. > It looks like you're basically just splitting the existing code ...
6 years, 5 months ago (2014-07-11 04:51:23 UTC) #7
haraken
OK, LGTM. The code is insanely dirty, but it's not worse than the current code. ...
6 years, 5 months ago (2014-07-11 05:23:46 UTC) #8
tasak
Thank you for reviewing. On 2014/07/11 05:23:46, haraken wrote: > OK, LGTM. > > The ...
6 years, 5 months ago (2014-07-11 06:32:51 UTC) #9
tasak
The CQ bit was checked by tasak@google.com
6 years, 5 months ago (2014-07-11 06:56:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/373423002/110001
6 years, 5 months ago (2014-07-11 06:57:22 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 07:03:15 UTC) #12
Message was sent while issue was closed.
Change committed as 177908

Powered by Google App Engine
This is Rietveld 408576698