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

Side by Side Diff: chrome/common/extensions/docs/apps/app_external.html

Issue 10825266: Update references to sandbox app samples. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/templates/articles/app_external.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 but your external content must be isolated from the app. 219 but your external content must be isolated from the app.
220 </p> 220 </p>
221 <p> 221 <p>
222 Isolated content cannot directly 222 Isolated content cannot directly
223 access the app's data or any of the APIs. 223 access the app's data or any of the APIs.
224 Use cross-origin XMLHttpRequests 224 Use cross-origin XMLHttpRequests
225 and post-messaging to communicate between the event page and sandboxed content 225 and post-messaging to communicate between the event page and sandboxed content
226 and indirectly access the APIs. 226 and indirectly access the APIs.
227 </p> 227 </p>
228 <p class="note"> 228 <p class="note">
229 <b>API Samples: </b> 229 <b>API Sample: </b>
230 Want to play with the code? 230 Want to play with the code?
231 Check out the 231 Check out the
232 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/eval-in- iframe">eval-in-iframe</a> 232 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/sandbox" >sandbox</a> sample.
233 and <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/rege x-tester">regex-tester</a> samples.
234 </p> 233 </p>
235 <h2 id="external">Referencing external resources</h2> 234 <h2 id="external">Referencing external resources</h2>
236 <p> 235 <p>
237 The <a href="app_csp.html">Content Security Policy</a> used by apps disallows 236 The <a href="app_csp.html">Content Security Policy</a> used by apps disallows
238 the use of many kinds of remote URLs, so you can't directly reference external 237 the use of many kinds of remote URLs, so you can't directly reference external
239 images, stylesheets, or fonts from an app page. Instead, you can use use 238 images, stylesheets, or fonts from an app page. Instead, you can use use
240 cross-origin XMLHttpRequests to fetch these resources, 239 cross-origin XMLHttpRequests to fetch these resources,
241 and then serve them via <code>blob:</code> URLs. 240 and then serve them via <code>blob:</code> URLs.
242 </p> 241 </p>
243 <a name="H3-1"></a><h3>Manifest requirement</h3> 242 <a name="H3-1"></a><h3>Manifest requirement</h3>
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 _uff=0; 471 _uff=0;
473 urchinTracker(); 472 urchinTracker();
474 } 473 }
475 catch(e) {/* urchinTracker not available. */} 474 catch(e) {/* urchinTracker not available. */}
476 </script> 475 </script>
477 <!-- end analytics --> 476 <!-- end analytics -->
478 </div> 477 </div>
479 </div> <!-- /gc-footer --> 478 </div> <!-- /gc-footer -->
480 </div> <!-- /gc-container --> 479 </div> <!-- /gc-container -->
481 </body></html> 480 </body></html>
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/templates/articles/app_external.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698