| 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 this.selectionRange = selectionRange; | 527 this.selectionRange = selectionRange; |
| 528 this.scrollLineNumber = scrollLineNumber; | 528 this.scrollLineNumber = scrollLineNumber; |
| 529 } | 529 } |
| 530 | 530 |
| 531 WebInspector.TabbedEditorContainer.HistoryItem.serializableUrlLengthLimit = 4096
; | 531 WebInspector.TabbedEditorContainer.HistoryItem.serializableUrlLengthLimit = 4096
; |
| 532 | 532 |
| 533 /** | 533 /** |
| 534 * @param {!Object} serializedHistoryItem | 534 * @param {!Object} serializedHistoryItem |
| 535 * @return {!WebInspector.TabbedEditorContainer.HistoryItem} | 535 * @return {!WebInspector.TabbedEditorContainer.HistoryItem} |
| 536 */ | 536 */ |
| 537 WebInspector.TabbedEditorContainer.HistoryItem.fromObject = function (serialized
HistoryItem) | 537 WebInspector.TabbedEditorContainer.HistoryItem.fromObject = function(serializedH
istoryItem) |
| 538 { | 538 { |
| 539 var selectionRange = serializedHistoryItem.selectionRange ? WebInspector.Tex
tRange.fromObject(serializedHistoryItem.selectionRange) : undefined; | 539 var selectionRange = serializedHistoryItem.selectionRange ? WebInspector.Tex
tRange.fromObject(serializedHistoryItem.selectionRange) : undefined; |
| 540 return new WebInspector.TabbedEditorContainer.HistoryItem(serializedHistoryI
tem.url, selectionRange, serializedHistoryItem.scrollLineNumber); | 540 return new WebInspector.TabbedEditorContainer.HistoryItem(serializedHistoryI
tem.url, selectionRange, serializedHistoryItem.scrollLineNumber); |
| 541 } | 541 } |
| 542 | 542 |
| 543 WebInspector.TabbedEditorContainer.HistoryItem.prototype = { | 543 WebInspector.TabbedEditorContainer.HistoryItem.prototype = { |
| 544 /** | 544 /** |
| 545 * @return {?Object} | 545 * @return {?Object} |
| 546 */ | 546 */ |
| 547 serializeToObject: function() | 547 serializeToObject: function() |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 /** | 735 /** |
| 736 * @override | 736 * @override |
| 737 * @param {string} tabId | 737 * @param {string} tabId |
| 738 * @param {!WebInspector.ContextMenu} contextMenu | 738 * @param {!WebInspector.ContextMenu} contextMenu |
| 739 */ | 739 */ |
| 740 onContextMenu: function(tabId, contextMenu) | 740 onContextMenu: function(tabId, contextMenu) |
| 741 { | 741 { |
| 742 this._editorContainer._onContextMenu(tabId, contextMenu); | 742 this._editorContainer._onContextMenu(tabId, contextMenu); |
| 743 } | 743 } |
| 744 } | 744 } |
| OLD | NEW |