Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Side by Side Diff: native_client_sdk/src/examples/api/network_monitor/index.html

Issue 100213012: [NaCl SDK] Add NetworkMonitor example. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 <head>
9 <meta http-equiv="Pragma" content="no-cache">
10 <meta http-equiv="Expires" content="-1">
11 <title>{{title}}</title>
12 <script type="text/javascript" src="common.js"></script>
13 <script type="text/javascript" src="example.js"></script>
14 <style>
15 table {
16 border: 1px solid #888;
17 border-collapse: collapse;
18 }
19
20 thead {
21 border-bottom: 1px solid #888;
22 }
23
24 td, th {
25 border-left: 1px solid #888;
26 padding: 4px;
27 }
28 </style>
29 </head>
30 <body {{attrs}}>
31 <h1>{{title}}</h1>
32 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
33 <p>The network_monitor example demonstrates how to listen for changes to the
34 status of the network interfaces on this computer.<br> This API is normally
35 only available to packaged apps with 'network-state' socket permission,
36 but can be enabled for debugging purposes using the
37 <code>--allow-nacl-socket-api=&lt;hostname&gt;</code> command line
38 flag.<br>
39 </p>
40
41 <table>
42 <thead>
43 <tr>
44 <th>Index</th>
45 <th>Display Name</th>
46 <th>Name</th>
47 <th>Type</th>
48 <th>State</th>
49 <th>IP Addresses</th>
50 <th>MTU</th>
51 </tr>
52 </thead>
53 <tbody>
54 </tbody>
55 </table>
56
57 <pre id="log" style="font-weight: bold"></pre>
58 <div id="listener"></div>
59 </body>
60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698