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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/settings/EditFileSystemDialog.js

Issue 1397403003: [DevTools] Remove HelpScreen, turn SettingsScreen into dialog and web component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screens
Patch Set: Created 5 years, 2 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.VBox} 33 * @extends {WebInspector.VBox}
34 * @param {string} fileSystemPath 34 * @param {string} fileSystemPath
35 */ 35 */
36 WebInspector.EditFileSystemDialog = function(fileSystemPath) 36 WebInspector.EditFileSystemDialog = function(fileSystemPath)
37 { 37 {
38 WebInspector.VBox.call(this); 38 WebInspector.VBox.call(this);
39 this.registerRequiredCSS("settings/settingsScreen.css");
39 this.element.classList.add("dialog-contents", "settings-dialog", "settings-t ab"); 40 this.element.classList.add("dialog-contents", "settings-dialog", "settings-t ab");
40 this._fileSystemPath = fileSystemPath; 41 this._fileSystemPath = fileSystemPath;
41 42
42 var header = this.element.createChild("div", "header"); 43 var header = this.element.createChild("div", "header");
43 var headerText = header.createChild("span"); 44 var headerText = header.createChild("span");
44 headerText.textContent = WebInspector.UIString("Edit file system"); 45 headerText.textContent = WebInspector.UIString("Edit file system");
45 46
46 var contents = this.element.createChild("div", "contents"); 47 var contents = this.element.createChild("div", "contents");
47 48
48 WebInspector.fileSystemMapping.addEventListener(WebInspector.FileSystemMappi ng.Events.FileMappingAdded, this._fileMappingAdded, this); 49 WebInspector.fileSystemMapping.addEventListener(WebInspector.FileSystemMappi ng.Events.FileMappingAdded, this._fileMappingAdded, this);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 for (var folder of WebInspector.isolatedFileSystemManager.fileSystem(fileSys temPath).nonConfigurableExcludedFolders().values()) 92 for (var folder of WebInspector.isolatedFileSystemManager.fileSystem(fileSys temPath).nonConfigurableExcludedFolders().values())
92 this._addExcludedFolderRow(folder, true); 93 this._addExcludedFolderRow(folder, true);
93 for (var folder of WebInspector.isolatedFileSystemManager.fileSystem(fileSys temPath).excludedFolders().values()) 94 for (var folder of WebInspector.isolatedFileSystemManager.fileSystem(fileSys temPath).excludedFolders().values())
94 this._addExcludedFolderRow(folder, false); 95 this._addExcludedFolderRow(folder, false);
95 96
96 this.element.tabIndex = 0; 97 this.element.tabIndex = 0;
97 this._hasMappingChanges = false; 98 this._hasMappingChanges = false;
98 99
99 this._dialog = new WebInspector.Dialog(); 100 this._dialog = new WebInspector.Dialog();
100 this._dialog.setWrapsContent(true); 101 this._dialog.setWrapsContent(true);
101 this._dialog.setMaxSize(new Size(600, 600)); 102 this._dialog.setMaxSize(new Size(800, 600));
102 this._dialog.addCloseButton(); 103 this._dialog.addCloseButton();
103 this.show(this._dialog.element); 104 this.show(this._dialog.element);
104 this._dialog.show(); 105 this._dialog.show();
105 } 106 }
106 107
107 WebInspector.EditFileSystemDialog.show = function(fileSystemPath) 108 WebInspector.EditFileSystemDialog.show = function(fileSystemPath)
108 { 109 {
109 new WebInspector.EditFileSystemDialog(fileSystemPath); 110 new WebInspector.EditFileSystemDialog(fileSystemPath);
110 } 111 }
111 112
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 for (var key in this._entries) { 381 for (var key in this._entries) {
381 var entry = this._entries[key]; 382 var entry = this._entries[key];
382 if (entry.configurable && entry.pathPrefix === prefix) 383 if (entry.configurable && entry.pathPrefix === prefix)
383 return false; 384 return false;
384 } 385 }
385 return true; 386 return true;
386 }, 387 },
387 388
388 __proto__: WebInspector.VBox.prototype 389 __proto__: WebInspector.VBox.prototype
389 } 390 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698