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

Unified Diff: chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html

Issue 9289057: Changing manifest to v2 extension samples (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding zip files after rebasing with master Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html
diff --git a/chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html b/chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html
index a83ffd2c6d2f1bf130c4b9ade01834df88e1bcd2..bcf0413f29691b28f409c0e61a4fc4d1ba669f8e 100644
--- a/chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html
+++ b/chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html
@@ -1,28 +1,5 @@
<html>
<body>
-<script type="text/javascript">
-// The function below is executed in the context of the inspected page.
-var page_getProperties = function() {
- var data = window.jQuery && $0 ? jQuery.data($0) : {};
- // Make a shallow copy with a null prototype, so that sidebar does not
- // expose prototype.
- var props = Object.getOwnPropertyNames(data);
- var copy = { __proto__: null };
- for (var i = 0; i < props.length; ++i)
- copy[props[i]] = data[props[i]];
- return copy;
-}
-
-chrome.devtools.panels.elements.createSidebarPane(
- "jQuery Properties",
- function(sidebar) {
- function updateElementProperties() {
- sidebar.setExpression("(" + page_getProperties.toString() + ")()");
- }
- updateElementProperties();
- chrome.devtools.panels.elements.onSelectionChanged.addListener(
- updateElementProperties);
-});
-</script>
+<script src="devtools.js"></script>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698