| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions are | 7 * modification, are permitted provided that the following conditions are |
| 8 * met: | 8 * met: |
| 9 * | 9 * |
| 10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 virtual bool isEnumeratable(); | 185 virtual bool isEnumeratable(); |
| 186 virtual bool isCheckable(); | 186 virtual bool isCheckable(); |
| 187 virtual bool isSteppable() const; | 187 virtual bool isSteppable() const; |
| 188 virtual bool shouldRespectHeightAndWidthAttributes(); | 188 virtual bool shouldRespectHeightAndWidthAttributes(); |
| 189 virtual bool supportsPlaceholder() const; | 189 virtual bool supportsPlaceholder() const; |
| 190 virtual bool supportsReadOnly() const; | 190 virtual bool supportsReadOnly() const; |
| 191 virtual String defaultToolTip() const; | 191 virtual String defaultToolTip() const; |
| 192 virtual Decimal findClosestTickMarkValue(const Decimal&); | 192 virtual Decimal findClosestTickMarkValue(const Decimal&); |
| 193 virtual void handleDOMActivateEvent(Event*); | 193 virtual void handleDOMActivateEvent(Event*); |
| 194 virtual bool hasLegalLinkAttribute(const QualifiedName&) const; | 194 virtual bool hasLegalLinkAttribute(const QualifiedName&) const; |
| 195 virtual const QualifiedName& subResourceAttributeName() const; |
| 195 | 196 |
| 196 // Parses the specified string for the type, and return | 197 // Parses the specified string for the type, and return |
| 197 // the Decimal value for the parsing result if the parsing | 198 // the Decimal value for the parsing result if the parsing |
| 198 // succeeds; Returns defaultValue otherwise. This function can | 199 // succeeds; Returns defaultValue otherwise. This function can |
| 199 // return NaN or Infinity only if defaultValue is NaN or Infinity. | 200 // return NaN or Infinity only if defaultValue is NaN or Infinity. |
| 200 virtual Decimal parseToNumber(const String&, const Decimal& defaultValue) co
nst; | 201 virtual Decimal parseToNumber(const String&, const Decimal& defaultValue) co
nst; |
| 201 | 202 |
| 202 // Create a string representation of the specified Decimal value for the | 203 // Create a string representation of the specified Decimal value for the |
| 203 // input type. If NaN or Infinity is specified, this returns an empty | 204 // input type. If NaN or Infinity is specified, this returns an empty |
| 204 // string. This should not be called for types without valueAsNumber. | 205 // string. This should not be called for types without valueAsNumber. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 233 | 234 |
| 234 StepRange createStepRange(AnyStepHandling, const Decimal& stepBaseDefault, c
onst Decimal& minimumDefault, const Decimal& maximumDefault, const StepRange::St
epDescription&) const; | 235 StepRange createStepRange(AnyStepHandling, const Decimal& stepBaseDefault, c
onst Decimal& minimumDefault, const Decimal& maximumDefault, const StepRange::St
epDescription&) const; |
| 235 | 236 |
| 236 private: | 237 private: |
| 237 // Helper for stepUp()/stepDown(). Adds step value * count to the current va
lue. | 238 // Helper for stepUp()/stepDown(). Adds step value * count to the current va
lue. |
| 238 void applyStep(const Decimal&, int count, AnyStepHandling, TextFieldEventBeh
avior, ExceptionState&); | 239 void applyStep(const Decimal&, int count, AnyStepHandling, TextFieldEventBeh
avior, ExceptionState&); |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // namespace WebCore | 242 } // namespace WebCore |
| 242 #endif | 243 #endif |
| OLD | NEW |