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

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: 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. In normal webpages,
51 This behavior is not present in Chrome Apps.</li> 51 the browser intercepts the ESC key to exit fullscreen ensuring
52 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,
benwells 2014/11/20 23:21:00 Could we also update this to mention the pointer l
scheib 2014/11/20 23:32:38 Done.
67 prompting the user, or providing exit instructions. 72 prompting the user, or providing exit instructions.
68 Also, there is no default exit behavior. In normal webpages, 73 Also, there is no default exit behavior. In normal webpages,
69 the browser intercepts the ESC key to exit pointer lock. 74 the browser intercepts the ESC key to exit pointer lock.
70 This behavior is not present in Chrome Apps.</li> 75 This behavior is not present in Chrome Apps.</li>
71 </ul> 76 </ul>
72 </li> 77 </li>
73 {{/is_apps}} 78 {{/is_apps}}
74 <li> video 79 <li> video
75 (<a href="http://www.html5rocks.com/en/tutorials/video/basics/">tutorial</a> ) </li> 80 (<a href="http://www.html5rocks.com/en/tutorials/video/basics/">tutorial</a> ) </li>
76 <li> web database 81 <li> web database
(...skipping 26 matching lines...) Expand all
103 <dt><strong> V8 APIs</strong>, such as<strong> JSON </strong></dt> 108 <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> 109 <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> 110 <dt><strong>APIs in bundled libraries</strong></dt>
106 <dd> If you want to use a library that the browser doesn't provide 111 <dd> If you want to use a library that the browser doesn't provide
107 (for example, jQuery), 112 (for example, jQuery),
108 you can bundle that library's JavaScript files with your extension. 113 you can bundle that library's JavaScript files with your extension.
109 Bundled libraries work in extensions 114 Bundled libraries work in extensions
110 just as they do in other web pages. 115 just as they do in other web pages.
111 </dd> 116 </dd>
112 </dl> 117 </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