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

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

Issue 1676083002: Extract webkit_unit_tests from blink_web component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move the word public, for consistency Created 4 years, 9 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
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 20 matching lines...) Expand all
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"
41 #include "wtf/PassOwnPtr.h" 42 #include "wtf/PassOwnPtr.h"
42 #include "wtf/PassRefPtr.h" 43 #include "wtf/PassRefPtr.h"
43 #include "wtf/Vector.h" 44 #include "wtf/Vector.h"
44 #include "wtf/text/WTFString.h" 45 #include "wtf/text/WTFString.h"
45 46
46 namespace blink { 47 namespace blink {
47 48
48 class Range; 49 class Range;
49 class WebLocalFrameImpl; 50 class WebLocalFrameImpl;
50 51
51 template <typename T> class WebVector; 52 template <typename T> class WebVector;
52 53
53 class TextFinder final : public NoBaseWillBeGarbageCollectedFinalized<TextFinder > { 54 class WEB_EXPORT TextFinder final : public NoBaseWillBeGarbageCollectedFinalized <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, bool* activeNow = nullptr) ; 60 bool wrapWithinFrame, WebRect* selectionRect, bool* activeNow = nullptr) ;
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Determines if the rects in the find-in-page matches cache of this frame 280 // Determines if the rects in the find-in-page matches cache of this frame
280 // are invalid and should be recomputed. 281 // are invalid and should be recomputed.
281 bool m_findMatchRectsAreValid; 282 bool m_findMatchRectsAreValid;
282 }; 283 };
283 284
284 } // namespace blink 285 } // namespace blink
285 286
286 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); 287 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch);
287 288
288 #endif // TextFinder_h 289 #endif // TextFinder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698