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
Review URL: https://codereview.chromium.org/911433003
git-svn-id: svn://svn.chromium.org/blink/trunk@189880 bbb929c8-8fbe-4397-9dbb-9b2b20218538
8 files changed