| 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 21 matching lines...) Expand all Loading... |
| 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} originURL |
| 40 * @param {string} url | 40 * @param {string} url |
| 41 * @param {!WebInspector.ResourceType} contentType | 41 * @param {!WebInspector.ResourceType} contentType |
| 42 * @param {string=} language |
| 42 */ | 43 */ |
| 43 WebInspector.UISourceCode = function(project, parentPath, name, originURL, url,
contentType) | 44 WebInspector.UISourceCode = function(project, parentPath, name, originURL, url,
contentType, language) |
| 44 { | 45 { |
| 45 this._project = project; | 46 this._project = project; |
| 46 this._parentPath = parentPath; | 47 this._parentPath = parentPath; |
| 47 this._name = name; | 48 this._name = name; |
| 48 this._originURL = originURL; | 49 this._originURL = originURL; |
| 49 this._url = url; | 50 this._url = url; |
| 50 this._contentType = contentType; | 51 this._contentType = contentType; |
| 51 /** @type {!Array.<function(?string)>} */ | 52 /** @type {!Array.<function(?string)>} */ |
| 52 this._requestContentCallbacks = []; | 53 this._requestContentCallbacks = []; |
| 54 this.language = url.endsWith(".dart") ? "Dart" : "JavaScript"; |
| 53 | 55 |
| 54 /** @type {!Array.<!WebInspector.Revision>} */ | 56 /** @type {!Array.<!WebInspector.Revision>} */ |
| 55 this.history = []; | 57 this.history = []; |
| 56 } | 58 } |
| 57 | 59 |
| 58 /** | 60 /** |
| 59 * @enum {string} | 61 * @enum {string} |
| 60 */ | 62 */ |
| 61 WebInspector.UISourceCode.Events = { | 63 WebInspector.UISourceCode.Events = { |
| 62 WorkingCopyChanged: "WorkingCopyChanged", | 64 WorkingCopyChanged: "WorkingCopyChanged", |
| (...skipping 656 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 |