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