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