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

Side by Side Diff: Source/devtools/front_end/sdk/SearchConfig.js

Issue 340513003: DevTools: Add JSDoc for static methods, fix JSDoc types and induced errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {WebInspector.ProjectSearchConfig} 7 * @implements {WebInspector.ProjectSearchConfig}
8 * @param {string} query 8 * @param {string} query
9 * @param {boolean} ignoreCase 9 * @param {boolean} ignoreCase
10 * @param {boolean} isRegex 10 * @param {boolean} isRegex
11 */ 11 */
12 WebInspector.SearchConfig = function(query, ignoreCase, isRegex) 12 WebInspector.SearchConfig = function(query, ignoreCase, isRegex)
13 { 13 {
14 this._query = query; 14 this._query = query;
15 this._ignoreCase = ignoreCase; 15 this._ignoreCase = ignoreCase;
16 this._isRegex = isRegex; 16 this._isRegex = isRegex;
17 this._parse(); 17 this._parse();
18 } 18 }
19 19
20 /** @typedef {!{regex: !RegExp, isNegative: boolean}} */ 20 /** @typedef {!{regex: !RegExp, isNegative: boolean}} */
21 WebInspector.SearchConfig.RegexQuery; 21 WebInspector.SearchConfig.RegexQuery;
22 22
23 /** 23 /**
24 * @param {{query: string, ignoreCase: boolean, isRegex: boolean}} object 24 * @param {{query: string, ignoreCase: boolean, isRegex: boolean}} object
25 * @return {!WebInspector.SearchConfig}
25 */ 26 */
26 WebInspector.SearchConfig.fromPlainObject = function(object) 27 WebInspector.SearchConfig.fromPlainObject = function(object)
27 { 28 {
28 return new WebInspector.SearchConfig(object.query, object.ignoreCase, object .isRegex); 29 return new WebInspector.SearchConfig(object.query, object.ignoreCase, object .isRegex);
29 } 30 }
30 31
31 WebInspector.SearchConfig.prototype = { 32 WebInspector.SearchConfig.prototype = {
32 /** 33 /**
33 * @return {string} 34 * @return {string}
34 */ 35 */
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 /** 171 /**
171 * @constructor 172 * @constructor
172 * @param {string} text 173 * @param {string} text
173 * @param {boolean} isNegative 174 * @param {boolean} isNegative
174 */ 175 */
175 WebInspector.SearchConfig.QueryTerm = function(text, isNegative) 176 WebInspector.SearchConfig.QueryTerm = function(text, isNegative)
176 { 177 {
177 this.text = text; 178 this.text = text;
178 this.isNegative = isNegative; 179 this.isNegative = isNegative;
179 } 180 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698