Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: Source/WebCore/html/NumberInputType.h

Issue 11884049: Merge 139151 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class NumberInputType : public TextFieldInputType { 38 class NumberInputType : public TextFieldInputType {
39 public: 39 public:
40 static PassOwnPtr<InputType> create(HTMLInputElement*); 40 static PassOwnPtr<InputType> create(HTMLInputElement*);
41 41
42 private: 42 private:
43 NumberInputType(HTMLInputElement* element) : TextFieldInputType(element) { } 43 NumberInputType(HTMLInputElement* element) : TextFieldInputType(element) { }
44 virtual const AtomicString& formControlType() const OVERRIDE; 44 virtual const AtomicString& formControlType() const OVERRIDE;
45 virtual void setValue(const String&, bool valueChanged, TextFieldEventBehavi or) OVERRIDE;
45 virtual double valueAsDouble() const OVERRIDE; 46 virtual double valueAsDouble() const OVERRIDE;
46 virtual void setValueAsDouble(double, TextFieldEventBehavior, ExceptionCode& ) const OVERRIDE; 47 virtual void setValueAsDouble(double, TextFieldEventBehavior, ExceptionCode& ) const OVERRIDE;
47 virtual void setValueAsDecimal(const Decimal&, TextFieldEventBehavior, Excep tionCode&) const OVERRIDE; 48 virtual void setValueAsDecimal(const Decimal&, TextFieldEventBehavior, Excep tionCode&) const OVERRIDE;
48 virtual bool typeMismatchFor(const String&) const OVERRIDE; 49 virtual bool typeMismatchFor(const String&) const OVERRIDE;
49 virtual bool typeMismatch() const OVERRIDE; 50 virtual bool typeMismatch() const OVERRIDE;
50 virtual bool sizeShouldIncludeDecoration(int defaultSize, int& preferredSize ) const OVERRIDE; 51 virtual bool sizeShouldIncludeDecoration(int defaultSize, int& preferredSize ) const OVERRIDE;
51 virtual bool isSteppable() const OVERRIDE; 52 virtual bool isSteppable() const OVERRIDE;
52 virtual StepRange createStepRange(AnyStepHandling) const OVERRIDE; 53 virtual StepRange createStepRange(AnyStepHandling) const OVERRIDE;
53 virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE; 54 virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE;
54 virtual Decimal parseToNumber(const String&, const Decimal&) const OVERRIDE; 55 virtual Decimal parseToNumber(const String&, const Decimal&) const OVERRIDE;
55 virtual String serialize(const Decimal&) const OVERRIDE; 56 virtual String serialize(const Decimal&) const OVERRIDE;
56 virtual String localizeValue(const String&) const OVERRIDE; 57 virtual String localizeValue(const String&) const OVERRIDE;
57 virtual String visibleValue() const OVERRIDE; 58 virtual String visibleValue() const OVERRIDE;
58 virtual String convertFromVisibleValue(const String&) const OVERRIDE; 59 virtual String convertFromVisibleValue(const String&) const OVERRIDE;
59 virtual String sanitizeValue(const String&) const OVERRIDE; 60 virtual String sanitizeValue(const String&) const OVERRIDE;
60 virtual bool hasBadInput() const OVERRIDE; 61 virtual bool hasBadInput() const OVERRIDE;
61 virtual String badInputText() const OVERRIDE; 62 virtual String badInputText() const OVERRIDE;
62 virtual bool shouldRespectSpeechAttribute() OVERRIDE; 63 virtual bool shouldRespectSpeechAttribute() OVERRIDE;
63 virtual bool supportsPlaceholder() const OVERRIDE; 64 virtual bool supportsPlaceholder() const OVERRIDE;
64 virtual bool isNumberField() const OVERRIDE; 65 virtual bool isNumberField() const OVERRIDE;
65 virtual void minOrMaxAttributeChanged() OVERRIDE; 66 virtual void minOrMaxAttributeChanged() OVERRIDE;
66 virtual void stepAttributeChanged() OVERRIDE; 67 virtual void stepAttributeChanged() OVERRIDE;
67 }; 68 };
68 69
69 } // namespace WebCore 70 } // namespace WebCore
70 71
71 #endif // NumberInputType_h 72 #endif // NumberInputType_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/number/number-validity-badinput-expected.txt ('k') | Source/WebCore/html/NumberInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698