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

Side by Side Diff: Source/web/TextFinder.h

Issue 696533003: Expose accessibility information about find in page results to the client. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | Source/web/TextFinder.cpp » ('j') | 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 private: 110 private:
111 class DeferredScopeStringMatches; 111 class DeferredScopeStringMatches;
112 friend class DeferredScopeStringMatches; 112 friend class DeferredScopeStringMatches;
113 113
114 explicit TextFinder(WebLocalFrameImpl& ownerFrame); 114 explicit TextFinder(WebLocalFrameImpl& ownerFrame);
115 115
116 // Notifies the delegate about a new selection rect. 116 // Notifies the delegate about a new selection rect.
117 void reportFindInPageSelection( 117 void reportFindInPageSelection(
118 const WebRect& selectionRect, int activeMatchOrdinal, int identifier); 118 const WebRect& selectionRect, int activeMatchOrdinal, int identifier);
119 119
120 void reportFindInPageResultToAccessibility(int identifier);
121
120 // Clear the find-in-page matches cache forcing rects to be fully 122 // Clear the find-in-page matches cache forcing rects to be fully
121 // calculated again next time updateFindMatchRects is called. 123 // calculated again next time updateFindMatchRects is called.
122 void clearFindMatchesCache(); 124 void clearFindMatchesCache();
123 125
124 // Check if the activeMatchFrame still exists in the frame tree. 126 // Check if the activeMatchFrame still exists in the frame tree.
125 bool isActiveMatchFrameValid() const; 127 bool isActiveMatchFrameValid() const;
126 128
127 // Return the index in the find-in-page cache of the match closest to the 129 // Return the index in the find-in-page cache of the match closest to the
128 // provided point in find-in-page coordinates, or -1 in case of error. 130 // provided point in find-in-page coordinates, or -1 in case of error.
129 // The squared distance to the closest match is returned in the distanceSqua red parameter. 131 // The squared distance to the closest match is returned in the distanceSqua red parameter.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Determines if the rects in the find-in-page matches cache of this frame 275 // Determines if the rects in the find-in-page matches cache of this frame
274 // are invalid and should be recomputed. 276 // are invalid and should be recomputed.
275 bool m_findMatchRectsAreValid; 277 bool m_findMatchRectsAreValid;
276 }; 278 };
277 279
278 } // namespace blink 280 } // namespace blink
279 281
280 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); 282 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch);
281 283
282 #endif // TextFinder_h 284 #endif // TextFinder_h
OLDNEW
« no previous file with comments | « no previous file | Source/web/TextFinder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698