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

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

Issue 2002803002: DevTools: allow focus to be restored to the drawer when dialog closes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address patch comments 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 | third_party/WebKit/Source/devtools/front_end/ui/Drawer.js » ('j') | 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 }, 266 },
267 267
268 /** 268 /**
269 * @param {boolean} finished 269 * @param {boolean} finished
270 */ 270 */
271 _searchFinished: function(finished) 271 _searchFinished: function(finished)
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 /**
277 * @override
278 * @return {!Element}
279 */
280 defaultFocusedElement: function()
281 {
282 return this._search;
283 },
284
276 focus: function() 285 focus: function()
277 { 286 {
278 WebInspector.setCurrentFocusElement(this._search); 287 WebInspector.setCurrentFocusElement(this._search);
279 this._search.select(); 288 this._search.select();
280 }, 289 },
281 290
282 willHide: function() 291 willHide: function()
283 { 292 {
284 this._stopSearch(); 293 this._stopSearch();
285 }, 294 },
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 performIndexing: function(progress) { }, 459 performIndexing: function(progress) { },
451 460
452 stopSearch: function() { }, 461 stopSearch: function() { },
453 462
454 /** 463 /**
455 * @param {!WebInspector.ProjectSearchConfig} searchConfig 464 * @param {!WebInspector.ProjectSearchConfig} searchConfig
456 * @return {!WebInspector.SearchResultsPane} 465 * @return {!WebInspector.SearchResultsPane}
457 */ 466 */
458 createSearchResultsPane: function(searchConfig) { } 467 createSearchResultsPane: function(searchConfig) { }
459 } 468 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/Drawer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698