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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 * @param {!WebInspector.TextRange} textRange | 709 * @param {!WebInspector.TextRange} textRange |
710 */ | 710 */ |
711 _makeSourceSelection: function(textRange) | 711 _makeSourceSelection: function(textRange) |
712 { | 712 { |
713 var sourcesPanel = WebInspector.inspectorView.panel("sources"); | 713 var sourcesPanel = WebInspector.inspectorView.panel("sources"); |
714 var selection = { | 714 var selection = { |
715 startLine: textRange.startLine, | 715 startLine: textRange.startLine, |
716 startColumn: textRange.startColumn, | 716 startColumn: textRange.startColumn, |
717 endLine: textRange.endLine, | 717 endLine: textRange.endLine, |
718 endColumn: textRange.endColumn, | 718 endColumn: textRange.endColumn, |
719 url: sourcesPanel.tabbedEditorContainer.currentFile().uri() | 719 url: sourcesPanel.sourcesEditor().currentUISourceCode().uri() |
720 }; | 720 }; |
721 | 721 |
722 return selection; | 722 return selection; |
723 }, | 723 }, |
724 | 724 |
725 _notifySourceFrameSelectionChanged: function(event) | 725 _notifySourceFrameSelectionChanged: function(event) |
726 { | 726 { |
727 this._postNotification(WebInspector.extensionAPI.Events.PanelObjectSelec
ted + "sources", this._makeSourceSelection(event.data)); | 727 this._postNotification(WebInspector.extensionAPI.Events.PanelObjectSelec
ted + "sources", this._makeSourceSelection(event.data)); |
728 }, | 728 }, |
729 | 729 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 /** | 1042 /** |
1043 * @typedef {{code: string, description: string, details: !Array.<*>}} | 1043 * @typedef {{code: string, description: string, details: !Array.<*>}} |
1044 */ | 1044 */ |
1045 WebInspector.ExtensionStatus.Record; | 1045 WebInspector.ExtensionStatus.Record; |
1046 | 1046 |
1047 WebInspector.extensionAPI = {}; | 1047 WebInspector.extensionAPI = {}; |
1048 defineCommonExtensionSymbols(WebInspector.extensionAPI); | 1048 defineCommonExtensionSymbols(WebInspector.extensionAPI); |
1049 | 1049 |
1050 importScript("ExtensionPanel.js"); | 1050 importScript("ExtensionPanel.js"); |
1051 importScript("ExtensionView.js"); | 1051 importScript("ExtensionView.js"); |
OLD | NEW |