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

Side by Side Diff: native_client_sdk/src/examples/websocket/index.html

Issue 10828187: [NaCl SDK] Support multiple configs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months 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
« no previous file with comments | « native_client_sdk/src/examples/tumbler/index.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <!-- 3 <!--
4 Copyright (c) 2012 The Chromium Authors. All rights reserved. 4 Copyright (c) 2012 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 <head> 8 <head>
9 <title><TITLE></title> 9 <title><TITLE></title>
10 <meta http-equiv="Pragma" content="no-cache"> 10 <meta http-equiv="Pragma" content="no-cache">
(...skipping 18 matching lines...) Expand all
29 var message = document.getElementById('message').value; 29 var message = document.getElementById('message').value;
30 common.naclModule.postMessage('s;' + message); 30 common.naclModule.postMessage('s;' + message);
31 } 31 }
32 32
33 function doClose() { 33 function doClose() {
34 // Send a request message. See also websocket.cc for the request format. 34 // Send a request message. See also websocket.cc for the request format.
35 common.naclModule.postMessage('c;'); 35 common.naclModule.postMessage('c;');
36 } 36 }
37 </script> 37 </script>
38 </head> 38 </head>
39 <body onload="common.onload('<NAME>', '<tc>')"> 39 <body onload="common.onload('<NAME>', '<tc>', '<config>')">
40 <h1><TITLE></h1> 40 <h1><TITLE></h1>
41 <h2>Status: <code id="statusField">NO-STATUS</code></h2> 41 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
42 <div>Set a server URL, then push "Connect" button to establish a connection. 42 <div>Set a server URL, then push "Connect" button to establish a connection.
43 <br>"Send" button sends text message on the left text area. 43 <br>"Send" button sends text message on the left text area.
44 <br>"Close" button closes the connection. 44 <br>"Close" button closes the connection.
45 <div> 45 <div>
46 <form action="#" onsubmit="doConnect(); return false;"> 46 <form action="#" onsubmit="doConnect(); return false;">
47 <input type="text" id="url" style="width: 400px" 47 <input type="text" id="url" style="width: 400px"
48 value="ws://html5rocks.websocket.org/echo?encoding=text"> 48 value="ws://html5rocks.websocket.org/echo?encoding=text">
49 <input type="submit" value="Connect"> 49 <input type="submit" value="Connect">
50 </form> 50 </form>
51 51
52 <form action="#" onsubmit="doSend(); return false;"> 52 <form action="#" onsubmit="doSend(); return false;">
53 <input type="text" id="message" value="hello" style="width: 400px"> 53 <input type="text" id="message" value="hello" style="width: 400px">
54 <input type="submit" value="Send"> 54 <input type="submit" value="Send">
55 </form> 55 </form>
56 56
57 <input type="button" value="Close" onclick="doClose()"> 57 <input type="button" value="Close" onclick="doClose()">
58 <div id="listener"></div> 58 <div id="listener"></div>
59 <div id="log"></div> 59 <div id="log"></div>
60 </body> 60 </body>
61 </html> 61 </html>
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/tumbler/index.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698