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

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

Issue 2363993003: Revert of Handling new frames and frame navigations with find-in-page during a find session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 2 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 | « content/common/frame_messages.h ('k') | third_party/WebKit/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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // one such marker found. 160 // one such marker found.
161 bool setMarkerActive(Range*, bool active); 161 bool setMarkerActive(Range*, bool active);
162 162
163 // Removes all markers. 163 // Removes all markers.
164 void unmarkAllTextMatches(); 164 void unmarkAllTextMatches();
165 165
166 // Determines whether the scoping effort is required for a particular frame. 166 // Determines whether the scoping effort is required for a particular frame.
167 // It is not necessary if the frame is invisible, for example, or if this 167 // It is not necessary if the frame is invisible, for example, or if this
168 // is a repeat search that already returned nothing last time the same prefi x 168 // is a repeat search that already returned nothing last time the same prefi x
169 // was searched. 169 // was searched.
170 bool shouldScopeMatches(const WTF::String& searchText, const WebFindOptions& ); 170 bool shouldScopeMatches(const WTF::String& searchText);
171 171
172 // Removes the current frame from the global scoping effort and triggers any 172 // Removes the current frame from the global scoping effort and triggers any
173 // updates if appropriate. This method does not mark the scoping operation 173 // updates if appropriate. This method does not mark the scoping operation
174 // as finished. 174 // as finished.
175 void flushCurrentScopingEffort(int identifier); 175 void flushCurrentScopingEffort(int identifier);
176 176
177 // Finishes the current scoping effort and triggers any updates if appropria te. 177 // Finishes the current scoping effort and triggers any updates if appropria te.
178 void finishCurrentScopingEffort(int identifier); 178 void finishCurrentScopingEffort(int identifier);
179 179
180 // Queue up a deferred call to scopeStringMatches. 180 // Queue up a deferred call to scopeStringMatches.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 // Determines if the rects in the find-in-page matches cache of this frame 269 // Determines if the rects in the find-in-page matches cache of this frame
270 // are invalid and should be recomputed. 270 // are invalid and should be recomputed.
271 bool m_findMatchRectsAreValid; 271 bool m_findMatchRectsAreValid;
272 }; 272 };
273 273
274 } // namespace blink 274 } // namespace blink
275 275
276 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); 276 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch);
277 277
278 #endif // TextFinder_h 278 #endif // TextFinder_h
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | third_party/WebKit/Source/web/TextFinder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698