OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <!-- | 3 <!-- |
4 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 5 Use of this source code is governed by a BSD-style license that can be |
6 found in the LICENSE file. | 6 found in the LICENSE file. |
7 | 7 |
8 This example demostrates how to access CRX file system. The plugin will | 8 This example demostrates how to access PluginPrivate file system. |
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 --> | 9 --> |
15 <head> | 10 <head> |
16 <title>CrxFs Example</title> | 11 <title>PluginPrivate FileSystem Example</title> |
17 <script src="crxfs.js"></script> | 12 <script src="pluginfs.js"></script> |
18 </head> | 13 </head> |
19 | 14 |
20 <body> | 15 <body> |
21 | 16 |
22 <button id="start">Open</button> | 17 <button id="start">Open</button> |
23 <input type="text" id="filename" value="/manifest.json"></input> | 18 <input type="text" id="filename" value="/manifest.json"></input> |
24 <object id="plugin" type="application/x-ppapi-example-crxfs" | 19 <object id="plugin" type="application/x-ppapi-example-pluginfs" |
25 width="1" height="1"> | 20 width="1" height="1"> |
26 </object> | 21 </object> |
27 <br> | 22 <br> |
28 <textarea id="content" style="width: 80%; height: 300px;"> | 23 <textarea id="content" style="width: 80%; height: 300px;"> |
29 (output space) | 24 (output space) |
30 </textarea> | 25 </textarea> |
31 </body> | 26 </body> |
32 </html> | 27 </html> |
OLD | NEW |