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

Side by Side Diff: chrome/common/extensions/docs/experimental.fontSettings.html

Issue 9836036: Add getDefaultFontSize and setDefaultFontSize to Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 years, 8 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 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note: 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note:
2 1) The <head> information in this page is significant, should be uniform 2 1) The <head> information in this page is significant, should be uniform
3 across api docs and should be edited only with knowledge of the 3 across api docs and should be edited only with knowledge of the
4 templating mechanism. 4 templating mechanism.
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a
6 browser, it will be re-generated from the template, json schema and 6 browser, it will be re-generated from the template, json schema and
7 authored overview content. 7 authored overview content.
8 4) The <body>.innerHTML is also generated by an offline step so that this 8 4) The <body>.innerHTML is also generated by an offline step so that this
9 page may easily be indexed by search engines. 9 page may easily be indexed by search engines.
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 <div id="toc"> 191 <div id="toc">
192 <h2>Contents</h2> 192 <h2>Contents</h2>
193 <ol> 193 <ol>
194 <li> 194 <li>
195 <a href="#apiReference">API reference: chrome.experimental.fontS ettings</a> 195 <a href="#apiReference">API reference: chrome.experimental.fontS ettings</a>
196 <ol> 196 <ol>
197 <li> 197 <li>
198 <a href="#global-methods">Methods</a> 198 <a href="#global-methods">Methods</a>
199 <ol> 199 <ol>
200 <li> 200 <li>
201 <a href="#method-getDefaultFontSize">getDefaultFontSize</a>
202 </li><li>
201 <a href="#method-getFontList">getFontList</a> 203 <a href="#method-getFontList">getFontList</a>
202 </li><li> 204 </li><li>
203 <a href="#method-getFontName">getFontName</a> 205 <a href="#method-getFontName">getFontName</a>
204 </li><li> 206 </li><li>
207 <a href="#method-setDefaultFontSize">setDefaultFontSize</a>
208 </li><li>
205 <a href="#method-setFontName">setFontName</a> 209 <a href="#method-setFontName">setFontName</a>
206 </li> 210 </li>
207 </ol> 211 </ol>
208 </li> 212 </li>
209 <li> 213 <li>
210 <a href="#types">Types</a> 214 <a href="#types">Types</a>
211 <ol> 215 <ol>
212 <li> 216 <li>
213 <a href="#type-FontName">FontName</a> 217 <a href="#type-FontName">FontName</a>
214 <ol> 218 <ol>
(...skipping 17 matching lines...) Expand all
232 <a name="apiReference"></a> 236 <a name="apiReference"></a>
233 <h2>API reference: chrome.experimental.fontSettings</h2> 237 <h2>API reference: chrome.experimental.fontSettings</h2>
234 <!-- PROPERTIES --> 238 <!-- PROPERTIES -->
235 <!-- /apiGroup --> 239 <!-- /apiGroup -->
236 <!-- METHODS --> 240 <!-- METHODS -->
237 <div id="methodsTemplate" class="apiGroup"> 241 <div id="methodsTemplate" class="apiGroup">
238 <a name="global-methods"></a> 242 <a name="global-methods"></a>
239 <h3>Methods</h3> 243 <h3>Methods</h3>
240 <!-- iterates over all functions --> 244 <!-- iterates over all functions -->
241 <div class="apiItem"> 245 <div class="apiItem">
246 <a name="method-getDefaultFontSize"></a> <!-- method-anchor -->
247 <h4>getDefaultFontSize</h4>
248 <div class="summary">
249 <!-- Note: intentionally longer 80 columns -->
250 <span>chrome.experimental.fontSettings.getDefaultFontSize</spa n>(<span class="null"><span>object</span>
251 <var><span>details</span></var></span><span class="optiona l"><span>, </span><span>function</span>
252 <var><span>callback</span></var></span>)</div>
253 <div class="description">
254 <p>Gets the default font size.</p>
255 <!-- PARAMETERS -->
256 <h4>Parameters</h4>
257 <dl>
258 <div>
259 <div>
260 <dt>
261 <var>details</var>
262 <em>
263 <!-- TYPE -->
264 <div style="display:inline">
265 (
266 <span id="typeTemplate">
267 <span>
268 <span>object</span>
269 </span>
270 </span>
271 )
272 </div>
273 </em>
274 </dt>
275 <dd>This parameter is currently unused.</dd>
276 <!-- OBJECT PROPERTIES -->
277 <!-- OBJECT METHODS -->
278 <!-- OBJECT EVENT FIELDS -->
279 <!-- FUNCTION PARAMETERS -->
280 </div>
281 </div><div>
282 <div>
283 <dt>
284 <var>callback</var>
285 <em>
286 <!-- TYPE -->
287 <div style="display:inline">
288 (
289 <span class="optional">optional</span>
290 <span id="typeTemplate">
291 <span>
292 <span>function</span>
293 </span>
294 </span>
295 )
296 </div>
297 </em>
298 </dt>
299 <dd class="todo">
300 Undocumented.
301 </dd>
302 <!-- OBJECT PROPERTIES -->
303 <!-- OBJECT METHODS -->
304 <!-- OBJECT EVENT FIELDS -->
305 <!-- FUNCTION PARAMETERS -->
306 </div>
307 </div>
308 </dl>
309 <!-- RETURNS -->
310 <dl>
311 </dl>
312 <!-- CALLBACK -->
313 <div>
314 <div>
315 <h4>Callback function</h4>
316 <p>
317 If you specify the <em>callback</em> parameter, it should
318 specify a function that looks like this:
319 </p>
320 <!-- Note: intentionally longer 80 columns -->
321 <pre>function(<span>object details</span>) <span class="subdue d">{...}</span>;</pre>
322 <dl>
323 <div>
324 <div>
325 <dt>
326 <var>details</var>
327 <em>
328 <!-- TYPE -->
329 <div style="display:inline">
330 (
331 <span id="typeTemplate">
332 <span>
333 <span>object</span>
334 </span>
335 </span>
336 )
337 </div>
338 </em>
339 </dt>
340 <dd class="todo">
341 Undocumented.
342 </dd>
343 <!-- OBJECT PROPERTIES -->
344 <dd>
345 <dl>
346 <div>
347 <div>
348 <dt>
349 <var>pixelSize</var>
350 <em>
351 <!-- TYPE -->
352 <div style="display:inline">
353 (
354 <span id="typeTemplate">
355 <span>
356 <span>integer</span>
357 </span>
358 </span>
359 )
360 </div>
361 </em>
362 </dt>
363 <dd>The font size in pixels.</dd>
364 <!-- OBJECT PROPERTIES -->
365 <!-- OBJECT METHODS -->
366 <!-- OBJECT EVENT FIELDS -->
367 <!-- FUNCTION PARAMETERS -->
368 </div>
369 </div>
370 </dl>
371 </dd>
372 <!-- OBJECT METHODS -->
373 <!-- OBJECT EVENT FIELDS -->
374 <!-- FUNCTION PARAMETERS -->
375 </div>
376 </div>
377 </dl>
378 </div>
379 </div>
380 <!-- MIN_VERSION -->
381 </div> <!-- /description -->
382 </div><div class="apiItem">
242 <a name="method-getFontList"></a> <!-- method-anchor --> 383 <a name="method-getFontList"></a> <!-- method-anchor -->
243 <h4>getFontList</h4> 384 <h4>getFontList</h4>
244 <div class="summary"> 385 <div class="summary">
245 <!-- Note: intentionally longer 80 columns --> 386 <!-- Note: intentionally longer 80 columns -->
246 <span>chrome.experimental.fontSettings.getFontList</span>(<spa n class="null"><span>function</span> 387 <span>chrome.experimental.fontSettings.getFontList</span>(<spa n class="null"><span>function</span>
247 <var><span>callback</span></var></span>)</div> 388 <var><span>callback</span></var></span>)</div>
248 <div class="description"> 389 <div class="description">
249 <p>Gets a list of fonts on the system.</p> 390 <p>Gets a list of fonts on the system.</p>
250 <!-- PARAMETERS --> 391 <!-- PARAMETERS -->
251 <h4>Parameters</h4> 392 <h4>Parameters</h4>
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 <!-- OBJECT EVENT FIELDS --> 658 <!-- OBJECT EVENT FIELDS -->
518 <!-- FUNCTION PARAMETERS --> 659 <!-- FUNCTION PARAMETERS -->
519 </div> 660 </div>
520 </div> 661 </div>
521 </dl> 662 </dl>
522 </div> 663 </div>
523 </div> 664 </div>
524 <!-- MIN_VERSION --> 665 <!-- MIN_VERSION -->
525 </div> <!-- /description --> 666 </div> <!-- /description -->
526 </div><div class="apiItem"> 667 </div><div class="apiItem">
668 <a name="method-setDefaultFontSize"></a> <!-- method-anchor -->
669 <h4>setDefaultFontSize</h4>
670 <div class="summary">
671 <!-- Note: intentionally longer 80 columns -->
672 <span>chrome.experimental.fontSettings.setDefaultFontSize</spa n>(<span class="null"><span>object</span>
673 <var><span>details</span></var></span><span class="optiona l"><span>, </span><span>function</span>
674 <var><span>callback</span></var></span>)</div>
675 <div class="description">
676 <p>Sets the default font size.</p>
677 <!-- PARAMETERS -->
678 <h4>Parameters</h4>
679 <dl>
680 <div>
681 <div>
682 <dt>
683 <var>details</var>
684 <em>
685 <!-- TYPE -->
686 <div style="display:inline">
687 (
688 <span id="typeTemplate">
689 <span>
690 <span>object</span>
691 </span>
692 </span>
693 )
694 </div>
695 </em>
696 </dt>
697 <dd class="todo">
698 Undocumented.
699 </dd>
700 <!-- OBJECT PROPERTIES -->
701 <dd>
702 <dl>
703 <div>
704 <div>
705 <dt>
706 <var>pixelSize</var>
707 <em>
708 <!-- TYPE -->
709 <div style="display:inline">
710 (
711 <span id="typeTemplate">
712 <span>
713 <span>integer</span>
714 </span>
715 </span>
716 )
717 </div>
718 </em>
719 </dt>
720 <dd>The font size in pixels.</dd>
721 <!-- OBJECT PROPERTIES -->
722 <!-- OBJECT METHODS -->
723 <!-- OBJECT EVENT FIELDS -->
724 <!-- FUNCTION PARAMETERS -->
725 </div>
726 </div>
727 </dl>
728 </dd>
729 <!-- OBJECT METHODS -->
730 <!-- OBJECT EVENT FIELDS -->
731 <!-- FUNCTION PARAMETERS -->
732 </div>
733 </div><div>
734 <div>
735 <dt>
736 <var>callback</var>
737 <em>
738 <!-- TYPE -->
739 <div style="display:inline">
740 (
741 <span class="optional">optional</span>
742 <span id="typeTemplate">
743 <span>
744 <span>function</span>
745 </span>
746 </span>
747 )
748 </div>
749 </em>
750 </dt>
751 <dd class="todo">
752 Undocumented.
753 </dd>
754 <!-- OBJECT PROPERTIES -->
755 <!-- OBJECT METHODS -->
756 <!-- OBJECT EVENT FIELDS -->
757 <!-- FUNCTION PARAMETERS -->
758 </div>
759 </div>
760 </dl>
761 <!-- RETURNS -->
762 <dl>
763 </dl>
764 <!-- CALLBACK -->
765 <div>
766 <div>
767 <h4>Callback function</h4>
768 <p>
769 If you specify the <em>callback</em> parameter, it should
770 specify a function that looks like this:
771 </p>
772 <!-- Note: intentionally longer 80 columns -->
773 <pre>function(<span></span>) <span class="subdued">{...}</span >;</pre>
774 <dl>
775 </dl>
776 </div>
777 </div>
778 <!-- MIN_VERSION -->
779 </div> <!-- /description -->
780 </div><div class="apiItem">
527 <a name="method-setFontName"></a> <!-- method-anchor --> 781 <a name="method-setFontName"></a> <!-- method-anchor -->
528 <h4>setFontName</h4> 782 <h4>setFontName</h4>
529 <div class="summary"> 783 <div class="summary">
530 <!-- Note: intentionally longer 80 columns --> 784 <!-- Note: intentionally longer 80 columns -->
531 <span>chrome.experimental.fontSettings.setFontName</span>(<spa n class="null"><span>object</span> 785 <span>chrome.experimental.fontSettings.setFontName</span>(<spa n class="null"><span>object</span>
532 <var><span>details</span></var></span><span class="optiona l"><span>, </span><span>function</span> 786 <var><span>details</span></var></span><span class="optiona l"><span>, </span><span>function</span>
533 <var><span>callback</span></var></span>)</div> 787 <var><span>callback</span></var></span>)</div>
534 <div class="description"> 788 <div class="description">
535 <p>Sets the font name of the current setting for a given script and generic font family.</p> 789 <p>Sets the font name of the current setting for a given script and generic font family.</p>
536 <!-- PARAMETERS --> 790 <!-- PARAMETERS -->
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 _uff=0; 1058 _uff=0;
805 urchinTracker(); 1059 urchinTracker();
806 } 1060 }
807 catch(e) {/* urchinTracker not available. */} 1061 catch(e) {/* urchinTracker not available. */}
808 </script> 1062 </script>
809 <!-- end analytics --> 1063 <!-- end analytics -->
810 </div> 1064 </div>
811 </div> <!-- /gc-footer --> 1065 </div> <!-- /gc-footer -->
812 </div> <!-- /gc-container --> 1066 </div> <!-- /gc-container -->
813 </body></html> 1067 </body></html>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/examples/api/fontSettings/popup.js ('k') | chrome/common/extensions/docs/samples.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698