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

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

Issue 1966103003: DevTools: set full text searchbar to always focus when shown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 { 272 {
273 this._searchMessageElement.textContent = finished ? WebInspector.UIStrin g("Search finished.") : WebInspector.UIString("Search interrupted."); 273 this._searchMessageElement.textContent = finished ? WebInspector.UIStrin g("Search finished.") : WebInspector.UIString("Search interrupted.");
274 }, 274 },
275 275
276 focus: function() 276 focus: function()
277 { 277 {
278 WebInspector.setCurrentFocusElement(this._search); 278 WebInspector.setCurrentFocusElement(this._search);
279 this._search.select(); 279 this._search.select();
280 }, 280 },
281 281
282 wasShown: function()
283 {
284 this.focus();
285 },
286
282 willHide: function() 287 willHide: function()
283 { 288 {
284 this._stopSearch(); 289 this._stopSearch();
285 }, 290 },
286 291
287 /** 292 /**
288 * @param {!Event} event 293 * @param {!Event} event
289 */ 294 */
290 _onKeyDown: function(event) 295 _onKeyDown: function(event)
291 { 296 {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 performIndexing: function(progress) { }, 455 performIndexing: function(progress) { },
451 456
452 stopSearch: function() { }, 457 stopSearch: function() { },
453 458
454 /** 459 /**
455 * @param {!WebInspector.ProjectSearchConfig} searchConfig 460 * @param {!WebInspector.ProjectSearchConfig} searchConfig
456 * @return {!WebInspector.SearchResultsPane} 461 * @return {!WebInspector.SearchResultsPane}
457 */ 462 */
458 createSearchResultsPane: function(searchConfig) { } 463 createSearchResultsPane: function(searchConfig) { }
459 } 464 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698