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/settings/SettingsScreen.js

Issue 2614883002: DevTools: lighten the workspaces settings ui a bit. (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 super(Common.UIString('Workspace'), 'workspace-tab-content'); 280 super(Common.UIString('Workspace'), 'workspace-tab-content');
281 Workspace.isolatedFileSystemManager.addEventListener( 281 Workspace.isolatedFileSystemManager.addEventListener(
282 Workspace.IsolatedFileSystemManager.Events.FileSystemAdded, this._fileSy stemAdded, this); 282 Workspace.IsolatedFileSystemManager.Events.FileSystemAdded, this._fileSy stemAdded, this);
283 Workspace.isolatedFileSystemManager.addEventListener( 283 Workspace.isolatedFileSystemManager.addEventListener(
284 Workspace.IsolatedFileSystemManager.Events.FileSystemRemoved, this._file SystemRemoved, this); 284 Workspace.IsolatedFileSystemManager.Events.FileSystemRemoved, this._file SystemRemoved, this);
285 285
286 var folderExcludePatternInput = this._createFolderExcludePatternInput(); 286 var folderExcludePatternInput = this._createFolderExcludePatternInput();
287 folderExcludePatternInput.classList.add('folder-exclude-pattern'); 287 folderExcludePatternInput.classList.add('folder-exclude-pattern');
288 this.containerElement.appendChild(folderExcludePatternInput); 288 this.containerElement.appendChild(folderExcludePatternInput);
289 289
290 if (Runtime.experiments.isEnabled('persistence2')) {
291 var div = this.containerElement.createChild('div', 'settings-info-message' );
292 div.createTextChild(
293 Common.UIString('Mappings are inferred automatically via the \'Persist ence 2.0\' experiment. Please '));
294 div.appendChild(UI.createExternalLink(
295 'https://bugs.chromium.org/p/chromium/issues/entry?template=Defect%20r eport%20from%20user&components=Platform%3EDevTools%3EAuthoring&comment=DevTools% 20failed%20to%20link%20network%20resource%20to%20filesystem.%0A%0APlatform%3A%20 %3CLinux%2FWin%2FMac%3E%0AChrome%20version%3A%20%3Cyour%20chrome%20version%3E%0A %0AWhat%20are%20the%20details%20of%20your%20project%3F%0A-%20Source%20code%20(if %20any)%3A%20http%3A%2F%2Fgithub.com%2Fexample%2Fexample%0A-%20Build%20System%3A %20gulp%2Fgrunt%2Fwebpack%2Frollup%2F...%0A-%20HTTP%20server%3A%20node%20HTTP%2F nginx%2Fapache...%0A%0AAssets%20failed%20to%20link%20(or%20incorrectly%20linked) %3A%0A1.%0A2.%0A3.%0A%0AIf%20possible%2C%20please%20attach%20a%20screenshot%20of %20network%20sources%20navigator%20which%20should%0Ashow%20which%20resources%20f ailed%20to%20map',
296 Common.UIString('report')));
297 div.createTextChild(Common.UIString(' any bugs.'));
298 }
299
290 this._fileSystemsListContainer = this.containerElement.createChild('div', '' ); 300 this._fileSystemsListContainer = this.containerElement.createChild('div', '' );
291 301
292 this.containerElement.appendChild( 302 this.containerElement.appendChild(
293 UI.createTextButton(Common.UIString('Add folder\u2026'), this._addFileSy stemClicked.bind(this))); 303 UI.createTextButton(Common.UIString('Add folder\u2026'), this._addFileSy stemClicked.bind(this)));
294 304
295 /** @type {!Map<string, !Element>} */ 305 /** @type {!Map<string, !Element>} */
296 this._elementByPath = new Map(); 306 this._elementByPath = new Map();
297 307
298 /** @type {!Map<string, !Settings.EditFileSystemView>} */ 308 /** @type {!Map<string, !Settings.EditFileSystemView>} */
299 this._mappingViewByPath = new Map(); 309 this._mappingViewByPath = new Map();
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 return; 545 return;
536 var settings = extension.descriptor()['settings']; 546 var settings = extension.descriptor()['settings'];
537 if (settings && settings.indexOf(setting.name) !== -1) { 547 if (settings && settings.indexOf(setting.name) !== -1) {
538 InspectorFrontendHost.bringToFront(); 548 InspectorFrontendHost.bringToFront();
539 Settings.SettingsScreen._showSettingsScreen(extension.descriptor()['id'] ); 549 Settings.SettingsScreen._showSettingsScreen(extension.descriptor()['id'] );
540 success = true; 550 success = true;
541 } 551 }
542 } 552 }
543 } 553 }
544 }; 554 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698