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

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: Win dbg non-oilpan fix: make TextFinder non-copyable 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"
42 #include "wtf/Noncopyable.h"
41 #include "wtf/PassOwnPtr.h" 43 #include "wtf/PassOwnPtr.h"
42 #include "wtf/PassRefPtr.h" 44 #include "wtf/PassRefPtr.h"
43 #include "wtf/Vector.h" 45 #include "wtf/Vector.h"
44 #include "wtf/text/WTFString.h" 46 #include "wtf/text/WTFString.h"
45 47
46 namespace blink { 48 namespace blink {
47 49
48 class Range; 50 class Range;
49 class WebLocalFrameImpl; 51 class WebLocalFrameImpl;
50 52
51 template <typename T> class WebVector; 53 template <typename T> class WebVector;
52 54
53 class TextFinder final : public NoBaseWillBeGarbageCollectedFinalized<TextFinder > { 55 class WEB_EXPORT TextFinder final : public NoBaseWillBeGarbageCollectedFinalized <TextFinder> {
56 WTF_MAKE_NONCOPYABLE(TextFinder);
54 public: 57 public:
55 static PassOwnPtrWillBeRawPtr<TextFinder> create(WebLocalFrameImpl& ownerFra me); 58 static PassOwnPtrWillBeRawPtr<TextFinder> create(WebLocalFrameImpl& ownerFra me);
56 59
57 bool find( 60 bool find(
58 int identifier, const WebString& searchText, const WebFindOptions&, 61 int identifier, const WebString& searchText, const WebFindOptions&,
59 bool wrapWithinFrame, WebRect* selectionRect, bool* activeNow = nullptr) ; 62 bool wrapWithinFrame, WebRect* selectionRect, bool* activeNow = nullptr) ;
60 void stopFindingAndClearSelection(); 63 void stopFindingAndClearSelection();
61 void scopeStringMatches( 64 void scopeStringMatches(
62 int identifier, const WebString& searchText, const WebFindOptions&, 65 int identifier, const WebString& searchText, const WebFindOptions&,
63 bool reset); 66 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 282 // Determines if the rects in the find-in-page matches cache of this frame
280 // are invalid and should be recomputed. 283 // are invalid and should be recomputed.
281 bool m_findMatchRectsAreValid; 284 bool m_findMatchRectsAreValid;
282 }; 285 };
283 286
284 } // namespace blink 287 } // namespace blink
285 288
286 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch); 289 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TextFinder::FindMatch);
287 290
288 #endif // TextFinder_h 291 #endif // TextFinder_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/PageWidgetDelegate.h ('k') | third_party/WebKit/Source/web/WebExport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698