Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp

Issue 2923033002: [ActiveSuggestionMarker #2] Add ActiveSuggestionMarker (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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:
yosin_UTC9 2017/06/06 01:27:48 I think this case should be added when clients of
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698