| 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * | 10 * |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 | 508 |
| 509 /** | 509 /** |
| 510 * @return {string} | 510 * @return {string} |
| 511 */ | 511 */ |
| 512 _generateTabId: function() | 512 _generateTabId: function() |
| 513 { | 513 { |
| 514 return "tab_" + (WebInspector.TabbedEditorContainer._tabId++); | 514 return "tab_" + (WebInspector.TabbedEditorContainer._tabId++); |
| 515 }, | 515 }, |
| 516 | 516 |
| 517 /** | 517 /** |
| 518 * @return {!WebInspector.UISourceCode} uiSourceCode | 518 * @return {?WebInspector.UISourceCode} uiSourceCode |
| 519 */ | 519 */ |
| 520 currentFile: function() | 520 currentFile: function() |
| 521 { | 521 { |
| 522 return this._currentFile; | 522 return this._currentFile || null; |
| 523 }, | 523 }, |
| 524 | 524 |
| 525 __proto__: WebInspector.Object.prototype | 525 __proto__: WebInspector.Object.prototype |
| 526 } | 526 } |
| 527 | 527 |
| 528 /** | 528 /** |
| 529 * @constructor | 529 * @constructor |
| 530 * @param {string} url | 530 * @param {string} url |
| 531 * @param {!WebInspector.TextRange=} selectionRange | 531 * @param {!WebInspector.TextRange=} selectionRange |
| 532 * @param {number=} scrollLineNumber | 532 * @param {number=} scrollLineNumber |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 /** | 746 /** |
| 747 * @override | 747 * @override |
| 748 * @param {string} tabId | 748 * @param {string} tabId |
| 749 * @param {!WebInspector.ContextMenu} contextMenu | 749 * @param {!WebInspector.ContextMenu} contextMenu |
| 750 */ | 750 */ |
| 751 onContextMenu: function(tabId, contextMenu) | 751 onContextMenu: function(tabId, contextMenu) |
| 752 { | 752 { |
| 753 this._editorContainer._onContextMenu(tabId, contextMenu); | 753 this._editorContainer._onContextMenu(tabId, contextMenu); |
| 754 } | 754 } |
| 755 } | 755 } |
| OLD | NEW |