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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: 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 // 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 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.AdvancedSearchView = function() 9 WebInspector.AdvancedSearchView = function()
10 { 10 {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 this._search.value = queryCandidate; 77 this._search.value = queryCandidate;
78 78
79 if (this.isShowing()) 79 if (this.isShowing())
80 this.focus(); 80 this.focus();
81 else 81 else
82 this._focusOnShow = true; 82 this._focusOnShow = true;
83 83
84 this._startIndexing(); 84 this._startIndexing();
85 }, 85 },
86 86
87 /**
88 * @override
89 */
87 wasShown: function() 90 wasShown: function()
88 { 91 {
89 if (this._focusOnShow) { 92 if (this._focusOnShow) {
90 this.focus(); 93 this.focus();
91 delete this._focusOnShow; 94 delete this._focusOnShow;
92 } 95 }
93 }, 96 },
94 97
95 _onIndexingFinished: function() 98 _onIndexingFinished: function()
96 { 99 {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 }, 281 },
279 282
280 /** 283 /**
281 * @param {boolean} finished 284 * @param {boolean} finished
282 */ 285 */
283 _searchFinished: function(finished) 286 _searchFinished: function(finished)
284 { 287 {
285 this._searchMessageElement.textContent = finished ? WebInspector.UIStrin g("Search finished.") : WebInspector.UIString("Search interrupted."); 288 this._searchMessageElement.textContent = finished ? WebInspector.UIStrin g("Search finished.") : WebInspector.UIString("Search interrupted.");
286 }, 289 },
287 290
291 /**
292 * @override
293 */
288 focus: function() 294 focus: function()
289 { 295 {
290 this._search.focus(); 296 this._search.focus();
291 this._search.select(); 297 this._search.select();
292 }, 298 },
293 299
300 /**
301 * @override
302 */
294 willHide: function() 303 willHide: function()
295 { 304 {
296 this._stopSearch(); 305 this._stopSearch();
297 }, 306 },
298 307
299 /** 308 /**
300 * @param {!Event} event 309 * @param {!Event} event
301 */ 310 */
302 _onKeyDown: function(event) 311 _onKeyDown: function(event)
303 { 312 {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 performIndexing: function(progress) { }, 453 performIndexing: function(progress) { },
445 454
446 stopSearch: function() { }, 455 stopSearch: function() { },
447 456
448 /** 457 /**
449 * @param {!WebInspector.ProjectSearchConfig} searchConfig 458 * @param {!WebInspector.ProjectSearchConfig} searchConfig
450 * @return {!WebInspector.SearchResultsPane} 459 * @return {!WebInspector.SearchResultsPane}
451 */ 460 */
452 createSearchResultsPane: function(searchConfig) { } 461 createSearchResultsPane: function(searchConfig) { }
453 }; 462 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698