Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: core/html/HTMLSelectElement.idl

Issue 540533002: Roll IDL to Dartium37 (r181268) (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « core/html/HTMLScriptElement.idl ('k') | core/html/HTMLShadowElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 */ 20 */
21 21
22 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-elemen t.html#htmlselectelement
23
22 interface HTMLSelectElement : HTMLElement { 24 interface HTMLSelectElement : HTMLElement {
23 [Reflect] attribute boolean autofocus; 25 [Reflect] attribute boolean autofocus;
24 [Reflect] attribute boolean disabled; 26 [Reflect] attribute boolean disabled;
25 [ImplementedAs=formOwner] readonly attribute HTMLFormElement form; 27 [ImplementedAs=formOwner] readonly attribute HTMLFormElement form;
26 attribute boolean multiple; 28 attribute boolean multiple;
27 [Reflect] attribute DOMString name; 29 [Reflect] attribute DOMString name;
28 [Reflect] attribute boolean required; 30 [Reflect] attribute boolean required;
29 attribute long size; 31 attribute long size;
30 32
31 readonly attribute DOMString type; 33 readonly attribute DOMString type;
32 34
33 readonly attribute HTMLOptionsCollection options; 35 readonly attribute HTMLOptionsCollection options;
34 [RaisesException=Setter] attribute unsigned long length; 36 [RaisesException=Setter] attribute unsigned long length;
35 37
36 getter Element item(unsigned long index); 38 getter Element item(unsigned long index);
37 [RaisesException, StrictTypeChecking] setter HTMLOptionElement (unsigned lon g index, HTMLOptionElement? value);
38 Element namedItem([Default=Undefined] optional DOMString name); 39 Element namedItem([Default=Undefined] optional DOMString name);
39 [RaisesException] void add([Default=Undefined] optional HTMLElement element, 40 // FIXME: should be union type http://crbug.com/240176
40 [Default=Undefined] optional HTMLElement before); 41 [RaisesException, TypeChecking=Interface, DartSuppress] void add(HTMLElement element, optional HTMLElement? before = null);
41 void remove(long index); 42 [ImplementedAs=addBeforeOptionAtIndex, RaisesException, TypeChecking=Interfa ce] void add(HTMLElement element, long before);
42 void remove(HTMLOptionElement option); // non-standard 43 [RaisesException, DartSuppress] void remove(); // ChildNode overload
43 [RaisesException] void remove(); 44 [DartSuppress] void remove(long index);
45 [RaisesException, TypeChecking=Interface|Nullable] setter HTMLOptionElement (unsigned long index, HTMLOptionElement? value);
46
44 readonly attribute HTMLCollection selectedOptions; 47 readonly attribute HTMLCollection selectedOptions;
45 attribute long selectedIndex; 48 attribute long selectedIndex;
46 attribute DOMString value; 49 attribute DOMString value;
47 50
48 readonly attribute boolean willValidate; 51 readonly attribute boolean willValidate;
49 readonly attribute ValidityState validity; 52 readonly attribute ValidityState validity;
50 readonly attribute DOMString validationMessage; 53 readonly attribute DOMString validationMessage;
51 boolean checkValidity(); 54 boolean checkValidity();
52 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 55 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
53 56
54 readonly attribute NodeList labels; 57 readonly attribute NodeList labels;
55 }; 58 };
OLDNEW
« no previous file with comments | « core/html/HTMLScriptElement.idl ('k') | core/html/HTMLShadowElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698