DescriptionIDL: 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 #
Messages
Total messages: 19 (5 generated)
|