| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 int clampValue(int value) const { return m_range.clampValue(value); } | 56 int clampValue(int value) const { return m_range.clampValue(value); } |
| 57 virtual int clampValueForHardLimits(int) const; | 57 virtual int clampValueForHardLimits(int) const; |
| 58 virtual int defaultValueForStepDown() const; | 58 virtual int defaultValueForStepDown() const; |
| 59 virtual int defaultValueForStepUp() const; | 59 virtual int defaultValueForStepUp() const; |
| 60 const Range& range() const { return m_range; } | 60 const Range& range() const { return m_range; } |
| 61 | 61 |
| 62 // DateTimeFieldElement functions. | 62 // DateTimeFieldElement functions. |
| 63 virtual bool hasValue() const OVERRIDE FINAL; | 63 virtual bool hasValue() const OVERRIDE FINAL; |
| 64 virtual int maximum() const OVERRIDE FINAL; | 64 virtual int maximum() const OVERRIDE FINAL; |
| 65 virtual void setEmptyValue(const DateComponents& dateForReadOnlyField, Event
Behavior = DispatchNoEvent) OVERRIDE FINAL; | 65 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) OVERRIDE FINAL; |
| 66 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRID
E; | 66 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRID
E; |
| 67 virtual int valueAsInteger() const OVERRIDE; | 67 virtual int valueAsInteger() const OVERRIDE; |
| 68 virtual String visibleValue() const OVERRIDE FINAL; | 68 virtual String visibleValue() const OVERRIDE FINAL; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 // Element function. | 71 // Element function. |
| 72 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; | 72 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; |
| 73 | 73 |
| 74 // DateTimeFieldElement functions. | 74 // DateTimeFieldElement functions. |
| 75 virtual void didBlur() OVERRIDE FINAL; | 75 virtual void didBlur() OVERRIDE FINAL; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 86 const String m_placeholder; | 86 const String m_placeholder; |
| 87 const Range m_range; | 87 const Range m_range; |
| 88 int m_value; | 88 int m_value; |
| 89 bool m_hasValue; | 89 bool m_hasValue; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace WebCore | 92 } // namespace WebCore |
| 93 | 93 |
| 94 #endif | 94 #endif |
| 95 #endif | 95 #endif |
| OLD | NEW |