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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1347 switch (marker->type()) { | 1347 switch (marker->type()) { |
1348 case DocumentMarker::Spelling: | 1348 case DocumentMarker::Spelling: |
1349 case DocumentMarker::Grammar: | 1349 case DocumentMarker::Grammar: |
1350 case DocumentMarker::TextMatch: | 1350 case DocumentMarker::TextMatch: |
1351 markerTypes.push_back(marker->type()); | 1351 markerTypes.push_back(marker->type()); |
1352 markerRanges.push_back( | 1352 markerRanges.push_back( |
1353 AXRange(marker->startOffset(), marker->endOffset())); | 1353 AXRange(marker->startOffset(), marker->endOffset())); |
1354 break; | 1354 break; |
1355 case DocumentMarker::InvisibleSpellcheck: | 1355 case DocumentMarker::InvisibleSpellcheck: |
1356 case DocumentMarker::Composition: | 1356 case DocumentMarker::Composition: |
| 1357 case DocumentMarker::Suggestion: |
| 1358 case DocumentMarker::SuggestionBackgroundHighlight: |
1357 // No need for accessibility to know about these marker types. | 1359 // No need for accessibility to know about these marker types. |
1358 break; | 1360 break; |
1359 } | 1361 } |
1360 } | 1362 } |
1361 } | 1363 } |
1362 | 1364 |
1363 AccessibilityOrientation AXNodeObject::orientation() const { | 1365 AccessibilityOrientation AXNodeObject::orientation() const { |
1364 const AtomicString& ariaOrientation = getAttribute(aria_orientationAttr); | 1366 const AtomicString& ariaOrientation = getAttribute(aria_orientationAttr); |
1365 AccessibilityOrientation orientation = AccessibilityOrientationUndefined; | 1367 AccessibilityOrientation orientation = AccessibilityOrientationUndefined; |
1366 if (equalIgnoringCase(ariaOrientation, "horizontal")) | 1368 if (equalIgnoringCase(ariaOrientation, "horizontal")) |
(...skipping 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3072 return String(); | 3074 return String(); |
3073 return toTextControlElement(node)->strippedPlaceholder(); | 3075 return toTextControlElement(node)->strippedPlaceholder(); |
3074 } | 3076 } |
3075 | 3077 |
3076 DEFINE_TRACE(AXNodeObject) { | 3078 DEFINE_TRACE(AXNodeObject) { |
3077 visitor->trace(m_node); | 3079 visitor->trace(m_node); |
3078 AXObject::trace(visitor); | 3080 AXObject::trace(visitor); |
3079 } | 3081 } |
3080 | 3082 |
3081 } // namespace blink | 3083 } // namespace blink |
OLD | NEW |