| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual void stepUp() = 0; | 75 virtual void stepUp() = 0; |
| 76 virtual String value() const = 0; | 76 virtual String value() const = 0; |
| 77 virtual String visibleValue() const = 0; | 77 virtual String visibleValue() const = 0; |
| 78 | 78 |
| 79 protected: | 79 protected: |
| 80 DateTimeFieldElement(Document*, FieldOwner&); | 80 DateTimeFieldElement(Document*, FieldOwner&); |
| 81 virtual void didBlur(); | 81 virtual void didBlur(); |
| 82 virtual void didFocus(); | 82 virtual void didFocus(); |
| 83 void focusOnNextField(); | 83 void focusOnNextField(); |
| 84 virtual void handleKeyboardEvent(KeyboardEvent*) = 0; | 84 virtual void handleKeyboardEvent(KeyboardEvent*) = 0; |
| 85 void initialize(const AtomicString& pseudo, const String& axHelpText); | 85 void initialize(const AtomicString& pseudo, const String& axHelpText, int ax
Minimum, int axMaximum); |
| 86 Locale& localeForOwner() const; | 86 Locale& localeForOwner() const; |
| 87 AtomicString localeIdentifier() const; | 87 AtomicString localeIdentifier() const; |
| 88 virtual int maximum() const = 0; | |
| 89 virtual int minimum() const = 0; | |
| 90 void updateVisibleValue(EventBehavior); | 88 void updateVisibleValue(EventBehavior); |
| 91 virtual int valueAsInteger() const = 0; | 89 virtual int valueAsInteger() const = 0; |
| 92 | 90 |
| 93 private: | 91 private: |
| 94 void defaultKeyboardEventHandler(KeyboardEvent*); | 92 void defaultKeyboardEventHandler(KeyboardEvent*); |
| 95 virtual bool isDateTimeFieldElement() const OVERRIDE; | 93 virtual bool isDateTimeFieldElement() const OVERRIDE; |
| 96 virtual bool isFocusable() const OVERRIDE FINAL; | 94 virtual bool isFocusable() const OVERRIDE FINAL; |
| 97 virtual bool supportsFocus() const OVERRIDE FINAL; | 95 virtual bool supportsFocus() const OVERRIDE FINAL; |
| 98 | 96 |
| 99 FieldOwner* m_fieldOwner; | 97 FieldOwner* m_fieldOwner; |
| 100 }; | 98 }; |
| 101 | 99 |
| 102 } // namespace WebCore | 100 } // namespace WebCore |
| 103 | 101 |
| 104 #endif | 102 #endif |
| 105 #endif | 103 #endif |
| OLD | NEW |