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

Side by Side Diff: third_party/WebKit/Source/web/TextFinder.cpp

Issue 2238613002: Support output for Chrome's native find in ChromeVox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@text_markers
Patch Set: Don't forget to bit shift in SendTreeChanges (checking against cached overall tree filter). Created 4 years, 4 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
« no previous file with comments | « chrome/renderer/resources/extensions/automation/automation_node.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 AXObjectCacheImpl* axObjectCache = toAXObjectCacheImpl(ownerFrame().frame()- >document()->existingAXObjectCache()); 231 AXObjectCacheImpl* axObjectCache = toAXObjectCacheImpl(ownerFrame().frame()- >document()->existingAXObjectCache());
232 if (!axObjectCache) 232 if (!axObjectCache)
233 return; 233 return;
234 234
235 AXObject* startObject = axObjectCache->get(m_activeMatch->startContainer()); 235 AXObject* startObject = axObjectCache->get(m_activeMatch->startContainer());
236 AXObject* endObject = axObjectCache->get(m_activeMatch->endContainer()); 236 AXObject* endObject = axObjectCache->get(m_activeMatch->endContainer());
237 if (!startObject || !endObject) 237 if (!startObject || !endObject)
238 return; 238 return;
239 239
240 // Notify the client of new text marker data.
241 axObjectCache->postNotification(startObject, AXObjectCache::AXNotification:: AXChildrenChanged);
242 if (startObject != endObject)
243 axObjectCache->postNotification(endObject, AXObjectCache::AXNotification ::AXChildrenChanged);
244
240 if (ownerFrame().client()) { 245 if (ownerFrame().client()) {
241 ownerFrame().client()->handleAccessibilityFindInPageResult( 246 ownerFrame().client()->handleAccessibilityFindInPageResult(
242 identifier, m_activeMatchIndex + 1, 247 identifier, m_activeMatchIndex + 1,
243 WebAXObject(startObject), m_activeMatch->startOffset(), 248 WebAXObject(startObject), m_activeMatch->startOffset(),
244 WebAXObject(endObject), m_activeMatch->endOffset()); 249 WebAXObject(endObject), m_activeMatch->endOffset());
245 } 250 }
246 } 251 }
247 252
248 void TextFinder::scopeStringMatches(int identifier, const WebString& searchText, const WebFindOptions& options, bool reset) 253 void TextFinder::scopeStringMatches(int identifier, const WebString& searchText, const WebFindOptions& options, bool reset)
249 { 254 {
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 DEFINE_TRACE(TextFinder) 739 DEFINE_TRACE(TextFinder)
735 { 740 {
736 visitor->trace(m_ownerFrame); 741 visitor->trace(m_ownerFrame);
737 visitor->trace(m_activeMatch); 742 visitor->trace(m_activeMatch);
738 visitor->trace(m_resumeScopingFromRange); 743 visitor->trace(m_resumeScopingFromRange);
739 visitor->trace(m_deferredScopingWork); 744 visitor->trace(m_deferredScopingWork);
740 visitor->trace(m_findMatchesCache); 745 visitor->trace(m_findMatchesCache);
741 } 746 }
742 747
743 } // namespace blink 748 } // namespace blink
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extensions/automation/automation_node.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698