| 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef TextFinder_h | 31 #ifndef TextFinder_h |
| 32 #define TextFinder_h | 32 #define TextFinder_h |
| 33 | 33 |
| 34 #include "core/editing/FindOptions.h" | 34 #include "core/editing/FindOptions.h" |
| 35 #include "platform/geometry/FloatRect.h" | 35 #include "platform/geometry/FloatRect.h" |
| 36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 37 #include "public/platform/WebFloatPoint.h" | 37 #include "public/platform/WebFloatPoint.h" |
| 38 #include "public/platform/WebFloatRect.h" | 38 #include "public/platform/WebFloatRect.h" |
| 39 #include "public/platform/WebRect.h" | 39 #include "public/platform/WebRect.h" |
| 40 #include "public/web/WebFindOptions.h" | 40 #include "public/web/WebFindOptions.h" |
| 41 #include "web/WebExport.h" | |
| 42 #include "wtf/PassOwnPtr.h" | 41 #include "wtf/PassOwnPtr.h" |
| 43 #include "wtf/PassRefPtr.h" | 42 #include "wtf/PassRefPtr.h" |
| 44 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
| 45 #include "wtf/text/WTFString.h" | 44 #include "wtf/text/WTFString.h" |
| 46 | 45 |
| 47 namespace blink { | 46 namespace blink { |
| 48 | 47 |
| 49 class Range; | 48 class Range; |
| 50 class WebLocalFrameImpl; | 49 class WebLocalFrameImpl; |
| 51 | 50 |
| 52 template <typename T> class WebVector; | 51 template <typename T> class WebVector; |
| 53 | 52 |
| 54 class WEB_EXPORT TextFinder final : public NoBaseWillBeGarbageCollectedFinalized
<TextFinder> { | 53 class TextFinder final : public NoBaseWillBeGarbageCollectedFinalized<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, bool* activeNow = nullptr)
; | 59 bool wrapWithinFrame, WebRect* selectionRect, bool* activeNow = nullptr)
; |
| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // Determines if the rects in the find-in-page matches cache of this frame | 279 // Determines if the rects in the find-in-page matches cache of this frame |
| 281 // are invalid and should be recomputed. | 280 // are invalid and should be recomputed. |
| 282 bool m_findMatchRectsAreValid; | 281 bool m_findMatchRectsAreValid; |
| 283 }; | 282 }; |
| 284 | 283 |
| 285 } // namespace blink | 284 } // namespace blink |
| 286 | 285 |
| 287 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); | 286 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); |
| 288 | 287 |
| 289 #endif // TextFinder_h | 288 #endif // TextFinder_h |
| OLD | NEW |