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

Side by Side Diff: third_party/WebKit/Source/core/html/forms/InputType.h

Issue 2774723004: Update :in-range/:out-of-range when steppable min/max/value changes. (Closed)
Patch Set: Moved code to InputType class. Created 3 years, 8 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 * 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual bool valueMissing(const String&) const; 123 virtual bool valueMissing(const String&) const;
124 virtual bool patternMismatch(const String&) const; 124 virtual bool patternMismatch(const String&) const;
125 virtual bool tooLong(const String&, 125 virtual bool tooLong(const String&,
126 TextControlElement::NeedsToCheckDirtyFlag) const; 126 TextControlElement::NeedsToCheckDirtyFlag) const;
127 virtual bool tooShort(const String&, 127 virtual bool tooShort(const String&,
128 TextControlElement::NeedsToCheckDirtyFlag) const; 128 TextControlElement::NeedsToCheckDirtyFlag) const;
129 bool rangeUnderflow(const String&) const; 129 bool rangeUnderflow(const String&) const;
130 bool rangeOverflow(const String&) const; 130 bool rangeOverflow(const String&) const;
131 bool isInRange(const String&) const; 131 bool isInRange(const String&) const;
132 bool isOutOfRange(const String&) const; 132 bool isOutOfRange(const String&) const;
133 void inRangeChanged() const;
133 virtual Decimal defaultValueForStepUp() const; 134 virtual Decimal defaultValueForStepUp() const;
134 double minimum() const; 135 double minimum() const;
135 double maximum() const; 136 double maximum() const;
136 bool stepMismatch(const String&) const; 137 bool stepMismatch(const String&) const;
137 virtual bool getAllowedValueStep(Decimal*) const; 138 virtual bool getAllowedValueStep(Decimal*) const;
138 virtual StepRange createStepRange(AnyStepHandling) const; 139 virtual StepRange createStepRange(AnyStepHandling) const;
139 virtual void stepUp(double, ExceptionState&); 140 virtual void stepUp(double, ExceptionState&);
140 virtual void stepUpFromLayoutObject(int); 141 virtual void stepUpFromLayoutObject(int);
141 virtual String badInputText() const; 142 virtual String badInputText() const;
142 virtual String rangeOverflowText(const Decimal& maximum) const; 143 virtual String rangeOverflowText(const Decimal& maximum) const;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 double count, 256 double count,
256 AnyStepHandling, 257 AnyStepHandling,
257 TextFieldEventBehavior, 258 TextFieldEventBehavior,
258 ExceptionState&); 259 ExceptionState&);
259 260
260 Member<HTMLInputElement> m_element; 261 Member<HTMLInputElement> m_element;
261 }; 262 };
262 263
263 } // namespace blink 264 } // namespace blink
264 #endif 265 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.cpp ('k') | third_party/WebKit/Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698