| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 /** | 215 /** |
| 216 * @param {WebInspector.ScriptFile} scriptFile | 216 * @param {WebInspector.ScriptFile} scriptFile |
| 217 */ | 217 */ |
| 218 setScriptFile: function(scriptFile) | 218 setScriptFile: function(scriptFile) |
| 219 { | 219 { |
| 220 this._scriptFile = scriptFile; | 220 this._scriptFile = scriptFile; |
| 221 }, | 221 }, |
| 222 | 222 |
| 223 /** | 223 /** |
| 224 * @return {WebInspector.StyleFile} | |
| 225 */ | |
| 226 styleFile: function() | |
| 227 { | |
| 228 return this._styleFile; | |
| 229 }, | |
| 230 | |
| 231 /** | |
| 232 * @param {WebInspector.StyleFile} styleFile | |
| 233 */ | |
| 234 setStyleFile: function(styleFile) | |
| 235 { | |
| 236 this._styleFile = styleFile; | |
| 237 }, | |
| 238 | |
| 239 /** | |
| 240 * @return {WebInspector.Project} | 224 * @return {WebInspector.Project} |
| 241 */ | 225 */ |
| 242 project: function() | 226 project: function() |
| 243 { | 227 { |
| 244 return this._project; | 228 return this._project; |
| 245 }, | 229 }, |
| 246 | 230 |
| 247 /** | 231 /** |
| 248 * @param {function(?Date, ?number)} callback | 232 * @param {function(?Date, ?number)} callback |
| 249 */ | 233 */ |
| (...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 function persist() | 1085 function persist() |
| 1102 { | 1086 { |
| 1103 window.localStorage[key] = this._content; | 1087 window.localStorage[key] = this._content; |
| 1104 window.localStorage["revision-history"] = JSON.stringify(registry); | 1088 window.localStorage["revision-history"] = JSON.stringify(registry); |
| 1105 } | 1089 } |
| 1106 | 1090 |
| 1107 // Schedule async storage. | 1091 // Schedule async storage. |
| 1108 setTimeout(persist.bind(this), 0); | 1092 setTimeout(persist.bind(this), 0); |
| 1109 } | 1093 } |
| 1110 } | 1094 } |
| OLD | NEW |