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

Unified Diff: chrome/common/extensions/docs/templates/articles/app_external.html

Issue 11233065: Rename <browser> shim to <webview> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT. No longer exposed to Extensions Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/templates/articles/app_external.html
diff --git a/chrome/common/extensions/docs/templates/articles/app_external.html b/chrome/common/extensions/docs/templates/articles/app_external.html
index 936f9154b7dcc475a0d69d28d8e33166eedd7d21..507b2d911565b247eecdfa6ecd91b911217fdca7 100644
--- a/chrome/common/extensions/docs/templates/articles/app_external.html
+++ b/chrome/common/extensions/docs/templates/articles/app_external.html
@@ -71,48 +71,48 @@ xhr.send();
<p>You may want to <a href="offline_apps.html#saving-locally">save</a>
these resources locally, so that they are available offline.</p>
-<h2 id="browsertag">Embed external web pages</h2>
+<h2 id="webview">Embed external web pages</h2>
<p class="note">
<b>API Sample: </b>
Want to play with the code? Check out the
-<a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/browser-tag">browser-tag</a>
+<a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/browser-tag">webview</a>
sample.
</p>
<p>
-The <code>browser</code> tag allows you to embed external web content in your
+The <code>webview</code> tag allows you to embed external web content in your
app, for example, a web page. It replaces iframes that point to remote URLs,
which are disabled inside packaged apps. Unlike iframes, the
-<code>browser</code> tag runs in a separate process. This means that an exploit
+<code>webview</code> tag runs in a separate process. This means that an exploit
inside of it will still be isolated and won't be able to gain elevated
privileges. Further, since its storage (cookies, etc.) is isolated from the app,
there is no way for the web content to access any of the app's data.
</p>
-<h3 id="browser_element">Add browser element</h3>
+<h3 id="webview_element">Add webview element</h3>
<p>
-Your <code>browser</code> element must include the URL to the source content
+Your <code>webview</code> element must include the URL to the source content
and specify its dimensions.
</p>
-<pre>&lt;browser src="http://news.google.com/" width="640" height="480">&lt;/browser></pre>
+<pre>&lt;webview src="http://news.google.com/" width="640" height="480">&lt;/webview></pre>
<h3 id="properties">Update properties</h3>
<p>
To dynamically change the <code>src</code>, <code>width</code> and
-<code>height</code> properties of a <code>browser</code> tag, you can either
+<code>height</code> properties of a <code>webview</code> tag, you can either
set those properties directly on the JavaScript object, or use the
<code>setAttribute</code> DOM function.
</p>
<pre>
-document.querySelector('#mybrowser').src =
+document.querySelector('#mywebview').src =
'http://blog.chromium.org/';
// or
-document.querySelector('#mybrowser').setAttribute(
+document.querySelector('#mywebview').setAttribute(
'src', 'http://blog.chromium.org/');
</pre>
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | chrome/common/extensions/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698