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

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

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments - Patch currently being broken up Created 7 years, 6 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 <h2 id="manifest">Notes</h2> 1 <h2 id="manifest">Notes</h2>
2 2
3 <p> 3 <p>
4 Debugger API serves as an alternate transport for Chrome's
5 <a href="http://code.google.com/chrome/devtools/docs/remote-debugging.html">
6 remote debugging protocol</a>. Use <code>chrome.debugger</code>
7 to attach to one or more tabs to instrument network interaction, debug
8 JavaScript, mutate the DOM and CSS, etc. Use the Debuggee tabId to target tabs
9 with sendCommand and route events by <code>tabId</code> from onEvent callbacks.
10 </p>
11
12 <p>
13 As of today, attaching to the tab by means of the debugger API 4 As of today, attaching to the tab by means of the debugger API
14 and using embedded Chrome DevTools with that tab are mutually exclusive. 5 and using embedded Chrome DevTools with that tab are mutually exclusive.
15 If user invokes Chrome DevTools while extension is attached to the tab, 6 If user invokes Chrome DevTools while extension is attached to the tab,
16 debugging session is terminated. Extension can re-establish it later. 7 debugging session is terminated. Extension can re-establish it later.
17 </p> 8 </p>
18 9
19 <h2 id="manifest">Manifest</h2> 10 <h2 id="manifest">Manifest</h2>
20 11
21 <p> 12 <p>
22 You must declare the "debugger" permission in your extension's manifest 13 You must declare the "debugger" permission in your extension's manifest
23 to use this API. 14 to use this API.
24 </p> 15 </p>
25 16
26 <pre>{ 17 <pre>{
27 "name": "My extension", 18 "name": "My extension",
28 ... 19 ...
29 <b> "permissions": [ 20 <b> "permissions": [
30 "debugger", 21 "debugger",
31 ]</b>, 22 ]</b>,
32 ... 23 ...
33 }</pre> 24 }</pre>
34 25
35 26
36 <h2 id="examples">Examples</h2> 27 <h2 id="examples">Examples</h2>
37 28
38 <p> 29 <p>
39 You can find samples of this API in 30 You can find samples of this API in
40 <a href="samples.html#debugger">Samples</a>. 31 <a href="samples.html#debugger">Samples</a>.
41 </p> 32 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698