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

Side by Side Diff: chrome/common/extensions/docs/templates/intros/fontSettings.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 <p>The Font Settings API allows you to manage Chrome's font settings.</p>
2
3 <h2 id="manifest">Manifest</h2> 1 <h2 id="manifest">Manifest</h2>
4 <p>To use the Font Settings API, you must declare the "fontSettings" permission 2 <p>To use the Font Settings API, you must declare the "fontSettings" permission
5 in the <a href="manifest.html">extension manifest</a>. 3 in the <a href="manifest.html">extension manifest</a>.
6 For example:</p> 4 For example:</p>
7 <pre>{ 5 <pre>{
8 "name": "My Font Settings Extension", 6 "name": "My Font Settings Extension",
9 "description": "Customize your fonts", 7 "description": "Customize your fonts",
10 "version": "0.2", 8 "version": "0.2",
11 "permissions": ["fontSettings"] 9 "permissions": ["fontSettings"]
12 }</pre> 10 }</pre>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 <p>The next snippet sets the sans-serif font for Japanese.</p> 44 <p>The next snippet sets the sans-serif font for Japanese.</p>
47 <pre> 45 <pre>
48 chrome.fontSettings.setFont( 46 chrome.fontSettings.setFont(
49 { genericFamily: 'sansserif', script: 'Jpan', fontId: 'MS PGothic' } 47 { genericFamily: 'sansserif', script: 'Jpan', fontId: 'MS PGothic' }
50 ); 48 );
51 </pre> 49 </pre>
52 50
53 <p>You can find a sample extension using the Font Settings API in the 51 <p>You can find a sample extension using the Font Settings API in the
54 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension s/docs/examples/api/fontSettings/">examples/api/fontSettings</a> 52 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension s/docs/examples/api/fontSettings/">examples/api/fontSettings</a>
55 directory. For other examples and for help in viewing the source code, see 53 directory. For other examples and for help in viewing the source code, see
56 <a href="samples.html">Samples</a>.</p> 54 <a href="samples.html">Samples</a>.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698