OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <!-- |
| 4 Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 5 Use of this source code is governed by a BSD-style license that can be |
| 6 found in the LICENSE file. |
| 7 |
| 8 This example demostrates how to access CRX file system. The plugin will |
| 9 return the content of the given file to the page to display. |
| 10 |
| 11 Since the API is for CRX file system, you need to package this example |
| 12 directory into a .crx to load, or simply click "Load unpacked extension" in |
| 13 chrome://extensions/ with "Developer mode" checked. |
| 14 --> |
| 15 <head> |
| 16 <title>CrxFs Example</title> |
| 17 <script src="crxfs.js"></script> |
| 18 </head> |
| 19 |
| 20 <body> |
| 21 |
| 22 <button id="start">Open</button> |
| 23 <input type="text" id="filename" value="/manifest.json"></input> |
| 24 <object id="plugin" type="application/x-ppapi-example-crxfs" |
| 25 width="1" height="1"> |
| 26 </object> |
| 27 <br> |
| 28 <textarea id="content" style="width: 80%; height: 300px;"> |
| 29 (output space) |
| 30 </textarea> |
| 31 </body> |
| 32 </html> |
OLD | NEW |