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

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

Issue 1328773002: Make classes and structures in web fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/web/StorageQuotaClientImpl.h ('k') | Source/web/UserMediaClientImpl.h » ('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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "wtf/text/WTFString.h" 44 #include "wtf/text/WTFString.h"
45 45
46 namespace blink { 46 namespace blink {
47 47
48 class Range; 48 class Range;
49 class WebLocalFrameImpl; 49 class WebLocalFrameImpl;
50 50
51 template <typename T> class WebVector; 51 template <typename T> class WebVector;
52 52
53 class TextFinder final : public NoBaseWillBeGarbageCollectedFinalized<TextFinder > { 53 class TextFinder final : public NoBaseWillBeGarbageCollectedFinalized<TextFinder > {
54 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(TextFinder);
54 public: 55 public:
55 static PassOwnPtrWillBeRawPtr<TextFinder> create(WebLocalFrameImpl& ownerFra me); 56 static PassOwnPtrWillBeRawPtr<TextFinder> create(WebLocalFrameImpl& ownerFra me);
56 57
57 bool find( 58 bool find(
58 int identifier, const WebString& searchText, const WebFindOptions&, 59 int identifier, const WebString& searchText, const WebFindOptions&,
59 bool wrapWithinFrame, WebRect* selectionRect); 60 bool wrapWithinFrame, WebRect* selectionRect);
60 void stopFindingAndClearSelection(); 61 void stopFindingAndClearSelection();
61 void scopeStringMatches( 62 void scopeStringMatches(
62 int identifier, const WebString& searchText, const WebFindOptions&, 63 int identifier, const WebString& searchText, const WebFindOptions&,
63 bool reset); 64 bool reset);
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // Determines if the rects in the find-in-page matches cache of this frame 284 // Determines if the rects in the find-in-page matches cache of this frame
284 // are invalid and should be recomputed. 285 // are invalid and should be recomputed.
285 bool m_findMatchRectsAreValid; 286 bool m_findMatchRectsAreValid;
286 }; 287 };
287 288
288 } // namespace blink 289 } // namespace blink
289 290
290 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); 291 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch);
291 292
292 #endif // TextFinder_h 293 #endif // TextFinder_h
OLDNEW
« no previous file with comments | « Source/web/StorageQuotaClientImpl.h ('k') | Source/web/UserMediaClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698