I love this idea of a way to expose at least the styles of the Dev
Tools to extensions. I brought this up, as you have Ronny, to Paul
Irish and he pointed us here. I think the idea is to have the
capabilities to write extensions that are similar to Firerainbow
(
http://firerainbow.binaryage.com/) or the like. The example given
makes a lot of sense just without proper context. Something simple
that allows for style manipulation / addition to pre-existing and new
panels would be ideal:
chrome.experimental.devtools.panels.elements.style("li { background:
#bada55; }");
In the above use case all you would need to do is extend the
devtools.panels API to allow for insertion of CSS. As you can see, the
context is the elements panel and this would work the same for any new
panels created. It may even be more beneficial to pass an object of
key value pairs instead of a string. Much like:
chrome.experimental.devtools.panels.elements.style({ "color" :
"#bada55;", "background" : "fuschia"; });
Again, this is all up for discussion but I think it's worth while to
look into extending this kind of capability.
Cheers,
Darcy