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

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

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 10 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
« no previous file with comments | « core/html/HTMLTemplateElement.idl ('k') | core/html/HTMLTitleElement.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) 2011 Motorola Mobility, Inc. All rights reserved. 4 * Copyright (C) 2011 Motorola Mobility, Inc. 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-textarea-element
23
22 interface HTMLTextAreaElement : HTMLElement { 24 interface HTMLTextAreaElement : HTMLElement {
25 // attribute DOMString autocomplete;
23 [Reflect] attribute boolean autofocus; 26 [Reflect] attribute boolean autofocus;
24 attribute long cols; 27 attribute unsigned long cols;
25 [Reflect] attribute DOMString dirName; 28 [Reflect] attribute DOMString dirName;
26 [Reflect] attribute boolean disabled; 29 [Reflect] attribute boolean disabled;
27 [ImplementedAs=formOwner] readonly attribute HTMLFormElement form; 30 [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form;
31 [RuntimeEnabled=InputModeAttribute, Reflect] attribute DOMString inputMode;
28 [RaisesException=Setter] attribute long maxLength; 32 [RaisesException=Setter] attribute long maxLength;
33 [RaisesException=Setter] attribute long minLength;
29 [Reflect] attribute DOMString name; 34 [Reflect] attribute DOMString name;
30 [Reflect] attribute DOMString placeholder; 35 [Reflect] attribute DOMString placeholder;
31 [Reflect] attribute boolean readOnly; 36 [Reflect] attribute boolean readOnly;
32 [Reflect] attribute boolean required; 37 [Reflect] attribute boolean required;
33 attribute long rows; 38 attribute unsigned long rows;
34 [Reflect] attribute DOMString wrap; 39 [Reflect] attribute DOMString wrap;
35 [RuntimeEnabled=InputModeAttribute, Reflect] attribute DOMString inputMode;
36 40
37 readonly attribute DOMString type; 41 readonly attribute DOMString type;
38 attribute DOMString defaultValue; 42 attribute DOMString defaultValue;
39 [TreatNullAs=NullString] attribute DOMString value; 43 [TreatNullAs=NullString] attribute DOMString value;
40 readonly attribute unsigned long textLength; 44 readonly attribute unsigned long textLength;
41 45
42 readonly attribute boolean willValidate; 46 readonly attribute boolean willValidate;
43 readonly attribute ValidityState validity; 47 readonly attribute ValidityState validity;
44 readonly attribute DOMString validationMessage; 48 readonly attribute DOMString validationMessage;
45 boolean checkValidity(); 49 boolean checkValidity();
46 void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error); 50 boolean reportValidity();
51 void setCustomValidity(DOMString error);
47 52
48 readonly attribute NodeList labels; 53 readonly attribute NodeList labels;
49 54
50 void select(); 55 void select();
56 // TODO(philipj): selectionStart and selectionEnd should be unsigned long.
51 attribute long selectionStart; 57 attribute long selectionStart;
52 attribute long selectionEnd; 58 attribute long selectionEnd;
53 attribute DOMString selectionDirection; 59 attribute DOMString selectionDirection;
54
55 [RaisesException] void setRangeText(DOMString replacement); 60 [RaisesException] void setRangeText(DOMString replacement);
61 // TODO(philipj): The selectionMode argument should be a SelectionMode enum.
56 [RaisesException] void setRangeText(DOMString replacement, 62 [RaisesException] void setRangeText(DOMString replacement,
57 unsigned long start, 63 unsigned long start,
58 unsigned long end, 64 unsigned long end,
59 optional DOMString selectionMode = null); 65 optional DOMString selectionMode = null) ;
60 66 // TODO(philipj): The start and end arguments should be unsigned long and
67 // should not be optional.
61 void setSelectionRange([Default=Undefined] optional long start, 68 void setSelectionRange([Default=Undefined] optional long start,
62 [Default=Undefined] optional long end, 69 [Default=Undefined] optional long end,
63 optional DOMString direction); 70 optional DOMString direction);
71
72 // HTML autocapitalize proposal
73 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal .md
74 [Measure] attribute DOMString autocapitalize;
64 }; 75 };
OLDNEW
« no previous file with comments | « core/html/HTMLTemplateElement.idl ('k') | core/html/HTMLTitleElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698