Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/URLSearchParams.idl |
| diff --git a/third_party/WebKit/Source/core/dom/URLSearchParams.idl b/third_party/WebKit/Source/core/dom/URLSearchParams.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0dd6b68b859fbaeeef3b19deb5d565768c2c2322 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/dom/URLSearchParams.idl |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// https://url.spec.whatwg.org/#interface-urlsearchparams |
| + |
| +[ |
| + Constructor(), |
|
philipj_slow
2015/11/16 12:15:46
Does the IDL compiler not support the [Constructor
Mike West
2015/11/16 14:12:10
I didn't think it would work, but it looks like it
|
| + Constructor(URLSearchParams initial), |
| + Constructor(USVString queryString), |
| + GarbageCollected, |
| + Exposed=(Window,Worker) |
| +] interface URLSearchParams { |
| + void append(USVString name, USVString value); |
| + [ImplementedAs=deleteAllWithName] void delete(USVString name); |
| + [TreatReturnedNullStringAs=Null] USVString get(USVString name); |
|
philipj_slow
2015/11/16 12:15:46
Can you use `USVString?` instead of `[TreatReturne
Mike West
2015/11/16 14:12:10
Sure.
|
| + sequence<USVString> getAll(USVString name); |
| + boolean has(USVString name); |
| + void set(USVString name, USVString value); |
| + |
|
philipj_slow
2015/11/16 12:15:46
Can you add a TODO for `iterable<USVString, USVStr
Mike West
2015/11/16 14:12:10
Sure. I even added a test!
|
| + stringifier; |
| +}; |