OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 Loading... |
29 */ | 29 */ |
30 | 30 |
31 | 31 |
32 /** | 32 /** |
33 * @constructor | 33 * @constructor |
34 * @extends {WebInspector.Object} | 34 * @extends {WebInspector.Object} |
35 * @implements {WebInspector.ContentProvider} | 35 * @implements {WebInspector.ContentProvider} |
36 * @param {!WebInspector.Project} project | 36 * @param {!WebInspector.Project} project |
37 * @param {string} parentPath | 37 * @param {string} parentPath |
38 * @param {string} name | 38 * @param {string} name |
| 39 * @param {string} originURL |
39 * @param {string} url | 40 * @param {string} url |
40 * @param {!WebInspector.ResourceType} contentType | 41 * @param {!WebInspector.ResourceType} contentType |
41 */ | 42 */ |
42 WebInspector.UISourceCode = function(project, parentPath, name, originURL, url,
contentType) | 43 WebInspector.UISourceCode = function(project, parentPath, name, originURL, url,
contentType) |
43 { | 44 { |
44 this._project = project; | 45 this._project = project; |
45 this._parentPath = parentPath; | 46 this._parentPath = parentPath; |
46 this._name = name; | 47 this._name = name; |
47 this._originURL = originURL; | 48 this._originURL = originURL; |
48 this._url = url; | 49 this._url = url; |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 function persist() | 1050 function persist() |
1050 { | 1051 { |
1051 window.localStorage[key] = this._content; | 1052 window.localStorage[key] = this._content; |
1052 window.localStorage["revision-history"] = JSON.stringify(registry); | 1053 window.localStorage["revision-history"] = JSON.stringify(registry); |
1053 } | 1054 } |
1054 | 1055 |
1055 // Schedule async storage. | 1056 // Schedule async storage. |
1056 setTimeout(persist.bind(this), 0); | 1057 setTimeout(persist.bind(this), 0); |
1057 } | 1058 } |
1058 } | 1059 } |
OLD | NEW |