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

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

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Uploading the latest version from my repo so I can reference it Created 3 years, 7 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 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 case DocumentMarker::Spelling: 1445 case DocumentMarker::Spelling:
1446 case DocumentMarker::Grammar: 1446 case DocumentMarker::Grammar:
1447 case DocumentMarker::TextMatch: 1447 case DocumentMarker::TextMatch:
1448 case DocumentMarker::Suggestion: 1448 case DocumentMarker::Suggestion:
1449 case DocumentMarker::SuggestionHighlight: 1449 case DocumentMarker::SuggestionHighlight:
1450 markerTypes.push_back(marker->type()); 1450 markerTypes.push_back(marker->type());
1451 markerRanges.push_back( 1451 markerRanges.push_back(
1452 AXRange(marker->startOffset(), marker->endOffset())); 1452 AXRange(marker->startOffset(), marker->endOffset()));
1453 break; 1453 break;
1454 case DocumentMarker::Composition: 1454 case DocumentMarker::Composition:
1455 case DocumentMarker::Suggestion:
1456 case DocumentMarker::SuggestionHighlight:
1455 // No need for accessibility to know about these marker types. 1457 // No need for accessibility to know about these marker types.
1456 break; 1458 break;
1457 } 1459 }
1458 } 1460 }
1459 } 1461 }
1460 1462
1461 AXObject* AXNodeObject::inPageLinkTarget() const { 1463 AXObject* AXNodeObject::inPageLinkTarget() const {
1462 if (!m_node || !isHTMLAnchorElement(m_node) || !getDocument()) 1464 if (!m_node || !isHTMLAnchorElement(m_node) || !getDocument())
1463 return AXObject::inPageLinkTarget(); 1465 return AXObject::inPageLinkTarget();
1464 1466
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
3263 return String(); 3265 return String();
3264 return toTextControlElement(node)->strippedPlaceholder(); 3266 return toTextControlElement(node)->strippedPlaceholder();
3265 } 3267 }
3266 3268
3267 DEFINE_TRACE(AXNodeObject) { 3269 DEFINE_TRACE(AXNodeObject) {
3268 visitor->trace(m_node); 3270 visitor->trace(m_node);
3269 AXObject::trace(visitor); 3271 AXObject::trace(visitor);
3270 } 3272 }
3271 3273
3272 } // namespace blink 3274 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/ModulesInitializer.cpp ('k') | third_party/WebKit/Source/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698