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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesSearchScope.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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) 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 16 matching lines...) Expand all
27 */ 27 */
28 28
29 /** 29 /**
30 * @constructor 30 * @constructor
31 * @implements {WebInspector.SearchScope} 31 * @implements {WebInspector.SearchScope}
32 */ 32 */
33 WebInspector.SourcesSearchScope = function() 33 WebInspector.SourcesSearchScope = function()
34 { 34 {
35 // FIXME: Add title once it is used by search controller. 35 // FIXME: Add title once it is used by search controller.
36 this._searchId = 0; 36 this._searchId = 0;
37 } 37 };
38 38
39 /** 39 /**
40 * @param {!WebInspector.UISourceCode} uiSourceCode1 40 * @param {!WebInspector.UISourceCode} uiSourceCode1
41 * @param {!WebInspector.UISourceCode} uiSourceCode2 41 * @param {!WebInspector.UISourceCode} uiSourceCode2
42 * @return {number} 42 * @return {number}
43 */ 43 */
44 WebInspector.SourcesSearchScope._filesComparator = function(uiSourceCode1, uiSou rceCode2) 44 WebInspector.SourcesSearchScope._filesComparator = function(uiSourceCode1, uiSou rceCode2)
45 { 45 {
46 if (uiSourceCode1.isDirty() && !uiSourceCode2.isDirty()) 46 if (uiSourceCode1.isDirty() && !uiSourceCode2.isDirty())
47 return -1; 47 return -1;
48 if (!uiSourceCode1.isDirty() && uiSourceCode2.isDirty()) 48 if (!uiSourceCode1.isDirty() && uiSourceCode2.isDirty())
49 return 1; 49 return 1;
50 var url1 = uiSourceCode1.url(); 50 var url1 = uiSourceCode1.url();
51 var url2 = uiSourceCode2.url(); 51 var url2 = uiSourceCode2.url();
52 if (url1 && !url2) 52 if (url1 && !url2)
53 return -1; 53 return -1;
54 if (!url1 && url2) 54 if (!url1 && url2)
55 return 1; 55 return 1;
56 return String.naturalOrderComparator(uiSourceCode1.fullDisplayName(), uiSour ceCode2.fullDisplayName()); 56 return String.naturalOrderComparator(uiSourceCode1.fullDisplayName(), uiSour ceCode2.fullDisplayName());
57 } 57 };
58 58
59 59
60 WebInspector.SourcesSearchScope.prototype = { 60 WebInspector.SourcesSearchScope.prototype = {
61 /** 61 /**
62 * @override 62 * @override
63 * @param {!WebInspector.Progress} progress 63 * @param {!WebInspector.Progress} progress
64 */ 64 */
65 performIndexing: function(progress) 65 performIndexing: function(progress)
66 { 66 {
67 this.stopSearch(); 67 this.stopSearch();
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 /** 305 /**
306 * @override 306 * @override
307 * @param {!WebInspector.ProjectSearchConfig} searchConfig 307 * @param {!WebInspector.ProjectSearchConfig} searchConfig
308 * @return {!WebInspector.FileBasedSearchResultsPane} 308 * @return {!WebInspector.FileBasedSearchResultsPane}
309 */ 309 */
310 createSearchResultsPane: function(searchConfig) 310 createSearchResultsPane: function(searchConfig)
311 { 311 {
312 return new WebInspector.FileBasedSearchResultsPane(searchConfig); 312 return new WebInspector.FileBasedSearchResultsPane(searchConfig);
313 } 313 }
314 } 314 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698