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

Unified Diff: Source/devtools/front_end/ExtensionAPI.js

Issue 91603003: DevTools: allow injecting stylesheets as themes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/ExtensionServer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ExtensionAPI.js
diff --git a/Source/devtools/front_end/ExtensionAPI.js b/Source/devtools/front_end/ExtensionAPI.js
index 4d75be40ccecc3be19391c9c372a3f5e691c82a2..9e8060c023256691a7cf42352678047ad1941969 100644
--- a/Source/devtools/front_end/ExtensionAPI.js
+++ b/Source/devtools/front_end/ExtensionAPI.js
@@ -76,6 +76,7 @@ function defineCommonExtensionSymbols(apiPrivate)
AddAuditResult: "addAuditResult",
AddConsoleMessage: "addConsoleMessage",
AddRequestHeaders: "addRequestHeaders",
+ ApplyStyleSheet: "applyStyleSheet",
CreatePanel: "createPanel",
CreateSidebarPane: "createSidebarPane",
CreateStatusBarButton: "createStatusBarButton",
@@ -86,6 +87,8 @@ function defineCommonExtensionSymbols(apiPrivate)
GetPageResources: "getPageResources",
GetRequestContent: "getRequestContent",
GetResourceContent: "getResourceContent",
+ InspectedURLChanged: "inspectedURLChanged",
+ OpenResource: "openResource",
Reload: "Reload",
Subscribe: "subscribe",
SetOpenResourceHandler: "setOpenResourceHandler",
@@ -95,11 +98,9 @@ function defineCommonExtensionSymbols(apiPrivate)
SetSidebarPage: "setSidebarPage",
ShowPanel: "showPanel",
StopAuditCategoryRun: "stopAuditCategoryRun",
- OpenResource: "openResource",
Unsubscribe: "unsubscribe",
UpdateAuditProgress: "updateAuditProgress",
- UpdateButton: "updateButton",
- InspectedURLChanged: "inspectedURLChanged"
+ UpdateButton: "updateButton"
};
}
@@ -282,6 +283,7 @@ function Panels()
}
for (var panel in panels)
this.__defineGetter__(panel, panelGetter.bind(null, panel));
+ this.applyStyleSheet = function(styleSheet) { extensionServer.sendRequest({ command: commands.ApplyStyleSheet, styleSheet: styleSheet }); };
}
Panels.prototype = {
« no previous file with comments | « no previous file | Source/devtools/front_end/ExtensionServer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698