OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |