1<!DOCTYPE html>
2<html>
3  <!--
4  Copyright 2014 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<head>
9  <title>GLES2 Spinning Cube Example</title>
10</head>
11
12<body>
13
14<embed id="plugin" type="application/x-ppapi-example-compositor"
15  width="800" height="600"/> <br/>
16  Total resource: <input id="total" > <br/>
17  Free resource: <input id="free" > <br/>
18<script type="text/javascript">
19  var plugin = document.getElementById('plugin');
20  var total = document.getElementById('total');
21  var free = document.getElementById('free');
22  plugin.addEventListener('message', function(message) {
23    total.value = message.data.total_resource;
24    free.value = message.data.free_resource;
25  }, false);
26</script>
27</body>
28</html>
29