| OLD | NEW |
| 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 <meta http-equiv="Pragma" content="no-cache"> | 9 <meta http-equiv="Pragma" content="no-cache"> |
| 10 <meta http-equiv="Expires" content="-1"> | 10 <meta http-equiv="Expires" content="-1"> |
| 11 <title>{{title}}</title> | 11 <title>{{title}}</title> |
| 12 <script type="text/javascript" src="common.js"></script> | 12 <script type="text/javascript" src="common.js"></script> |
| 13 </head> | 13 </head> |
| 14 <body data-width="300" data-height="300" {{attrs}}> | 14 <body data-width="300" data-height="300" {{attrs}}> |
| 15 <h1>{{title}}</h1> | 15 <h1>{{title}}</h1> |
| 16 <h2>Status: <code id="statusField">NO-STATUS</code></h2> | 16 <h2>Status: <code id="statusField">NO-STATUS</code></h2> |
| 17 <h1>Full-screen and Mouse-lock Example</h1> | |
| 18 <ul> | 17 <ul> |
| 19 <li>There are two different kinds of fullscreen mode: "tab fullscreen" and | 18 <li>There are two different kinds of fullscreen mode: "tab fullscreen" and |
| 20 "browser fullscreen". | 19 "browser fullscreen". |
| 21 <ul> | 20 <ul> |
| 22 <li>Tab fullscreen refers to when a tab enters fullscreen mode via the | 21 <li>Tab fullscreen refers to when a tab enters fullscreen mode via the |
| 23 JS or Pepper fullscreen API. The NaCl Module will enter or | 22 JS or Pepper fullscreen API. The NaCl Module will enter or |
| 24 exit fullscreen when it has focus and the enter key is pressed.</li> | 23 exit fullscreen when it has focus and the enter key is pressed.</li> |
| 25 <li>Browser fullscreen refers to the user putting the browser itself | 24 <li>Browser fullscreen refers to the user putting the browser itself |
| 26 into fullscreen mode from the UI (e.g., pressing F11).</li> | 25 into fullscreen mode from the UI (e.g., pressing F11).</li> |
| 27 </ul> | 26 </ul> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 48 movement. Notice that messages are normally not captured when the cursor | 47 movement. Notice that messages are normally not captured when the cursor |
| 49 is outside of the grey box.</p> | 48 is outside of the grey box.</p> |
| 50 <p> By clicking on the grey box, we set focus and turn on mouse lock. Now all | 49 <p> By clicking on the grey box, we set focus and turn on mouse lock. Now all |
| 51 mouse messages are sent to the module.</p> | 50 mouse messages are sent to the module.</p> |
| 52 <p> This behavior is maintained even in tab and/or browser fullscreen.</p> | 51 <p> This behavior is maintained even in tab and/or browser fullscreen.</p> |
| 53 <!-- The NaCl plugin will be embedded inside the element with id "listener". | 52 <!-- The NaCl plugin will be embedded inside the element with id "listener". |
| 54 See common.js.--> | 53 See common.js.--> |
| 55 <div id="listener"></div> | 54 <div id="listener"></div> |
| 56 </body> | 55 </body> |
| 57 </html> | 56 </html> |
| OLD | NEW |