| 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 }, | 478 }, |
| 479 | 479 |
| 480 /** | 480 /** |
| 481 * @param {string} newWorkingCopy | 481 * @param {string} newWorkingCopy |
| 482 */ | 482 */ |
| 483 setWorkingCopy: function(newWorkingCopy) | 483 setWorkingCopy: function(newWorkingCopy) |
| 484 { | 484 { |
| 485 this._workingCopy = newWorkingCopy; | 485 this._workingCopy = newWorkingCopy; |
| 486 delete this._workingCopyGetter; | 486 delete this._workingCopyGetter; |
| 487 this.dispatchEventToListeners(WebInspector.UISourceCode.Events.WorkingCo
pyChanged); | 487 this.dispatchEventToListeners(WebInspector.UISourceCode.Events.WorkingCo
pyChanged); |
| 488 this._project.workspace().dispatchEventToListeners(WebInspector.Workspac
e.Events.UISourceCodeWorkingCopyChanged, { uiSourceCode: this }); |
| 488 }, | 489 }, |
| 489 | 490 |
| 490 setWorkingCopyGetter: function(workingCopyGetter) | 491 setWorkingCopyGetter: function(workingCopyGetter) |
| 491 { | 492 { |
| 492 this._workingCopyGetter = workingCopyGetter; | 493 this._workingCopyGetter = workingCopyGetter; |
| 493 this.dispatchEventToListeners(WebInspector.UISourceCode.Events.WorkingCo
pyChanged); | 494 this.dispatchEventToListeners(WebInspector.UISourceCode.Events.WorkingCo
pyChanged); |
| 495 this._project.workspace().dispatchEventToListeners(WebInspector.Workspac
e.Events.UISourceCodeWorkingCopyChanged, { uiSourceCode: this }); |
| 494 }, | 496 }, |
| 495 | 497 |
| 496 removeWorkingCopyGetter: function() | 498 removeWorkingCopyGetter: function() |
| 497 { | 499 { |
| 498 if (!this._workingCopyGetter) | 500 if (!this._workingCopyGetter) |
| 499 return; | 501 return; |
| 500 this._workingCopy = this._workingCopyGetter(); | 502 this._workingCopy = this._workingCopyGetter(); |
| 501 delete this._workingCopyGetter; | 503 delete this._workingCopyGetter; |
| 502 }, | 504 }, |
| 503 | 505 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 * @param {string} query | 721 * @param {string} query |
| 720 * @param {boolean} caseSensitive | 722 * @param {boolean} caseSensitive |
| 721 * @param {boolean} isRegex | 723 * @param {boolean} isRegex |
| 722 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal
lback | 724 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal
lback |
| 723 */ | 725 */ |
| 724 searchInContent: function(query, caseSensitive, isRegex, callback) | 726 searchInContent: function(query, caseSensitive, isRegex, callback) |
| 725 { | 727 { |
| 726 callback([]); | 728 callback([]); |
| 727 } | 729 } |
| 728 } | 730 } |
| OLD | NEW |