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

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

Issue 2551233002: DevTools: show filesystem file by default (Closed)
Patch Set: nit Created 4 years 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 */ 380 */
381 showUILocation(uiLocation, omitFocus) { 381 showUILocation(uiLocation, omitFocus) {
382 this.showUISourceCode(uiLocation.uiSourceCode, uiLocation.lineNumber, uiLoca tion.columnNumber, omitFocus); 382 this.showUISourceCode(uiLocation.uiSourceCode, uiLocation.lineNumber, uiLoca tion.columnNumber, omitFocus);
383 } 383 }
384 384
385 /** 385 /**
386 * @param {!Workspace.UISourceCode} uiSourceCode 386 * @param {!Workspace.UISourceCode} uiSourceCode
387 * @param {boolean=} skipReveal 387 * @param {boolean=} skipReveal
388 */ 388 */
389 _revealInNavigator(uiSourceCode, skipReveal) { 389 _revealInNavigator(uiSourceCode, skipReveal) {
390 var binding = Persistence.persistence.binding(uiSourceCode);
391 if (binding && binding.network === uiSourceCode)
392 uiSourceCode = binding.fileSystem;
393
394 var extensions = self.runtime.extensions(Sources.NavigatorView); 390 var extensions = self.runtime.extensions(Sources.NavigatorView);
395 Promise.all(extensions.map(extension => extension.instance())).then(filterNa vigators.bind(this)); 391 Promise.all(extensions.map(extension => extension.instance())).then(filterNa vigators.bind(this));
396 392
397 /** 393 /**
398 * @this {Sources.SourcesPanel} 394 * @this {Sources.SourcesPanel}
399 * @param {!Array.<!Object>} objects 395 * @param {!Array.<!Object>} objects
400 */ 396 */
401 function filterNavigators(objects) { 397 function filterNavigators(objects) {
402 for (var i = 0; i < objects.length; ++i) { 398 for (var i = 0; i < objects.length; ++i) {
403 var navigatorView = /** @type {!Sources.NavigatorView} */ (objects[i]); 399 var navigatorView = /** @type {!Sources.NavigatorView} */ (objects[i]);
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 */ 1315 */
1320 willHide() { 1316 willHide() {
1321 UI.inspectorView.setDrawerMinimized(false); 1317 UI.inspectorView.setDrawerMinimized(false);
1322 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc es.SourcesPanel.instance())); 1318 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc es.SourcesPanel.instance()));
1323 } 1319 }
1324 1320
1325 _showViewInWrapper() { 1321 _showViewInWrapper() {
1326 this._view.show(this.element); 1322 this._view.show(this.element);
1327 } 1323 }
1328 }; 1324 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698