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

Side by Side Diff: chrome/common/extensions/docs/templates/intros/power.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 <table class="intro">
2 <tr>
3 <th scope="col"></th>
4 <th scope="col"></th>
5 </tr>
6 <tr>
7 <td><strong>Description:</strong></td>
8 <td>Use the <code>chrome.power</code> module
9 to temporarily disable aspects of system power management
10 (see <a href="#usage">Usage</a>).</td>
11 </tr>
12 <tr>
13 <td><strong>Availability:</strong></td>
14 <td>Google Chrome 27</td>
15 </tr>
16 <tr>
17 <td><strong>Permissions:</strong></td>
18 <td><code>"power"</code></td>
19 </tr>
20 </table>
21
22 <h2 id="usage">Usage</h2> 1 <h2 id="usage">Usage</h2>
23 2
24 <p> 3 <p>
25 By default, 4 By default,
26 operating systems dim the screen when users are inactive 5 operating systems dim the screen when users are inactive
27 and eventually suspend the system. 6 and eventually suspend the system.
28 With the power API, 7 With the power API,
29 an app or extension can keep the system awake. 8 an app or extension can keep the system awake.
30 </p> 9 </p>
31 10
(...skipping 19 matching lines...) Expand all
51 <code>"display"</code> always takes precendence 30 <code>"display"</code> always takes precendence
52 over <code>"system"</code>. 31 over <code>"system"</code>.
53 For example, 32 For example,
54 if app A asks for <code>"system"</code> power management, 33 if app A asks for <code>"system"</code> power management,
55 and app B asks for <code>"display"</code>, 34 and app B asks for <code>"display"</code>,
56 <code>"display"</code> is used until app B 35 <code>"display"</code> is used until app B
57 is unloaded or releases its request. 36 is unloaded or releases its request.
58 If app A is still active, 37 If app A is still active,
59 <code>"system"</code> is then used. 38 <code>"system"</code> is then used.
60 </p> 39 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698