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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 protected: | 233 protected: |
234 InputType(HTMLInputElement& element) : InputTypeView(element) { } | 234 InputType(HTMLInputElement& element) : InputTypeView(element) { } |
235 Chrome* chrome() const; | 235 Chrome* chrome() const; |
236 Locale& locale() const; | 236 Locale& locale() const; |
237 Decimal parseToNumberOrNaN(const String&) const; | 237 Decimal parseToNumberOrNaN(const String&) const; |
238 void countUsageIfVisible(UseCounter::Feature) const; | 238 void countUsageIfVisible(UseCounter::Feature) const; |
239 | 239 |
240 // Derive the step base, following the HTML algorithm steps. | 240 // Derive the step base, following the HTML algorithm steps. |
241 Decimal findStepBase(const Decimal&) const; | 241 Decimal findStepBase(const Decimal&) const; |
242 | 242 |
| 243 StepRange createStepRange(AnyStepHandling, const Decimal& stepBaseDefault, c
onst Decimal& minimumDefault, const Decimal& maximumDefault, const StepRange::St
epDescription&) const; |
| 244 |
243 private: | 245 private: |
244 // Helper for stepUp()/stepDown(). Adds step value * count to the current va
lue. | 246 // Helper for stepUp()/stepDown(). Adds step value * count to the current va
lue. |
245 void applyStep(int count, AnyStepHandling, TextFieldEventBehavior, Exception
State&); | 247 void applyStep(int count, AnyStepHandling, TextFieldEventBehavior, Exception
State&); |
246 }; | 248 }; |
247 | 249 |
248 } // namespace WebCore | 250 } // namespace WebCore |
249 #endif | 251 #endif |
OLD | NEW |