| 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 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 return; | 1407 return; |
| 1408 | 1408 |
| 1409 DocumentMarkerController& marker_controller = GetDocument()->Markers(); | 1409 DocumentMarkerController& marker_controller = GetDocument()->Markers(); |
| 1410 DocumentMarkerVector markers = marker_controller.MarkersFor(GetNode()); | 1410 DocumentMarkerVector markers = marker_controller.MarkersFor(GetNode()); |
| 1411 for (size_t i = 0; i < markers.size(); ++i) { | 1411 for (size_t i = 0; i < markers.size(); ++i) { |
| 1412 DocumentMarker* marker = markers[i]; | 1412 DocumentMarker* marker = markers[i]; |
| 1413 switch (marker->GetType()) { | 1413 switch (marker->GetType()) { |
| 1414 case DocumentMarker::kSpelling: | 1414 case DocumentMarker::kSpelling: |
| 1415 case DocumentMarker::kGrammar: | 1415 case DocumentMarker::kGrammar: |
| 1416 case DocumentMarker::kTextMatch: | 1416 case DocumentMarker::kTextMatch: |
| 1417 case DocumentMarker::kActiveSuggestion: |
| 1417 marker_types.push_back(marker->GetType()); | 1418 marker_types.push_back(marker->GetType()); |
| 1418 marker_ranges.push_back( | 1419 marker_ranges.push_back( |
| 1419 AXRange(marker->StartOffset(), marker->EndOffset())); | 1420 AXRange(marker->StartOffset(), marker->EndOffset())); |
| 1420 break; | 1421 break; |
| 1421 case DocumentMarker::kComposition: | 1422 case DocumentMarker::kComposition: |
| 1422 // TODO(rlanday): add accessibility support for kActiveSuggestion | |
| 1423 case DocumentMarker::kActiveSuggestion: | |
| 1424 // No need for accessibility to know about these marker types. | 1423 // No need for accessibility to know about these marker types. |
| 1425 break; | 1424 break; |
| 1426 } | 1425 } |
| 1427 } | 1426 } |
| 1428 } | 1427 } |
| 1429 | 1428 |
| 1430 AXObjectImpl* AXNodeObject::InPageLinkTarget() const { | 1429 AXObjectImpl* AXNodeObject::InPageLinkTarget() const { |
| 1431 if (!node_ || !isHTMLAnchorElement(node_) || !GetDocument()) | 1430 if (!node_ || !isHTMLAnchorElement(node_) || !GetDocument()) |
| 1432 return AXObjectImpl::InPageLinkTarget(); | 1431 return AXObjectImpl::InPageLinkTarget(); |
| 1433 | 1432 |
| (...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3214 return String(); | 3213 return String(); |
| 3215 return ToTextControlElement(node)->StrippedPlaceholder(); | 3214 return ToTextControlElement(node)->StrippedPlaceholder(); |
| 3216 } | 3215 } |
| 3217 | 3216 |
| 3218 DEFINE_TRACE(AXNodeObject) { | 3217 DEFINE_TRACE(AXNodeObject) { |
| 3219 visitor->Trace(node_); | 3218 visitor->Trace(node_); |
| 3220 AXObjectImpl::Trace(visitor); | 3219 AXObjectImpl::Trace(visitor); |
| 3221 } | 3220 } |
| 3222 | 3221 |
| 3223 } // namespace blink | 3222 } // namespace blink |
| OLD | NEW |