Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.js

Issue 2186753002: [DevTools] Track URL through the target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 /** 139 /**
140 * @param {string} identifier 140 * @param {string} identifier
141 */ 141 */
142 notifyButtonClicked: function(identifier) 142 notifyButtonClicked: function(identifier)
143 { 143 {
144 this._postNotification(WebInspector.extensionAPI.Events.ButtonClicked + identifier); 144 this._postNotification(WebInspector.extensionAPI.Events.ButtonClicked + identifier);
145 }, 145 },
146 146
147 _inspectedURLChanged: function(event) 147 _inspectedURLChanged: function(event)
148 { 148 {
149 if (event.data !== WebInspector.targetManager.mainTarget())
150 return;
149 this._requests = {}; 151 this._requests = {};
150 var url = event.data; 152 var url = event.data.inspectedURL();
151 this._postNotification(WebInspector.extensionAPI.Events.InspectedURLChan ged, url); 153 this._postNotification(WebInspector.extensionAPI.Events.InspectedURLChan ged, url);
152 }, 154 },
153 155
154 156
155 /** 157 /**
156 * @param {string} categoryId 158 * @param {string} categoryId
157 * @param {!WebInspector.ExtensionAuditCategoryResults} auditResults 159 * @param {!WebInspector.ExtensionAuditCategoryResults} auditResults
158 */ 160 */
159 startAuditRun: function(categoryId, auditResults) 161 startAuditRun: function(categoryId, auditResults)
160 { 162 {
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 /** 1084 /**
1083 * @typedef {{code: string, description: string, details: !Array.<*>}} 1085 * @typedef {{code: string, description: string, details: !Array.<*>}}
1084 */ 1086 */
1085 WebInspector.ExtensionStatus.Record; 1087 WebInspector.ExtensionStatus.Record;
1086 1088
1087 WebInspector.extensionAPI = {}; 1089 WebInspector.extensionAPI = {};
1088 defineCommonExtensionSymbols(WebInspector.extensionAPI); 1090 defineCommonExtensionSymbols(WebInspector.extensionAPI);
1089 1091
1090 /** @type {!WebInspector.ExtensionServer} */ 1092 /** @type {!WebInspector.ExtensionServer} */
1091 WebInspector.extensionServer; 1093 WebInspector.extensionServer;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698