OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 String SanitizeValue(const String&) const; | 137 String SanitizeValue(const String&) const; |
138 | 138 |
139 String LocalizeValue(const String&) const; | 139 String LocalizeValue(const String&) const; |
140 | 140 |
141 const String& SuggestedValue() const; | 141 const String& SuggestedValue() const; |
142 void SetSuggestedValue(const String&); | 142 void SetSuggestedValue(const String&); |
143 | 143 |
144 void SetEditingValue(const String&); | 144 void SetEditingValue(const String&); |
145 | 145 |
146 double valueAsDate(bool& is_null) const; | 146 double valueAsDate(bool& is_null) const; |
147 void setValueAsDate(double, ExceptionState&); | 147 void setValueAsDate(double, bool is_null, ExceptionState&); |
148 | 148 |
149 double valueAsNumber() const; | 149 double valueAsNumber() const; |
150 void setValueAsNumber(double, | 150 void setValueAsNumber(double, |
151 ExceptionState&, | 151 ExceptionState&, |
152 TextFieldEventBehavior = kDispatchNoEvent); | 152 TextFieldEventBehavior = kDispatchNoEvent); |
153 | 153 |
154 String ValueOrDefaultLabel() const; | 154 String ValueOrDefaultLabel() const; |
155 | 155 |
156 // This function dispatches 'input' event for non-textfield types. Callers | 156 // This function dispatches 'input' event for non-textfield types. Callers |
157 // need to handle any DOM structure changes by event handlers, or need to | 157 // need to handle any DOM structure changes by event handlers, or need to |
158 // delay the 'input' event with EventQueueScope. | 158 // delay the 'input' event with EventQueueScope. |
159 void SetValueFromRenderer(const String&); | 159 void SetValueFromRenderer(const String&); |
160 | 160 |
161 unsigned selectionStartForBinding(bool&, ExceptionState&) const; | 161 unsigned selectionStartForBinding(bool&, ExceptionState&) const; |
162 unsigned selectionEndForBinding(bool&, ExceptionState&) const; | 162 unsigned selectionEndForBinding(bool&, ExceptionState&) const; |
163 String selectionDirectionForBinding(ExceptionState&) const; | 163 String selectionDirectionForBinding(ExceptionState&) const; |
164 void setSelectionStartForBinding(unsigned, ExceptionState&); | 164 void setSelectionStartForBinding(unsigned, bool is_null, ExceptionState&); |
165 void setSelectionEndForBinding(unsigned, ExceptionState&); | 165 void setSelectionEndForBinding(unsigned, bool is_null, ExceptionState&); |
166 void setSelectionDirectionForBinding(const String&, ExceptionState&); | 166 void setSelectionDirectionForBinding(const String&, ExceptionState&); |
167 void setSelectionRangeForBinding(unsigned start, | 167 void setSelectionRangeForBinding(unsigned start, |
168 unsigned end, | 168 unsigned end, |
169 ExceptionState&); | 169 ExceptionState&); |
170 void setSelectionRangeForBinding(unsigned start, | 170 void setSelectionRangeForBinding(unsigned start, |
171 unsigned end, | 171 unsigned end, |
172 const String& direction, | 172 const String& direction, |
173 ExceptionState&); | 173 ExceptionState&); |
174 | 174 |
175 bool LayoutObjectIsNeeded(const ComputedStyle&) final; | 175 bool LayoutObjectIsNeeded(const ComputedStyle&) final; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 // element lives on. | 428 // element lives on. |
429 Member<HTMLImageLoader> image_loader_; | 429 Member<HTMLImageLoader> image_loader_; |
430 Member<ListAttributeTargetObserver> list_attribute_target_observer_; | 430 Member<ListAttributeTargetObserver> list_attribute_target_observer_; |
431 | 431 |
432 FRIEND_TEST_ALL_PREFIXES(HTMLInputElementTest, RadioKeyDownDCHECKFailure); | 432 FRIEND_TEST_ALL_PREFIXES(HTMLInputElementTest, RadioKeyDownDCHECKFailure); |
433 }; | 433 }; |
434 | 434 |
435 } // namespace blink | 435 } // namespace blink |
436 | 436 |
437 #endif // HTMLInputElement_h | 437 #endif // HTMLInputElement_h |
OLD | NEW |