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

Issue 911433003: IDL: Auto-declare remaining methods implied by maplike<>/setlike<> (Closed)

Created:
5 years, 10 months ago by Jens Widell
Modified:
5 years, 10 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@idl-iterable-continued
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

IDL: Auto-declare remaining methods implied by maplike<>/setlike<> For maplike<K, V>, declare these: boolean has(K key); any get(K key); // read-write only: void clear(); boolean delete(K key); X set(K key, V value); // returns self For setlike<V>, declare these: boolean has(V value); // read-write only: X add(V value); // returns self void clear(); boolean delete(V value); In interface declarations that contains explicit declarations of methods with these names already, those existing declarations override the auto- declared ones. This is the case for all existing uses of maplike<> and setlike<> in Blink, so this CL does not add any new methods in practice. To avoid naming conflicts in a uniform way, also add the suffix "ForBinding" to all auto-declared methods' names on the C++ side, via the [ImplementedAs=...] extended attribute. BUG=432683 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189880

Patch Set 1 #

Total comments: 6

Patch Set 2 : delete => deleteForBinding #

Patch Set 3 : common suffix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+488 lines, -30 lines) Patch
M Source/bindings/scripts/v8_interface.py View 1 2 6 chunks +57 lines, -7 lines 0 comments Download
M Source/bindings/tests/idls/core/TestInterfaceGarbageCollected.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface2.cpp View 1 2 6 chunks +35 lines, -5 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface3.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp View 1 2 4 chunks +234 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 6 chunks +147 lines, -5 lines 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterface5.cpp View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/dom/Iterable.h View 1 2 6 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
Jens Widell
PTAL https://codereview.chromium.org/911433003/diff/1/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp File Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp (right): https://codereview.chromium.org/911433003/diff/1/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp#newcode225 Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp:225: RawPtr<TestInterfaceGarbageCollected> result = impl->add(scriptState, value, exceptionState); A somewhat ...
5 years, 10 months ago (2015-02-09 12:29:20 UTC) #2
haraken
LGTM > In interface declarations that contains explicit declarations of methods > with these names ...
5 years, 10 months ago (2015-02-09 13:53:12 UTC) #3
Jens Widell
> > In interface declarations that contains explicit declarations of methods > > with these ...
5 years, 10 months ago (2015-02-09 15:03:05 UTC) #4
haraken
https://codereview.chromium.org/911433003/diff/1/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp File Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp (right): https://codereview.chromium.org/911433003/diff/1/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp#newcode273 Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp:273: bool result = impl->delete(scriptState, value, exceptionState); On 2015/02/09 15:03:05, ...
5 years, 10 months ago (2015-02-09 15:53:53 UTC) #5
Jens Widell
https://codereview.chromium.org/911433003/diff/1/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp File Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp (right): https://codereview.chromium.org/911433003/diff/1/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp#newcode273 Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp:273: bool result = impl->delete(scriptState, value, exceptionState); On 2015/02/09 15:53:53, ...
5 years, 10 months ago (2015-02-09 15:56:48 UTC) #7
haraken
On 2015/02/09 15:56:48, Jens Widell wrote: > https://codereview.chromium.org/911433003/diff/1/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp > File Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp > (right): > > ...
5 years, 10 months ago (2015-02-09 15:58:42 UTC) #8
Jens Widell
On 2015/02/09 15:58:42, haraken wrote: > On 2015/02/09 15:56:48, Jens Widell wrote: > > > ...
5 years, 10 months ago (2015-02-09 16:05:06 UTC) #9
haraken
On 2015/02/09 16:05:06, Jens Widell wrote: > On 2015/02/09 15:58:42, haraken wrote: > > On ...
5 years, 10 months ago (2015-02-09 16:10:00 UTC) #10
Jens Widell
On 2015/02/09 16:10:00, haraken wrote: > On 2015/02/09 16:05:06, Jens Widell wrote: > > On ...
5 years, 10 months ago (2015-02-09 16:23:49 UTC) #11
haraken
LGTM
5 years, 10 months ago (2015-02-10 01:05:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/911433003/40001
5 years, 10 months ago (2015-02-10 06:01:59 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/42236)
5 years, 10 months ago (2015-02-10 08:25:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/911433003/40001
5 years, 10 months ago (2015-02-10 08:27:13 UTC) #18
commit-bot: I haz the power
5 years, 10 months ago (2015-02-10 09:31:06 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189880

Powered by Google App Engine
This is Rietveld 408576698