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

Side by Side Diff: Source/core/inspector/ContentSearchUtils.h

Issue 15832007: DevTools: Add support for //# sourceURL (sourceMappingURL) comments and deprecate //@ ones (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 JavaScriptMagicComment, 47 JavaScriptMagicComment,
48 CSSMagicComment 48 CSSMagicComment
49 }; 49 };
50 50
51 PassOwnPtr<RegularExpression> createSearchRegex(const String& query, bool caseSe nsitive, bool isRegex); 51 PassOwnPtr<RegularExpression> createSearchRegex(const String& query, bool caseSe nsitive, bool isRegex);
52 int countRegularExpressionMatches(const RegularExpression*, const String&); 52 int countRegularExpressionMatches(const RegularExpression*, const String&);
53 PassRefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> > searchInTextByLi nes(const String& text, const String& query, const bool caseSensitive, const boo l isRegex); 53 PassRefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> > searchInTextByLi nes(const String& text, const String& query, const bool caseSensitive, const boo l isRegex);
54 TextPosition textPositionFromOffset(size_t offset, const Vector<size_t>& lineEnd ings); 54 TextPosition textPositionFromOffset(size_t offset, const Vector<size_t>& lineEnd ings);
55 PassOwnPtr<Vector<size_t> > lineEndings(const String&); 55 PassOwnPtr<Vector<size_t> > lineEndings(const String&);
56 56
57 String findSourceURL(const String& content, MagicCommentType); 57 String findSourceURL(const String& content, MagicCommentType, bool* deprecated);
58 String findSourceMapURL(const String& content, MagicCommentType); 58 String findSourceMapURL(const String& content, MagicCommentType, bool* deprecate d);
59 59
60 } // namespace ContentSearchUtils 60 } // namespace ContentSearchUtils
61 } // namespace WebCore 61 } // namespace WebCore
62 62
63 63
64 #endif // !defined(ContentSearchUtils_h) 64 #endif // !defined(ContentSearchUtils_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698