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

Side by Side Diff: chrome/common/extensions/docs/examples/api/extension/isAllowedAccess/popup.html

Issue 6677108: `extension.isAllowed???Access` samples (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 9 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
(Empty)
1 <!DOCTYPE html>
2 <!--
3 * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
4 * source code is governed by a BSD-style license that can be found in the
5 * LICENSE file.
6 -->
7 <html>
8 <head>
9 <title>extension.isAllowedAccess Sample</title>
10 <link rel="stylesheet" href="./sample.css">
11 </head>
12 <body>
13 <h1>extension.isAllowedAccess Sample</h1>
14 <section>
15 <ol>
16 <li><p><span>1</span> chrome.extension.isAllowedFileSchemeAccess: <code id="file">unknown</code> (unpacked extensions always have file scheme access, yo u'll need to install this as a packed extension to toggle it properly)</p></li>
kurrik.chromium 2011/03/21 22:13:02 I didn't even know this. Interesting.
17 <li><p><span>2</span> chrome.extension.isAllowedIncognitoAccess: <code i d="incognito">unknown</code></p></li>
18 </ol>
19 </section>
20 <script>
21 chrome.extension.isAllowedFileSchemeAccess(function(state) {
22 document.getElementById('file').textContent = state ? 'true': 'false';
kurrik.chromium 2011/03/21 22:13:02 Maybe toggle a class name here and style true/fals
Mike West 2011/03/22 08:44:56 Done.
23 });
24 chrome.extension.isAllowedIncognitoAccess(function(state) {
25 document.getElementById('incognito').textContent =
26 state ? 'true': 'false';
27 });
28 </script>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698