OLD | NEW |
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 this._excludedFoldersList = new WebInspector.ListWidget(this); | 64 this._excludedFoldersList = new WebInspector.ListWidget(this); |
65 this._excludedFoldersList.element.classList.add("file-system-list"); | 65 this._excludedFoldersList.element.classList.add("file-system-list"); |
66 this._excludedFoldersList.registerRequiredCSS("settings/editFileSystemView.c
ss"); | 66 this._excludedFoldersList.registerRequiredCSS("settings/editFileSystemView.c
ss"); |
67 var excludedFoldersPlaceholder = createElementWithClass("div", "file-system-
list-empty"); | 67 var excludedFoldersPlaceholder = createElementWithClass("div", "file-system-
list-empty"); |
68 excludedFoldersPlaceholder.textContent = WebInspector.UIString("No excluded
folders"); | 68 excludedFoldersPlaceholder.textContent = WebInspector.UIString("No excluded
folders"); |
69 this._excludedFoldersList.setEmptyPlaceholder(excludedFoldersPlaceholder); | 69 this._excludedFoldersList.setEmptyPlaceholder(excludedFoldersPlaceholder); |
70 this._excludedFoldersList.show(this.contentElement); | 70 this._excludedFoldersList.show(this.contentElement); |
71 | 71 |
72 this.contentElement.tabIndex = 0; | 72 this.contentElement.tabIndex = 0; |
73 this._update(); | 73 this._update(); |
74 } | 74 }; |
75 | 75 |
76 WebInspector.EditFileSystemView.prototype = { | 76 WebInspector.EditFileSystemView.prototype = { |
77 dispose: function() | 77 dispose: function() |
78 { | 78 { |
79 WebInspector.EventTarget.removeEventListeners(this._eventListeners); | 79 WebInspector.EventTarget.removeEventListeners(this._eventListeners); |
80 }, | 80 }, |
81 | 81 |
82 _update: function() | 82 _update: function() |
83 { | 83 { |
84 if (this._muteUpdate) | 84 if (this._muteUpdate) |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 * @return {string} | 315 * @return {string} |
316 */ | 316 */ |
317 _normalizePrefix: function(prefix) | 317 _normalizePrefix: function(prefix) |
318 { | 318 { |
319 if (!prefix) | 319 if (!prefix) |
320 return ""; | 320 return ""; |
321 return prefix + (prefix[prefix.length - 1] === "/" ? "" : "/"); | 321 return prefix + (prefix[prefix.length - 1] === "/" ? "" : "/"); |
322 }, | 322 }, |
323 | 323 |
324 __proto__: WebInspector.VBox.prototype | 324 __proto__: WebInspector.VBox.prototype |
325 } | 325 }; |
OLD | NEW |