| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual bool hasValue() const OVERRIDE FINAL; | 73 virtual bool hasValue() const OVERRIDE FINAL; |
| 74 void initialize(const AtomicString& pseudo, const String& axHelpText); | 74 void initialize(const AtomicString& pseudo, const String& axHelpText); |
| 75 int maximum() const; | 75 int maximum() const; |
| 76 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) OVERRIDE FINAL; | 76 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) OVERRIDE FINAL; |
| 77 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRID
E; | 77 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRID
E; |
| 78 virtual int valueAsInteger() const OVERRIDE FINAL; | 78 virtual int valueAsInteger() const OVERRIDE FINAL; |
| 79 virtual String visibleValue() const OVERRIDE FINAL; | 79 virtual String visibleValue() const OVERRIDE FINAL; |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 // DateTimeFieldElement functions. | 82 // DateTimeFieldElement functions. |
| 83 virtual void didBlur() OVERRIDE FINAL; | |
| 84 virtual void handleKeyboardEvent(KeyboardEvent*) OVERRIDE FINAL; | 83 virtual void handleKeyboardEvent(KeyboardEvent*) OVERRIDE FINAL; |
| 85 virtual float maximumWidth(const Font&) OVERRIDE; | 84 virtual float maximumWidth(const Font&) OVERRIDE; |
| 86 virtual void stepDown() OVERRIDE FINAL; | 85 virtual void stepDown() OVERRIDE FINAL; |
| 87 virtual void stepUp() OVERRIDE FINAL; | 86 virtual void stepUp() OVERRIDE FINAL; |
| 88 virtual String value() const OVERRIDE FINAL; | 87 virtual String value() const OVERRIDE FINAL; |
| 89 | 88 |
| 89 // Node functions. |
| 90 virtual void setFocus(bool) OVERRIDE FINAL; |
| 91 |
| 90 String formatValue(int) const; | 92 String formatValue(int) const; |
| 91 int roundUp(int) const; | 93 int roundUp(int) const; |
| 92 int roundDown(int) const; | 94 int roundDown(int) const; |
| 93 int typeAheadValue() const; | 95 int typeAheadValue() const; |
| 94 | 96 |
| 95 const String m_placeholder; | 97 const String m_placeholder; |
| 96 const Range m_range; | 98 const Range m_range; |
| 97 const Range m_hardLimits; | 99 const Range m_hardLimits; |
| 98 const Step m_step; | 100 const Step m_step; |
| 99 int m_value; | 101 int m_value; |
| 100 bool m_hasValue; | 102 bool m_hasValue; |
| 101 mutable StringBuilder m_typeAheadBuffer; | 103 mutable StringBuilder m_typeAheadBuffer; |
| 102 }; | 104 }; |
| 103 | 105 |
| 104 } // namespace WebCore | 106 } // namespace WebCore |
| 105 | 107 |
| 106 #endif | 108 #endif |
| 107 #endif | 109 #endif |
| OLD | NEW |