| 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); | |
| 55 public: | 54 public: |
| 56 static PassOwnPtrWillBeRawPtr<TextFinder> create(WebLocalFrameImpl& ownerFra
me); | 55 static PassOwnPtrWillBeRawPtr<TextFinder> create(WebLocalFrameImpl& ownerFra
me); |
| 57 | 56 |
| 58 bool find( | 57 bool find( |
| 59 int identifier, const WebString& searchText, const WebFindOptions&, | 58 int identifier, const WebString& searchText, const WebFindOptions&, |
| 60 bool wrapWithinFrame, WebRect* selectionRect); | 59 bool wrapWithinFrame, WebRect* selectionRect); |
| 61 void stopFindingAndClearSelection(); | 60 void stopFindingAndClearSelection(); |
| 62 void scopeStringMatches( | 61 void scopeStringMatches( |
| 63 int identifier, const WebString& searchText, const WebFindOptions&, | 62 int identifier, const WebString& searchText, const WebFindOptions&, |
| 64 bool reset); | 63 bool reset); |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 // Determines if the rects in the find-in-page matches cache of this frame | 283 // Determines if the rects in the find-in-page matches cache of this frame |
| 285 // are invalid and should be recomputed. | 284 // are invalid and should be recomputed. |
| 286 bool m_findMatchRectsAreValid; | 285 bool m_findMatchRectsAreValid; |
| 287 }; | 286 }; |
| 288 | 287 |
| 289 } // namespace blink | 288 } // namespace blink |
| 290 | 289 |
| 291 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); | 290 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); |
| 292 | 291 |
| 293 #endif // TextFinder_h | 292 #endif // TextFinder_h |
| OLD | NEW |