| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 m_fieldOwner->didFocusOnField(); | 133 m_fieldOwner->didFocusOnField(); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void DateTimeFieldElement::focusOnNextField() | 136 void DateTimeFieldElement::focusOnNextField() |
| 137 { | 137 { |
| 138 if (!m_fieldOwner) | 138 if (!m_fieldOwner) |
| 139 return; | 139 return; |
| 140 m_fieldOwner->focusOnNextField(*this); | 140 m_fieldOwner->focusOnNextField(*this); |
| 141 } | 141 } |
| 142 | 142 |
| 143 void DateTimeFieldElement::initialize(const AtomicString& pseudo, const String&
axHelpText) | 143 void DateTimeFieldElement::initialize(const AtomicString& pseudo, const String&
axHelpText, int axMinimum, int axMaximum) |
| 144 { | 144 { |
| 145 setAttribute(aria_helpAttr, axHelpText); | 145 setAttribute(aria_helpAttr, axHelpText); |
| 146 setAttribute(aria_valueminAttr, String::number(minimum())); | 146 setAttribute(aria_valueminAttr, String::number(axMinimum)); |
| 147 setAttribute(aria_valuemaxAttr, String::number(maximum())); | 147 setAttribute(aria_valuemaxAttr, String::number(axMaximum)); |
| 148 setPseudo(pseudo); | 148 setPseudo(pseudo); |
| 149 appendChild(Text::create(document(), visibleValue())); | 149 appendChild(Text::create(document(), visibleValue())); |
| 150 } | 150 } |
| 151 | 151 |
| 152 bool DateTimeFieldElement::isDateTimeFieldElement() const | 152 bool DateTimeFieldElement::isDateTimeFieldElement() const |
| 153 { | 153 { |
| 154 return true; | 154 return true; |
| 155 } | 155 } |
| 156 | 156 |
| 157 bool DateTimeFieldElement::isFocusable() const | 157 bool DateTimeFieldElement::isFocusable() const |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 setAttribute(aria_valuetextAttr, hasValue() ? newVisibleValue : AXDateTimeFi
eldEmptyValueText()); | 209 setAttribute(aria_valuetextAttr, hasValue() ? newVisibleValue : AXDateTimeFi
eldEmptyValueText()); |
| 210 setAttribute(aria_valuenowAttr, newVisibleValue); | 210 setAttribute(aria_valuenowAttr, newVisibleValue); |
| 211 | 211 |
| 212 if (eventBehavior == DispatchEvent && m_fieldOwner) | 212 if (eventBehavior == DispatchEvent && m_fieldOwner) |
| 213 m_fieldOwner->fieldValueChanged(); | 213 m_fieldOwner->fieldValueChanged(); |
| 214 } | 214 } |
| 215 | 215 |
| 216 } // namespace WebCore | 216 } // namespace WebCore |
| 217 | 217 |
| 218 #endif | 218 #endif |
| OLD | NEW |