diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/inspector/ContentSearchUtilities.h | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/inspector/ContentSearchUtilities.h')
-rw-r--r-- | Source/JavaScriptCore/inspector/ContentSearchUtilities.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/inspector/ContentSearchUtilities.h b/Source/JavaScriptCore/inspector/ContentSearchUtilities.h index 0a5683304..3eaa06641 100644 --- a/Source/JavaScriptCore/inspector/ContentSearchUtilities.h +++ b/Source/JavaScriptCore/inspector/ContentSearchUtilities.h @@ -29,7 +29,9 @@ #ifndef ContentSearchUtilities_h #define ContentSearchUtilities_h -#include "InspectorProtocolObjects.h" +#if ENABLE(INSPECTOR) + +#include "InspectorJSTypeBuilders.h" #include <wtf/Vector.h> #include <wtf/text/TextPosition.h> #include <wtf/text/WTFString.h> @@ -44,14 +46,18 @@ namespace ContentSearchUtilities { JS_EXPORT_PRIVATE JSC::Yarr::RegularExpression createSearchRegex(const String& query, bool caseSensitive, bool isRegex); JS_EXPORT_PRIVATE int countRegularExpressionMatches(const JSC::Yarr::RegularExpression&, const String&); -JS_EXPORT_PRIVATE Ref<Inspector::Protocol::Array<Inspector::Protocol::GenericTypes::SearchMatch>> searchInTextByLines(const String& text, const String& query, const bool caseSensitive, const bool isRegex); +JS_EXPORT_PRIVATE PassRefPtr<Inspector::TypeBuilder::Array<Inspector::TypeBuilder::GenericTypes::SearchMatch>> searchInTextByLines(const String& text, const String& query, const bool caseSensitive, const bool isRegex); JS_EXPORT_PRIVATE TextPosition textPositionFromOffset(size_t offset, const Vector<size_t>& lineEndings); -JS_EXPORT_PRIVATE std::unique_ptr<Vector<size_t>> lineEndings(const String&); +JS_EXPORT_PRIVATE PassOwnPtr<Vector<size_t>> lineEndings(const String&); +JS_EXPORT_PRIVATE String findScriptSourceURL(const String& content); +JS_EXPORT_PRIVATE String findScriptSourceMapURL(const String& content); JS_EXPORT_PRIVATE String findStylesheetSourceMapURL(const String& content); } // namespace ContentSearchUtilities } // namespace Inspector +#endif // ENABLE(INSPECTOR) + #endif // !defined(ContentSearchUtilities_h) |