OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // http://url.spec.whatwg.org/#interface-urlsearchparams |
| 6 |
| 7 [ |
| 8 // FIXME: use an optional union type instead, |
| 9 // Constructor(optional (ScalarValueString or URLSearchParams) init = ""); |
| 10 // http://crbug.com/240176 |
| 11 Constructor(), |
| 12 Constructor(URLSearchParams initial), |
| 13 Constructor(ScalarValueString queryString), |
| 14 GarbageCollected, |
| 15 ImplementedAs=DOMURLSearchParams, |
| 16 ] interface URLSearchParams { |
| 17 [NotEnumerable] ScalarValueString toString(); |
| 18 |
| 19 void append(ScalarValueString name, ScalarValueString value); |
| 20 [ImplementedAs=deleteAllWithName] void delete(ScalarValueString name); |
| 21 [TreatReturnedNullStringAs=Null] ScalarValueString get(ScalarValueString nam
e); |
| 22 sequence<ScalarValueString> getAll(ScalarValueString name); |
| 23 boolean has(ScalarValueString name); |
| 24 void set(ScalarValueString name, ScalarValueString value); |
| 25 }; |
OLD | NEW |