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

Side by Side Diff: Source/core/html/HTMLInputElement.idl

Issue 262753004: Replace all remaining IDL finitude type checks with [TypeChecking=Unrestricted] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 7 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 | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('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) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 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-input-element .html#htmlinputelement
23
22 interface HTMLInputElement : HTMLElement { 24 interface HTMLInputElement : HTMLElement {
23 [Reflect] attribute DOMString accept; 25 [Reflect] attribute DOMString accept;
24 [Reflect] attribute DOMString align; 26 [Reflect] attribute DOMString align;
25 [Reflect] attribute DOMString alt; 27 [Reflect] attribute DOMString alt;
26 [Reflect] attribute DOMString autocomplete; 28 [Reflect] attribute DOMString autocomplete;
27 [Reflect] attribute boolean autofocus; 29 [Reflect] attribute boolean autofocus;
28 [Reflect=checked] attribute boolean defaultChecked; 30 [Reflect=checked] attribute boolean defaultChecked;
29 attribute boolean checked; 31 attribute boolean checked;
30 [Reflect] attribute DOMString dirName; 32 [Reflect] attribute DOMString dirName;
31 [Reflect] attribute boolean disabled; 33 [Reflect] attribute boolean disabled;
(...skipping 21 matching lines...) Expand all
53 [Reflect] attribute boolean required; 55 [Reflect] attribute boolean required;
54 [RaisesException=Setter, CustomElementCallbacks] attribute unsigned long siz e; // Changed string -> long -> unsigned long 56 [RaisesException=Setter, CustomElementCallbacks] attribute unsigned long siz e; // Changed string -> long -> unsigned long
55 [Reflect, URL, PerWorldBindings, LogActivity=SetterOnly] attribute DOMString src; 57 [Reflect, URL, PerWorldBindings, LogActivity=SetterOnly] attribute DOMString src;
56 [Reflect] attribute DOMString step; 58 [Reflect] attribute DOMString step;
57 [CustomElementCallbacks] attribute DOMString type; // readonly dropped as pa rt of DOM level 2 59 [CustomElementCallbacks] attribute DOMString type; // readonly dropped as pa rt of DOM level 2
58 [CustomElementCallbacks] attribute DOMString defaultValue; 60 [CustomElementCallbacks] attribute DOMString defaultValue;
59 [Reflect] attribute DOMString useMap; 61 [Reflect] attribute DOMString useMap;
60 // See the discussion in https://bugs.webkit.org/show_bug.cgi?id=100085 62 // See the discussion in https://bugs.webkit.org/show_bug.cgi?id=100085
61 [TreatNullAs=NullString, RaisesException=Setter, CustomElementCallbacks] att ribute DOMString value; 63 [TreatNullAs=NullString, RaisesException=Setter, CustomElementCallbacks] att ribute DOMString value;
62 [RaisesException=Setter, CustomElementCallbacks] attribute Date? valueAsDate ; 64 [RaisesException=Setter, CustomElementCallbacks] attribute Date? valueAsDate ;
63 [RaisesException=Setter, CustomElementCallbacks] attribute double valueAsNum ber; 65 [RaisesException=Setter, CustomElementCallbacks] attribute unrestricted doub le valueAsNumber;
64 66
65 [RaisesException, CustomElementCallbacks] void stepUp(optional long n); 67 [RaisesException, CustomElementCallbacks] void stepUp(optional long n);
66 [RaisesException, CustomElementCallbacks] void stepDown(optional long n); 68 [RaisesException, CustomElementCallbacks] void stepDown(optional long n);
67 69
68 [CustomElementCallbacks] attribute unsigned long width; 70 [CustomElementCallbacks] attribute unsigned long width;
69 readonly attribute boolean willValidate; 71 readonly attribute boolean willValidate;
70 readonly attribute ValidityState validity; 72 readonly attribute ValidityState validity;
71 readonly attribute DOMString validationMessage; 73 readonly attribute DOMString validationMessage;
72 boolean checkValidity(); 74 boolean checkValidity();
73 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 75 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
(...skipping 19 matching lines...) Expand all
93 // Non-standard attributes 95 // Non-standard attributes
94 [Reflect] attribute boolean webkitdirectory; 96 [Reflect] attribute boolean webkitdirectory;
95 [Reflect] attribute boolean incremental; 97 [Reflect] attribute boolean incremental;
96 [Conditional=INPUT_SPEECH, Reflect, RuntimeEnabled=SpeechInput] attribute bo olean webkitSpeech; 98 [Conditional=INPUT_SPEECH, Reflect, RuntimeEnabled=SpeechInput] attribute bo olean webkitSpeech;
97 [Conditional=INPUT_SPEECH, Reflect, RuntimeEnabled=SpeechInput] attribute bo olean webkitGrammar; 99 [Conditional=INPUT_SPEECH, Reflect, RuntimeEnabled=SpeechInput] attribute bo olean webkitGrammar;
98 [Conditional=INPUT_SPEECH] attribute EventHandler onwebkitspeechchange; 100 [Conditional=INPUT_SPEECH] attribute EventHandler onwebkitspeechchange;
99 101
100 // See http://www.w3.org/TR/html-media-capture/ 102 // See http://www.w3.org/TR/html-media-capture/
101 [Conditional=MEDIA_CAPTURE, Reflect] attribute boolean capture; 103 [Conditional=MEDIA_CAPTURE, Reflect] attribute boolean capture;
102 }; 104 };
OLDNEW
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698