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

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

Issue 1269263003: The start and end arguments should be unsigned long in setSelectionRange() function Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLTextAreaElement.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) 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 *
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 readonly attribute ValidityState validity; 74 readonly attribute ValidityState validity;
75 readonly attribute DOMString validationMessage; 75 readonly attribute DOMString validationMessage;
76 boolean checkValidity(); 76 boolean checkValidity();
77 boolean reportValidity(); 77 boolean reportValidity();
78 void setCustomValidity(DOMString error); 78 void setCustomValidity(DOMString error);
79 79
80 readonly attribute NodeList labels; 80 readonly attribute NodeList labels;
81 81
82 void select(); 82 void select();
83 // FIXME: selectionStart and selectionEnd should be unsigned long. 83 // FIXME: selectionStart and selectionEnd should be unsigned long.
84 [RaisesException, ImplementedAs=selectionStartForBinding] attribute long sel ectionStart; 84 [RaisesException, ImplementedAs=selectionStartForBinding] attribute unsigned long selectionStart;
85 [RaisesException, ImplementedAs=selectionEndForBinding] attribute long selec tionEnd; 85 [RaisesException, ImplementedAs=selectionEndForBinding] attribute unsigned l ong selectionEnd;
86 [RaisesException, ImplementedAs=selectionDirectionForBinding] attribute DOMS tring selectionDirection; 86 [RaisesException, ImplementedAs=selectionDirectionForBinding] attribute DOMS tring selectionDirection;
87 [RaisesException] void setRangeText(DOMString replacement); 87 [RaisesException] void setRangeText(DOMString replacement);
88 [RaisesException] void setRangeText(DOMString replacement, 88 [RaisesException] void setRangeText(DOMString replacement,
89 unsigned long start, 89 unsigned long start,
90 unsigned long end, 90 unsigned long end,
91 optional SelectionMode selectionMode = " preserve"); 91 optional SelectionMode selectionMode = " preserve");
92 // FIXME: The start and end arguments should be unsigned long and should not have [Default=Undefined]. 92 // FIXME: The start and end arguments should be unsigned long and should not have [Default=Undefined].
93 [RaisesException, ImplementedAs=setSelectionRangeForBinding] 93 [RaisesException, ImplementedAs=setSelectionRangeForBinding]
94 void setSelectionRange([Default=Undefined] optional long start, 94 void setSelectionRange([Default=Undefined] optional long start,
95 [Default=Undefined] optional long end, 95 [Default=Undefined] optional long end,
96 optional DOMString direction); 96 optional DOMString direction);
97 97
98 // obsolete members 98 // obsolete members
99 // https://html.spec.whatwg.org/#HTMLInputElement-partial 99 // https://html.spec.whatwg.org/#HTMLInputElement-partial
100 [Reflect] attribute DOMString align; 100 [Reflect] attribute DOMString align;
101 [Reflect] attribute DOMString useMap; 101 [Reflect] attribute DOMString useMap;
102 102
103 // HTML autocapitalize proposal 103 // HTML autocapitalize proposal
104 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal .md 104 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal .md
105 [Measure] attribute DOMString autocapitalize; 105 [Measure] attribute DOMString autocapitalize;
106 106
107 // HTML Media Capture 107 // HTML Media Capture
108 // http://www.w3.org/TR/html-media-capture/ 108 // http://www.w3.org/TR/html-media-capture/
109 [RuntimeEnabled=MediaCapture, Reflect] attribute boolean capture; 109 [RuntimeEnabled=MediaCapture, Reflect] attribute boolean capture;
110 110
111 // Non-standard APIs 111 // Non-standard APIs
112 [Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdire ctory; 112 [Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdire ctory;
113 [Reflect, MeasureAs=IncrementalAttribute] attribute boolean incremental; 113 [Reflect, MeasureAs=IncrementalAttribute] attribute boolean incremental;
114 }; 114 };
OLDNEW
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLTextAreaElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698