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

Side by Side Diff: chrome/common/extensions/docs/templates/articles/api_other.html

Issue 738673003: Update HTML5 fullscreen/pointerlock documentation re: ESC handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Pointer lock permission stated (but not making the mistake of pointer lock ESC handling differing) Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <h1>Web APIs</h1> 1 <h1>Web APIs</h1>
2 2
3 <p> 3 <p>
4 In addition to the 4 In addition to the
5 <a href="api_index">chrome.* APIs</a>, 5 <a href="api_index">chrome.* APIs</a>,
6 extensions can use all the APIs 6 extensions can use all the APIs
7 that the browser provides 7 that the browser provides
8 to web pages and apps. 8 to web pages and apps.
9 If the browser doesn't support an API you want to use, 9 If the browser doesn't support an API you want to use,
10 you can bundle additional API libraries into your extension. 10 you can bundle additional API libraries into your extension.
(...skipping 28 matching lines...) Expand all
39 <li> application cache 39 <li> application cache
40 (<a href="http://www.html5rocks.com/tutorials/appcache/beginner/">tutorial</ a>) </li> 40 (<a href="http://www.html5rocks.com/tutorials/appcache/beginner/">tutorial</ a>) </li>
41 <li> canvas 41 <li> canvas
42 (<a href="http://www.html5rocks.com/en/tutorials/#canvas">articles</a>) </li > 42 (<a href="http://www.html5rocks.com/en/tutorials/#canvas">articles</a>) </li >
43 {{?is_apps}} 43 {{?is_apps}}
44 <li> fullscreen 44 <li> fullscreen
45 (<a href="http://updates.html5rocks.com/2011/10/Let-Your-Content-Do-the-Talk ing-Fullscreen-API">article</a>) 45 (<a href="http://updates.html5rocks.com/2011/10/Let-Your-Content-Do-the-Talk ing-Fullscreen-API">article</a>)
46 <ul> 46 <ul>
47 <li>In Chrome Apps, fullscreen is entered without 47 <li>In Chrome Apps, fullscreen is entered without
48 prompting the user or providing exit instructions. 48 prompting the user or providing exit instructions.
49 Also, there is no default exit behavior. In normal webpages, 49 HTML5 fullscreen requires the <code>app.window.fullscreen</code>
50 the browser intercepts the ESC key to exit fullscreen. 50 permission in the manifest.
51 This behavior is not present in Chrome Apps.</li> 51 In normal webpages, the browser intercepts the ESC key to exit
52 pointer lock ensuring a consistent escape method for users.
53 That is also the behavior in Chrome Apps unless the
54 <code>app.window.fullscreen.overrideEsc</code>
55 permission is used to enable the app to call
56 <code>preventDefault</code> on keydown and keyup events.</li>
52 </ul> 57 </ul>
53 </li> 58 </li>
54 {{/is_apps}} 59 {{/is_apps}}
55 <li> geolocation 60 <li> geolocation
56 (<a href="http://www.html5rocks.com/tutorials/geolocation/trip_meter/">tutor ial</a>) </li> 61 (<a href="http://www.html5rocks.com/tutorials/geolocation/trip_meter/">tutor ial</a>) </li>
57 <li> local storage 62 <li> local storage
58 (<a href="http://www.html5rocks.com/en/tutorials/offline/storage/">tutorial< /a>) </li> 63 (<a href="http://www.html5rocks.com/en/tutorials/offline/storage/">tutorial< /a>) </li>
59 <li> notifications 64 <li> notifications
60 (<a href="http://www.html5rocks.com/tutorials/notifications/quick/">tutorial </a>) </li> 65 (<a href="http://www.html5rocks.com/tutorials/notifications/quick/">tutorial </a>) </li>
61 {{?is_apps}} 66 {{?is_apps}}
62 <li> pointer lock 67 <li> pointer lock
63 (<a href="http://www.html5rocks.com/en/tutorials/pointerlock/intro/">tutoria l</a>) 68 (<a href="http://www.html5rocks.com/en/tutorials/pointerlock/intro/">tutoria l</a>)
64 <ul> 69 <ul>
65 <li>In Chrome Apps, pointer lock is entered without 70 <li>In Chrome Apps, pointer lock is entered without
66 requiring a user gesture, 71 requiring a user gesture,
67 prompting the user, or providing exit instructions. 72 prompting the user, or providing exit instructions.
73 Pointer lock requires the <code>pointerlock</code>
74 permission in the manifest.
68 Also, there is no default exit behavior. In normal webpages, 75 Also, there is no default exit behavior. In normal webpages,
69 the browser intercepts the ESC key to exit pointer lock. 76 the browser intercepts the ESC key to exit pointer lock.
70 This behavior is not present in Chrome Apps.</li> 77 This behavior is not present in Chrome Apps.</li>
71 </ul> 78 </ul>
72 </li> 79 </li>
73 {{/is_apps}} 80 {{/is_apps}}
74 <li> video 81 <li> video
75 (<a href="http://www.html5rocks.com/en/tutorials/video/basics/">tutorial</a> ) </li> 82 (<a href="http://www.html5rocks.com/en/tutorials/video/basics/">tutorial</a> ) </li>
76 <li> web database 83 <li> web database
77 (<a href="http://www.html5rocks.com/tutorials/webdatabase/todo/">tutorial</a >) </li> 84 (<a href="http://www.html5rocks.com/tutorials/webdatabase/todo/">tutorial</a >) </li>
(...skipping 25 matching lines...) Expand all
103 <dt><strong> V8 APIs</strong>, such as<strong> JSON </strong></dt> 110 <dt><strong> V8 APIs</strong>, such as<strong> JSON </strong></dt>
104 <dd> Because JSON is in V8, you don't need to include a JSON library to use JSON functions. </dd> 111 <dd> Because JSON is in V8, you don't need to include a JSON library to use JSON functions. </dd>
105 <dt><strong>APIs in bundled libraries</strong></dt> 112 <dt><strong>APIs in bundled libraries</strong></dt>
106 <dd> If you want to use a library that the browser doesn't provide 113 <dd> If you want to use a library that the browser doesn't provide
107 (for example, jQuery), 114 (for example, jQuery),
108 you can bundle that library's JavaScript files with your extension. 115 you can bundle that library's JavaScript files with your extension.
109 Bundled libraries work in extensions 116 Bundled libraries work in extensions
110 just as they do in other web pages. 117 just as they do in other web pages.
111 </dd> 118 </dd>
112 </dl> 119 </dl>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698