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

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: InspectedURLChanged now sends target and not just URL 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 this._requests = {}; 149 this._requests = {};
150 var url = event.data; 150 var url = event.data.inspectedURL();
dgozman 2016/07/27 20:24:23 if (target === WebInspector.targetManager().mainTa
eostroukhov-old 2016/07/27 21:39:46 Done.
151 this._postNotification(WebInspector.extensionAPI.Events.InspectedURLChan ged, url); 151 this._postNotification(WebInspector.extensionAPI.Events.InspectedURLChan ged, url);
152 }, 152 },
153 153
154 154
155 /** 155 /**
156 * @param {string} categoryId 156 * @param {string} categoryId
157 * @param {!WebInspector.ExtensionAuditCategoryResults} auditResults 157 * @param {!WebInspector.ExtensionAuditCategoryResults} auditResults
158 */ 158 */
159 startAuditRun: function(categoryId, auditResults) 159 startAuditRun: function(categoryId, auditResults)
160 { 160 {
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 /** 1082 /**
1083 * @typedef {{code: string, description: string, details: !Array.<*>}} 1083 * @typedef {{code: string, description: string, details: !Array.<*>}}
1084 */ 1084 */
1085 WebInspector.ExtensionStatus.Record; 1085 WebInspector.ExtensionStatus.Record;
1086 1086
1087 WebInspector.extensionAPI = {}; 1087 WebInspector.extensionAPI = {};
1088 defineCommonExtensionSymbols(WebInspector.extensionAPI); 1088 defineCommonExtensionSymbols(WebInspector.extensionAPI);
1089 1089
1090 /** @type {!WebInspector.ExtensionServer} */ 1090 /** @type {!WebInspector.ExtensionServer} */
1091 WebInspector.extensionServer; 1091 WebInspector.extensionServer;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698