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

Side by Side Diff: chrome/common/extensions/docs/templates/intros/devtools_inspectedWindow.html

Issue 11035015: Merge 159156 - Extensions Docs Server: Fix headings with no IDs (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1229/src/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 <p> 1 <p>
2 Use <code>chrome.devtools.inspectedWindow</code> 2 Use <code>chrome.devtools.inspectedWindow</code>
3 to interact with the inspected window: 3 to interact with the inspected window:
4 obtain the tab ID for the inspected page, 4 obtain the tab ID for the inspected page,
5 evaluate the code in the context of inspected window, 5 evaluate the code in the context of inspected window,
6 reload the page, 6 reload the page,
7 or obtain the list of resources within the page. 7 or obtain the list of resources within the page.
8 </p><p> 8 </p><p>
9 See <a href="devtools.html">DevTools APIs summary</a> for 9 See <a href="devtools.html">DevTools APIs summary</a> for
10 general introduction to using Developer Tools APIs. 10 general introduction to using Developer Tools APIs.
11 </p> 11 </p>
12 12
13 <h2>Overview</h2> 13 <h2 id="overview">Overview</h2>
14 <p> 14 <p>
15 The <a href="#property-tabId"><code>tabId</code></a> property 15 The <a href="#property-tabId"><code>tabId</code></a> property
16 provides the tab identifier that you can use with the 16 provides the tab identifier that you can use with the
17 <a href="tabs.html"><code>chrome.tabs.*</code></a> API calls. 17 <a href="tabs.html"><code>chrome.tabs.*</code></a> API calls.
18 However, please note that <code>chrome.tabs.*</code> API is not 18 However, please note that <code>chrome.tabs.*</code> API is not
19 exposed to the Developer Tools extension pages due to security considerations 19 exposed to the Developer Tools extension pages due to security considerations
20 &mdash; you will need to pass the tab ID to the background page and invoke 20 &mdash; you will need to pass the tab ID to the background page and invoke
21 the <code>chrome.tabs.*</code> API functions from there. 21 the <code>chrome.tabs.*</code> API functions from there.
22 </p> 22 </p>
23 <p> 23 <p>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 console.log("the page is not using jQuery"); 87 console.log("the page is not using jQuery");
88 else 88 else
89 console.log("The page is using jQuery v" + result); 89 console.log("The page is using jQuery v" + result);
90 } 90 }
91 ); 91 );
92 </pre> 92 </pre>
93 93
94 <p> 94 <p>
95 You can find more examples that use Developer Tools APIs in 95 You can find more examples that use Developer Tools APIs in
96 <a href="samples.html#devtools">Samples</a>. 96 <a href="samples.html#devtools">Samples</a>.
97 </p> 97 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698