| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 this._isMajorChangePending = false; | 371 this._isMajorChangePending = false; |
| 372 }, | 372 }, |
| 373 | 373 |
| 374 /** | 374 /** |
| 375 * @param {!WebInspector.Throttler.FinishCallback} finishCallback | 375 * @param {!WebInspector.Throttler.FinishCallback} finishCallback |
| 376 * @param {?string} error | 376 * @param {?string} error |
| 377 */ | 377 */ |
| 378 _styleContentSet: function(finishCallback, error) | 378 _styleContentSet: function(finishCallback, error) |
| 379 { | 379 { |
| 380 if (error) | 380 if (error) |
| 381 this._mapping._cssModel.target().consoleModel.showErrorMessage(error
); | 381 WebInspector.console.error(error); |
| 382 finishCallback(); | 382 finishCallback(); |
| 383 }, | 383 }, |
| 384 | 384 |
| 385 /** | 385 /** |
| 386 * @param {string} content | 386 * @param {string} content |
| 387 */ | 387 */ |
| 388 addRevision: function(content) | 388 addRevision: function(content) |
| 389 { | 389 { |
| 390 this._isAddingRevision = true; | 390 this._isAddingRevision = true; |
| 391 this._uiSourceCode.addRevision(content); | 391 this._uiSourceCode.addRevision(content); |
| 392 delete this._isAddingRevision; | 392 delete this._isAddingRevision; |
| 393 }, | 393 }, |
| 394 | 394 |
| 395 dispose: function() | 395 dispose: function() |
| 396 { | 396 { |
| 397 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); | 397 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); |
| 398 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); | 398 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); |
| 399 } | 399 } |
| 400 } | 400 } |
| OLD | NEW |