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: | |
rlanday
2017/06/05 19:25:05
dmazzoni@: is there anything else I need to do to
| |
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 // No need for accessibility to know about these marker types. | 1423 // No need for accessibility to know about these marker types. |
1423 break; | 1424 break; |
1424 } | 1425 } |
1425 } | 1426 } |
1426 } | 1427 } |
(...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3212 return String(); | 3213 return String(); |
3213 return ToTextControlElement(node)->StrippedPlaceholder(); | 3214 return ToTextControlElement(node)->StrippedPlaceholder(); |
3214 } | 3215 } |
3215 | 3216 |
3216 DEFINE_TRACE(AXNodeObject) { | 3217 DEFINE_TRACE(AXNodeObject) { |
3217 visitor->Trace(node_); | 3218 visitor->Trace(node_); |
3218 AXObjectImpl::Trace(visitor); | 3219 AXObjectImpl::Trace(visitor); |
3219 } | 3220 } |
3220 | 3221 |
3221 } // namespace blink | 3222 } // namespace blink |
OLD | NEW |