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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/settings/EditFileSystemView.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: rebased 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.EditFileSystemView = function(fileSystemPath) 36 WebInspector.EditFileSystemView = 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 contents = this.element.createChild("div", "contents"); 43 var contents = this.element.createChild("div", "contents");
43 44
44 WebInspector.fileSystemMapping.addEventListener(WebInspector.FileSystemMappi ng.Events.FileMappingAdded, this._fileMappingAdded, this); 45 WebInspector.fileSystemMapping.addEventListener(WebInspector.FileSystemMappi ng.Events.FileMappingAdded, this._fileMappingAdded, this);
45 WebInspector.fileSystemMapping.addEventListener(WebInspector.FileSystemMappi ng.Events.FileMappingRemoved, this._fileMappingRemoved, this); 46 WebInspector.fileSystemMapping.addEventListener(WebInspector.FileSystemMappi ng.Events.FileMappingRemoved, this._fileMappingRemoved, this);
46 WebInspector.isolatedFileSystemManager.addEventListener(WebInspector.Isolate dFileSystemManager.Events.ExcludedFolderAdded, this._excludedFolderAdded, this); 47 WebInspector.isolatedFileSystemManager.addEventListener(WebInspector.Isolate dFileSystemManager.Events.ExcludedFolderAdded, this._excludedFolderAdded, this);
47 WebInspector.isolatedFileSystemManager.addEventListener(WebInspector.Isolate dFileSystemManager.Events.ExcludedFolderRemoved, this._excludedFolderRemoved, th is); 48 WebInspector.isolatedFileSystemManager.addEventListener(WebInspector.Isolate dFileSystemManager.Events.ExcludedFolderRemoved, this._excludedFolderRemoved, th is);
48 49
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 for (var key in this._entries) { 367 for (var key in this._entries) {
367 var entry = this._entries[key]; 368 var entry = this._entries[key];
368 if (entry.configurable && entry.pathPrefix === prefix) 369 if (entry.configurable && entry.pathPrefix === prefix)
369 return false; 370 return false;
370 } 371 }
371 return true; 372 return true;
372 }, 373 },
373 374
374 __proto__: WebInspector.VBox.prototype 375 __proto__: WebInspector.VBox.prototype
375 } 376 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698