OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 | 7 |
8 <html> | 8 <html> |
9 <head> | 9 <head> |
10 <title>Chrome AppsV2 Key Event Tester</title> | 10 <title>Chrome AppsV2 Key Event Tester</title> |
11 <script src="chord_tracker.js"></script> | 11 <script src="chord_tracker.js"></script> |
| 12 <script src="event_listeners.js"></script> |
12 <script src="keyboard_map.js"></script> | 13 <script src="keyboard_map.js"></script> |
13 <script src="main.js"></script> | 14 <script src="main.js"></script> |
14 <link rel="stylesheet" href="main.css"> | 15 <link rel="stylesheet" href="main.css"> |
15 </head> | 16 </head> |
16 <body> | 17 <body> |
17 <h2>Chrome AppsV2 Key Event Tester</h2> | 18 <h2>Chrome AppsV2 Key Event Tester</h2> |
| 19 <div class="controls"> |
| 20 <button id="show-log">Debug log</button> |
| 21 <button id="clear-log">Clear logs</button> |
| 22 </div> |
18 <div id="pnacl-listener"> | 23 <div id="pnacl-listener"> |
19 PNaCl focus box: | 24 <embed id="pnacl-plugin" width=0 height=0 |
20 <embed id="pnacl-plugin" width=100 height=12 | |
21 src="remoting_key_tester.nmf" type="application/x-pnacl" /> | 25 src="remoting_key_tester.nmf" type="application/x-pnacl" /> |
22 (click inside to get focus, yellow background means it has focus). | |
23 </div> | 26 </div> |
24 <button id="clear-log">Clear logs</button> | |
25 <hr/> | |
26 <div class="logs"> | 27 <div class="logs"> |
27 <div class="summary-log-container"> | 28 <div class="summary-log-container"> |
28 Summary of JavaScript logs: | 29 Summary of JavaScript logs: |
29 <div id="javascript-log"> | 30 <div id="javascript-log"> |
30 </div> | 31 </div> |
31 </div> | 32 </div> |
32 <div class="summary-log-container"> | 33 <div class="summary-log-container"> |
33 Summary of PNaCl logs: | 34 Summary of PNaCl logs: |
34 <div id="pnacl-log"> | 35 <div id="pnacl-log"> |
35 </div> | 36 </div> |
36 </div> | 37 </div> |
37 <div class="text-log-container"> | 38 <div id="text-log-container" hidden> |
38 Text log of JSON-ified events: | 39 <div> |
39 <div id="text-log"> | 40 </div> |
| 41 <div class="controls"> |
| 42 <button id="hide-log">Close</button> |
| 43 </div> |
| 44 <div id="text-log" class="selectable"> |
40 </div> | 45 </div> |
41 </div> | 46 </div> |
42 </div> | 47 </div> |
43 </body> | 48 </body> |
44 </html> | 49 </html> |
OLD | NEW |