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

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

Issue 2526943002: Add use counters for lots of DOM APIs.
Patch Set: Add use counters for lots of DOM APIs. Created 4 years 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
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 // https://html.spec.whatwg.org/#the-input-element 22 // https://html.spec.whatwg.org/#the-input-element
23 23
24 enum SelectionMode { "select", "start", "end", "preserve" }; 24 enum SelectionMode { "select", "start", "end", "preserve" };
25 25
26 interface HTMLInputElement : HTMLElement { 26 interface HTMLInputElement : HTMLElement {
27 [CEReactions, Reflect] attribute DOMString accept; 27 [CEReactions, Reflect] attribute DOMString accept;
28 [CEReactions, Reflect] attribute DOMString alt; 28 [CEReactions, Reflect] attribute DOMString alt;
29 [CEReactions, Reflect] attribute DOMString autocomplete; 29 [Measure, CEReactions, Reflect] attribute DOMString autocomplete;
30 [CEReactions, Reflect] attribute boolean autofocus; 30 [Measure, CEReactions, Reflect] attribute boolean autofocus;
31 [CEReactions, Reflect=checked] attribute boolean defaultChecked; 31 [CEReactions, Reflect=checked] attribute boolean defaultChecked;
32 attribute boolean checked; 32 attribute boolean checked;
33 [CEReactions, Reflect] attribute DOMString dirName; 33 [CEReactions, Reflect] attribute DOMString dirName;
34 [CEReactions, Reflect] attribute boolean disabled; 34 [CEReactions, Reflect] attribute boolean disabled;
35 [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form; 35 [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form;
36 // The 'files' attribute is intentionally not readonly. 36 // The 'files' attribute is intentionally not readonly.
37 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22682 37 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22682
38 attribute FileList? files; 38 attribute FileList? files;
39 [CEReactions] attribute DOMString formAction; 39 [CEReactions] attribute DOMString formAction;
40 [CEReactions, CustomElementCallbacks] attribute DOMString formEnctype; 40 [CEReactions, CustomElementCallbacks] attribute DOMString formEnctype;
41 [CEReactions, CustomElementCallbacks] attribute DOMString formMethod; 41 [CEReactions, CustomElementCallbacks] attribute DOMString formMethod;
42 [CEReactions, Reflect] attribute boolean formNoValidate; 42 [CEReactions, Reflect] attribute boolean formNoValidate;
43 [CEReactions, Reflect] attribute DOMString formTarget; 43 [CEReactions, Reflect] attribute DOMString formTarget;
44 [CEReactions, CustomElementCallbacks] attribute unsigned long height; 44 [Measure, CEReactions, CustomElementCallbacks] attribute unsigned long height;
45 attribute boolean indeterminate; 45 attribute boolean indeterminate;
46 readonly attribute HTMLElement? list; 46 [Measure] readonly attribute HTMLElement? list;
47 [CEReactions, Reflect] attribute DOMString max; 47 [CEReactions, Reflect] attribute DOMString max;
48 [CEReactions, RaisesException=Setter, CustomElementCallbacks] attribute long maxLength; 48 [CEReactions, RaisesException=Setter, CustomElementCallbacks] attribute long maxLength;
49 [CEReactions, Reflect] attribute DOMString min; 49 [CEReactions, Reflect] attribute DOMString min;
50 [CEReactions, RaisesException=Setter, CustomElementCallbacks] attribute long minLength; 50 [CEReactions, RaisesException=Setter, CustomElementCallbacks] attribute long minLength;
51 [CEReactions, Reflect] attribute boolean multiple; 51 [CEReactions, Reflect] attribute boolean multiple;
52 [CEReactions, Reflect] attribute DOMString name; 52 [CEReactions, Reflect] attribute DOMString name;
53 [CEReactions, Reflect] attribute DOMString pattern; 53 [CEReactions, Reflect] attribute DOMString pattern;
54 [CEReactions, Reflect] attribute DOMString placeholder; 54 [CEReactions, Reflect] attribute DOMString placeholder;
55 [CEReactions, Reflect] attribute boolean readOnly; 55 [CEReactions, Reflect] attribute boolean readOnly;
56 [CEReactions, Reflect] attribute boolean required; 56 [CEReactions, Reflect] attribute boolean required;
57 [CEReactions, RaisesException=Setter, CustomElementCallbacks] attribute unsi gned long size; 57 [CEReactions, RaisesException=Setter, CustomElementCallbacks] attribute unsi gned long size;
58 [CEReactions, Reflect, URL] attribute DOMString src; 58 [CEReactions, Reflect, URL] attribute DOMString src;
59 [CEReactions, Reflect] attribute DOMString step; 59 [CEReactions, Reflect] attribute DOMString step;
60 [CEReactions, CustomElementCallbacks] attribute DOMString type; 60 [CEReactions, CustomElementCallbacks] attribute DOMString type;
61 [CEReactions, Reflect=value, CustomElementCallbacks] attribute DOMString def aultValue; 61 [CEReactions, Reflect=value, CustomElementCallbacks] attribute DOMString def aultValue;
62 [CEReactions, TreatNullAs=EmptyString, RaisesException=Setter, CustomElement Callbacks] attribute DOMString value; 62 [CEReactions, TreatNullAs=EmptyString, RaisesException=Setter, CustomElement Callbacks] attribute DOMString value;
63 [CEReactions, RaisesException=Setter, CustomElementCallbacks] attribute Date ? valueAsDate; 63 [Measure, CEReactions, RaisesException=Setter, CustomElementCallbacks] attribu te Date? valueAsDate;
64 [RaisesException=Setter, CustomElementCallbacks] attribute unrestricted doub le valueAsNumber; 64 [Measure, RaisesException=Setter, CustomElementCallbacks] attribute unrestrict ed double valueAsNumber;
65 // Note: The spec has valueLow and valueHigh for two-valued range controls. 65 // Note: The spec has valueLow and valueHigh for two-valued range controls.
66 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=13154 66 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=13154
67 [CEReactions, CustomElementCallbacks] attribute unsigned long width; 67 [Measure, CEReactions, CustomElementCallbacks] attribute unsigned long width;
68 68
69 [RaisesException, CustomElementCallbacks] void stepUp(optional long n = 1); 69 [Measure, RaisesException, CustomElementCallbacks] void stepUp(optional long n = 1);
70 [RaisesException, CustomElementCallbacks] void stepDown(optional long n = 1) ; 70 [Measure, RaisesException, CustomElementCallbacks] void stepDown(optional long n = 1);
71 71
72 readonly attribute boolean willValidate; 72 [MeasureAs=ValidationAPI] readonly attribute boolean willValidate;
73 readonly attribute ValidityState validity; 73 [MeasureAs=ValidationAPI] readonly attribute ValidityState validity;
74 readonly attribute DOMString validationMessage; 74 [MeasureAs=ValidationAPI] readonly attribute DOMString validationMessage;
75 boolean checkValidity(); 75 [MeasureAs=ValidationAPI] boolean checkValidity();
76 boolean reportValidity(); 76 [MeasureAs=ValidationAPI] boolean reportValidity();
77 void setCustomValidity(DOMString error); 77 [MeasureAs=ValidationAPI] void setCustomValidity(DOMString error);
78 78
79 readonly attribute NodeList labels; 79 readonly attribute NodeList labels;
80 80
81 void select(); 81 [Measure] void select();
82 // FIXME: selectionStart and selectionEnd should be unsigned long. 82 // FIXME: selectionStart and selectionEnd should be unsigned long.
83 [RaisesException, ImplementedAs=selectionStartForBinding] attribute long sel ectionStart; 83 [RaisesException, ImplementedAs=selectionStartForBinding] attribute long sel ectionStart;
84 [RaisesException, ImplementedAs=selectionEndForBinding] attribute long selec tionEnd; 84 [RaisesException, ImplementedAs=selectionEndForBinding] attribute long selec tionEnd;
85 [RaisesException, ImplementedAs=selectionDirectionForBinding] attribute DOMS tring selectionDirection; 85 [RaisesException, ImplementedAs=selectionDirectionForBinding] attribute DOMS tring selectionDirection;
86 [RaisesException] void setRangeText(DOMString replacement); 86 [Measure, RaisesException] void setRangeText(DOMString replacement);
87 [RaisesException] void setRangeText(DOMString replacement, 87 [Measure, RaisesException] void setRangeText(DOMString replacement,
88 unsigned long start, 88 unsigned long start,
89 unsigned long end, 89 unsigned long end,
90 optional SelectionMode selectionMode = " preserve"); 90 optional SelectionMode selectionMode = " preserve");
91 // FIXME: The start and end arguments should be unsigned long and should not have [Default=Undefined]. 91 // FIXME: The start and end arguments should be unsigned long and should not have [Default=Undefined].
92 [RaisesException, ImplementedAs=setSelectionRangeForBinding] 92 [RaisesException, ImplementedAs=setSelectionRangeForBinding]
93 void setSelectionRange([Default=Undefined] optional long start, 93 void setSelectionRange([Default=Undefined] optional long start,
94 [Default=Undefined] optional long end, 94 [Default=Undefined] optional long end,
95 optional DOMString direction); 95 optional DOMString direction);
96 96
97 // obsolete members 97 // obsolete members
98 // https://html.spec.whatwg.org/#HTMLInputElement-partial 98 // https://html.spec.whatwg.org/#HTMLInputElement-partial
99 [CEReactions, Reflect] attribute DOMString align; 99 [Measure, CEReactions, Reflect] attribute DOMString align;
100 [CEReactions, Reflect] attribute DOMString useMap; 100 [Measure, CEReactions, Reflect] attribute DOMString useMap;
101 101
102 // HTML autocapitalize proposal 102 // HTML autocapitalize proposal
103 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal .md 103 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal .md
104 [Measure] attribute DOMString autocapitalize; 104 [Measure] attribute DOMString autocapitalize;
105 105
106 // HTML Media Capture 106 // HTML Media Capture
107 // http://www.w3.org/TR/html-media-capture/ 107 // http://www.w3.org/TR/html-media-capture/
108 [RuntimeEnabled=MediaCapture, Reflect] attribute boolean capture; 108 [RuntimeEnabled=MediaCapture, Reflect] attribute boolean capture;
109 109
110 // Non-standard APIs 110 // Non-standard APIs
111 [Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdire ctory; 111 [Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdire ctory;
112 [Reflect, MeasureAs=IncrementalAttribute] attribute boolean incremental; 112 [Reflect, MeasureAs=IncrementalAttribute] attribute boolean incremental;
113 }; 113 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.idl ('k') | third_party/WebKit/Source/core/html/HTMLLIElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698