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

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: rebaseline 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 */ 379 */
380 showUILocation(uiLocation, omitFocus) { 380 showUILocation(uiLocation, omitFocus) {
381 this.showUISourceCode(uiLocation.uiSourceCode, uiLocation.lineNumber, uiLoca tion.columnNumber, omitFocus); 381 this.showUISourceCode(uiLocation.uiSourceCode, uiLocation.lineNumber, uiLoca tion.columnNumber, omitFocus);
382 } 382 }
383 383
384 /** 384 /**
385 * @param {!Workspace.UISourceCode} uiSourceCode 385 * @param {!Workspace.UISourceCode} uiSourceCode
386 * @param {boolean=} skipReveal 386 * @param {boolean=} skipReveal
387 */ 387 */
388 _revealInNavigator(uiSourceCode, skipReveal) { 388 _revealInNavigator(uiSourceCode, skipReveal) {
389 var binding = Persistence.persistence.binding(uiSourceCode);
390 if (binding && binding.network === uiSourceCode)
391 uiSourceCode = binding.fileSystem;
392
393 var extensions = self.runtime.extensions(Sources.NavigatorView); 389 var extensions = self.runtime.extensions(Sources.NavigatorView);
394 Promise.all(extensions.map(extension => extension.instance())).then(filterNa vigators.bind(this)); 390 Promise.all(extensions.map(extension => extension.instance())).then(filterNa vigators.bind(this));
395 391
396 /** 392 /**
397 * @this {Sources.SourcesPanel} 393 * @this {Sources.SourcesPanel}
398 * @param {!Array.<!Object>} objects 394 * @param {!Array.<!Object>} objects
399 */ 395 */
400 function filterNavigators(objects) { 396 function filterNavigators(objects) {
401 for (var i = 0; i < objects.length; ++i) { 397 for (var i = 0; i < objects.length; ++i) {
402 var navigatorView = /** @type {!Sources.NavigatorView} */ (objects[i]); 398 var navigatorView = /** @type {!Sources.NavigatorView} */ (objects[i]);
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 */ 1314 */
1319 willHide() { 1315 willHide() {
1320 UI.inspectorView.setDrawerMinimized(false); 1316 UI.inspectorView.setDrawerMinimized(false);
1321 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc es.SourcesPanel.instance())); 1317 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc es.SourcesPanel.instance()));
1322 } 1318 }
1323 1319
1324 _showViewInWrapper() { 1320 _showViewInWrapper() {
1325 this._view.show(this.element); 1321 this._view.show(this.element);
1326 } 1322 }
1327 }; 1323 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698