blob: a91a547e6aa068057e27344db44236230677ba7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<!DOCTYPE html>
<html>
<!--
Copyright (c) 2012 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<title>{{title}}</title>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="example.js"></script>
</head>
<body {{attrs}}>
<h1>{{title}}</h1>
<h2>Status: <code id="statusField">NO-STATUS</code></h2>
<p>This example demonstrates a complete NaCl PPAPI application. In
source file hello_world.c contains the three required PPAPI functions
PPP_InitializeModule, PPP_GetInterface, PPP_ShutdownModule which initialize
the application, provide a string name to callback interface mapping, and
cleanup on shutdown respectively.</p>
<p>The example will query for the Console, PostMessage and Var interfaces to
send a message to JavaScript which will be added to the output box. In
addition, it will send another message to the JavaScript Console to simulate
logging for development.</p>
<!-- The NaCl plugin will be embedded inside the element with id "listener".
See common.js.-->
<div id="listener"></div>
<h1>OUTPUT</h1>
<pre>
<p><b id='outputString'></b></p>
</pre>
</body>
</html>
|