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 28 matching lines...) Expand all Loading... |
39 this._workspace = workspace; | 39 this._workspace = workspace; |
40 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy
stemManager.Events.FileSystemAdded, this._fileSystemAdded, this); | 40 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy
stemManager.Events.FileSystemAdded, this._fileSystemAdded, this); |
41 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy
stemManager.Events.FileSystemRemoved, this._fileSystemRemoved, this); | 41 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy
stemManager.Events.FileSystemRemoved, this._fileSystemRemoved, this); |
42 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy
stemManager.Events.FileSystemFilesChanged, this._fileSystemFilesChanged, this); | 42 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy
stemManager.Events.FileSystemFilesChanged, this._fileSystemFilesChanged, this); |
43 /** @type {!Map.<string, !WebInspector.FileSystemWorkspaceBinding.FileSystem
>} */ | 43 /** @type {!Map.<string, !WebInspector.FileSystemWorkspaceBinding.FileSystem
>} */ |
44 this._boundFileSystems = new Map(); | 44 this._boundFileSystems = new Map(); |
45 } | 45 } |
46 | 46 |
47 WebInspector.FileSystemWorkspaceBinding._styleSheetExtensions = new Set(["css",
"scss", "sass", "less"]); | 47 WebInspector.FileSystemWorkspaceBinding._styleSheetExtensions = new Set(["css",
"scss", "sass", "less"]); |
48 WebInspector.FileSystemWorkspaceBinding._documentExtensions = new Set(["htm", "h
tml", "asp", "aspx", "phtml", "jsp"]); | 48 WebInspector.FileSystemWorkspaceBinding._documentExtensions = new Set(["htm", "h
tml", "asp", "aspx", "phtml", "jsp"]); |
49 WebInspector.FileSystemWorkspaceBinding._scriptExtensions = new Set(["asp", "asp
x", "c", "cc", "cljs", "coffee", "cpp", "cs", "dart", "java", "js", "jsp", "jsx"
, "h", "m", "mm", "py", "sh", "ts", "tsx"]); | 49 WebInspector.FileSystemWorkspaceBinding._scriptExtensions = new Set(["asp", "asp
x", "c", "cc", "cljs", "coffee", "cpp", "cs", "dart", "java", "js", "jsp", "jsx"
, "h", "m", "mm", "py", "sh", "ts", "tsx", "ls"]); |
50 | 50 |
51 WebInspector.FileSystemWorkspaceBinding._imageExtensions = WebInspector.Isolated
FileSystem.ImageExtensions; | 51 WebInspector.FileSystemWorkspaceBinding._imageExtensions = WebInspector.Isolated
FileSystem.ImageExtensions; |
52 | 52 |
53 /** | 53 /** |
54 * @param {string} fileSystemPath | 54 * @param {string} fileSystemPath |
55 * @return {string} | 55 * @return {string} |
56 */ | 56 */ |
57 WebInspector.FileSystemWorkspaceBinding.projectId = function(fileSystemPath) | 57 WebInspector.FileSystemWorkspaceBinding.projectId = function(fileSystemPath) |
58 { | 58 { |
59 return fileSystemPath; | 59 return fileSystemPath; |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 uiSourceCode.checkContentUpdated(); | 515 uiSourceCode.checkContentUpdated(); |
516 }, | 516 }, |
517 | 517 |
518 dispose: function() | 518 dispose: function() |
519 { | 519 { |
520 this.removeProject(); | 520 this.removeProject(); |
521 }, | 521 }, |
522 | 522 |
523 __proto__: WebInspector.ProjectStore.prototype | 523 __proto__: WebInspector.ProjectStore.prototype |
524 } | 524 } |
OLD | NEW |