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 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 marker_types.push_back(marker->GetType()); | 1417 marker_types.push_back(marker->GetType()); |
1418 marker_ranges.push_back( | 1418 marker_ranges.push_back( |
1419 AXRange(marker->StartOffset(), marker->EndOffset())); | 1419 AXRange(marker->StartOffset(), marker->EndOffset())); |
1420 break; | 1420 break; |
1421 case DocumentMarker::kComposition: | 1421 case DocumentMarker::kComposition: |
| 1422 // TODO(rlanday): add accessibility support for kActiveSuggestion |
| 1423 case DocumentMarker::kActiveSuggestion: |
1422 // No need for accessibility to know about these marker types. | 1424 // No need for accessibility to know about these marker types. |
1423 break; | 1425 break; |
1424 } | 1426 } |
1425 } | 1427 } |
1426 } | 1428 } |
1427 | 1429 |
1428 AXObjectImpl* AXNodeObject::InPageLinkTarget() const { | 1430 AXObjectImpl* AXNodeObject::InPageLinkTarget() const { |
1429 if (!node_ || !isHTMLAnchorElement(node_) || !GetDocument()) | 1431 if (!node_ || !isHTMLAnchorElement(node_) || !GetDocument()) |
1430 return AXObjectImpl::InPageLinkTarget(); | 1432 return AXObjectImpl::InPageLinkTarget(); |
1431 | 1433 |
(...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3212 return String(); | 3214 return String(); |
3213 return ToTextControlElement(node)->StrippedPlaceholder(); | 3215 return ToTextControlElement(node)->StrippedPlaceholder(); |
3214 } | 3216 } |
3215 | 3217 |
3216 DEFINE_TRACE(AXNodeObject) { | 3218 DEFINE_TRACE(AXNodeObject) { |
3217 visitor->Trace(node_); | 3219 visitor->Trace(node_); |
3218 AXObjectImpl::Trace(visitor); | 3220 AXObjectImpl::Trace(visitor); |
3219 } | 3221 } |
3220 | 3222 |
3221 } // namespace blink | 3223 } // namespace blink |
OLD | NEW |