| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(EventBehavior = 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. | |
| 72 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; | |
| 73 | |
| 74 // DateTimeFieldElement functions. | 71 // DateTimeFieldElement functions. |
| 75 virtual void didBlur() OVERRIDE FINAL; | 72 virtual void didBlur() OVERRIDE FINAL; |
| 76 virtual void handleKeyboardEvent(KeyboardEvent*) OVERRIDE FINAL; | 73 virtual void handleKeyboardEvent(KeyboardEvent*) OVERRIDE FINAL; |
| 74 virtual float maximumWidth(const Font&) OVERRIDE; |
| 77 virtual int minimum() const OVERRIDE FINAL; | 75 virtual int minimum() const OVERRIDE FINAL; |
| 78 virtual void stepDown() OVERRIDE FINAL; | 76 virtual void stepDown() OVERRIDE FINAL; |
| 79 virtual void stepUp() OVERRIDE FINAL; | 77 virtual void stepUp() OVERRIDE FINAL; |
| 80 virtual String value() const OVERRIDE FINAL; | 78 virtual String value() const OVERRIDE FINAL; |
| 81 | 79 |
| 82 String formatValue(int) const; | 80 String formatValue(int) const; |
| 83 Locale& localeForOwner() const; | 81 Locale& localeForOwner() const; |
| 84 | 82 |
| 85 DOMTimeStamp m_lastDigitCharTime; | 83 DOMTimeStamp m_lastDigitCharTime; |
| 86 const String m_placeholder; | 84 String m_placeholder; |
| 87 const Range m_range; | 85 const Range m_range; |
| 88 int m_value; | 86 int m_value; |
| 89 bool m_hasValue; | 87 bool m_hasValue; |
| 90 }; | 88 }; |
| 91 | 89 |
| 92 } // namespace WebCore | 90 } // namespace WebCore |
| 93 | 91 |
| 94 #endif | 92 #endif |
| 95 #endif | 93 #endif |
| OLD | NEW |