DescriptionAdd keys(), values() and entries() methods on iterable<> interfaces
Change the IDL code generator to add keys(), values() and entries()
methods to interfaces with an iterable<> definition.
Also add utility (mixin) base-classes for iterable interfaces,
ValueIterable<> and PairIterable<>, that take care of most of the work
of supporting iterable<> IDL definitions on the C++ side, i.e.
implementing keys(), values(), entries() and @@iterator.
Finally, update the two interfaces with iterable<> definitions
(core/testing/Internals.idl and modules/fetch/Headers.idl) to inherit
the new utility base classes. Internals has a "value iterator" and thus
inherits ValueIterable<>, while Headers has a "pair iterator" and
inherits PairIterable<>. Update existing tests for each to test the new
keys(), values() and entries() methods.
BUG=432683
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188364
Patch Set 1 #Patch Set 2 : #
Total comments: 8
Patch Set 3 : core.gypi + assert_not_equals #
Total comments: 24
Patch Set 4 : address comments #
Total comments: 2
Patch Set 5 : const& #
Total comments: 8
Patch Set 6 : #Patch Set 7 : #
Messages
Total messages: 20 (2 generated)
|