blob: b667abc2bccf477d38682cc982e68ec98c96aa6d [file] [log] [blame]
<!DOCTYPE html>
Copyright 2013 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
This example demostrates how to access CRX file system. The plugin will
return the content of the given file to the page to display.
Since the API is for CRX file system, you need to package this example
directory into a .crx to load, or simply click "Load unpacked extension" in
chrome://extensions/ with "Developer mode" checked.
<title>CrxFs Example</title>
<script src="crxfs.js"></script>
<button id="start">Open</button>
<input type="text" id="filename" value="/manifest.json"></input>
<object id="plugin" type="application/x-ppapi-example-crxfs"
width="1" height="1">
<textarea id="content" style="width: 80%; height: 300px;">
(output space)