| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // Gets width and height of the input element if the type of the | 194 // Gets width and height of the input element if the type of the |
| 195 // element is image. It returns 0 if the element is not image type. | 195 // element is image. It returns 0 if the element is not image type. |
| 196 virtual unsigned height() const; | 196 virtual unsigned height() const; |
| 197 virtual unsigned width() const; | 197 virtual unsigned width() const; |
| 198 | 198 |
| 199 virtual TextDirection computedTextDirection(); | 199 virtual TextDirection computedTextDirection(); |
| 200 | 200 |
| 201 void dispatchSimulatedClickIfActive(KeyboardEvent*) const; | 201 void dispatchSimulatedClickIfActive(KeyboardEvent*) const; |
| 202 | 202 |
| 203 // InputTypeView override | 203 // InputTypeView override |
| 204 virtual bool shouldSubmitImplicitly(Event*) OVERRIDE; | 204 virtual bool shouldSubmitImplicitly(Event*) override; |
| 205 virtual bool hasCustomFocusLogic() const OVERRIDE; | 205 virtual bool hasCustomFocusLogic() const override; |
| 206 | 206 |
| 207 virtual bool shouldDispatchFormControlChangeEvent(String&, String&); | 207 virtual bool shouldDispatchFormControlChangeEvent(String&, String&); |
| 208 | 208 |
| 209 // For test purpose | 209 // For test purpose |
| 210 virtual ColorChooserClient* colorChooserClient(); | 210 virtual ColorChooserClient* colorChooserClient(); |
| 211 | 211 |
| 212 protected: | 212 protected: |
| 213 InputType(HTMLInputElement& element) : InputTypeView(element) { } | 213 InputType(HTMLInputElement& element) : InputTypeView(element) { } |
| 214 Chrome* chrome() const; | 214 Chrome* chrome() const; |
| 215 Locale& locale() const; | 215 Locale& locale() const; |
| 216 Decimal parseToNumberOrNaN(const String&) const; | 216 Decimal parseToNumberOrNaN(const String&) const; |
| 217 void countUsageIfVisible(UseCounter::Feature) const; | 217 void countUsageIfVisible(UseCounter::Feature) const; |
| 218 | 218 |
| 219 // Derive the step base, following the HTML algorithm steps. | 219 // Derive the step base, following the HTML algorithm steps. |
| 220 Decimal findStepBase(const Decimal&) const; | 220 Decimal findStepBase(const Decimal&) const; |
| 221 | 221 |
| 222 StepRange createStepRange(AnyStepHandling, const Decimal& stepBaseDefault, c
onst Decimal& minimumDefault, const Decimal& maximumDefault, const StepRange::St
epDescription&) const; | 222 StepRange createStepRange(AnyStepHandling, const Decimal& stepBaseDefault, c
onst Decimal& minimumDefault, const Decimal& maximumDefault, const StepRange::St
epDescription&) const; |
| 223 | 223 |
| 224 private: | 224 private: |
| 225 // Helper for stepUp()/stepDown(). Adds step value * count to the current va
lue. | 225 // Helper for stepUp()/stepDown(). Adds step value * count to the current va
lue. |
| 226 void applyStep(const Decimal&, int count, AnyStepHandling, TextFieldEventBeh
avior, ExceptionState&); | 226 void applyStep(const Decimal&, int count, AnyStepHandling, TextFieldEventBeh
avior, ExceptionState&); |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 } // namespace blink | 229 } // namespace blink |
| 230 #endif | 230 #endif |
| OLD | NEW |