| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 static const int invalidIndex = -1; | 50 static const int invalidIndex = -1; |
| 51 | 51 |
| 52 String visibleEmptyValue() const; | 52 String visibleEmptyValue() const; |
| 53 | 53 |
| 54 // DateTimeFieldElement functions. | 54 // DateTimeFieldElement functions. |
| 55 virtual void handleKeyboardEvent(KeyboardEvent*) OVERRIDE FINAL; | 55 virtual void handleKeyboardEvent(KeyboardEvent*) OVERRIDE FINAL; |
| 56 virtual float maximumWidth(const Font&) OVERRIDE; | 56 virtual float maximumWidth(const Font&) OVERRIDE; |
| 57 virtual void stepDown() OVERRIDE FINAL; | 57 virtual void stepDown() OVERRIDE FINAL; |
| 58 virtual void stepUp() OVERRIDE FINAL; | 58 virtual void stepUp() OVERRIDE FINAL; |
| 59 virtual String value() const OVERRIDE FINAL; | 59 virtual String value() const OVERRIDE FINAL; |
| 60 virtual int valueForARIAValueNow() const OVERRIDE FINAL; |
| 60 virtual String visibleValue() const OVERRIDE FINAL; | 61 virtual String visibleValue() const OVERRIDE FINAL; |
| 61 | 62 |
| 62 // TypeAheadDataSource functions. | 63 // TypeAheadDataSource functions. |
| 63 virtual int indexOfSelectedOption() const OVERRIDE; | 64 virtual int indexOfSelectedOption() const OVERRIDE; |
| 64 virtual int optionCount() const OVERRIDE; | 65 virtual int optionCount() const OVERRIDE; |
| 65 virtual String optionAtIndex(int index) const OVERRIDE; | 66 virtual String optionAtIndex(int index) const OVERRIDE; |
| 66 | 67 |
| 67 const Vector<String> m_symbols; | 68 const Vector<String> m_symbols; |
| 68 | 69 |
| 69 // We use AtomicString to share visible empty value among multiple | 70 // We use AtomicString to share visible empty value among multiple |
| 70 // DateTimeEditElements in the page. | 71 // DateTimeEditElements in the page. |
| 71 const AtomicString m_visibleEmptyValue; | 72 const AtomicString m_visibleEmptyValue; |
| 72 int m_selectedIndex; | 73 int m_selectedIndex; |
| 73 TypeAhead m_typeAhead; | 74 TypeAhead m_typeAhead; |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace WebCore | 77 } // namespace WebCore |
| 77 | 78 |
| 78 #endif | 79 #endif |
| 79 #endif | 80 #endif |
| OLD | NEW |