| OLD | NEW |
| 1 .. _devcycle-application-structure: | 1 .. _devcycle-application-structure: |
| 2 | 2 |
| 3 ##################### | 3 ##################### |
| 4 Application Structure | 4 Application Structure |
| 5 ##################### | 5 ##################### |
| 6 | 6 |
| 7 .. contents:: | 7 .. contents:: |
| 8 :local: | 8 :local: |
| 9 :backlinks: none | 9 :backlinks: none |
| 10 :depth: 2 | 10 :depth: 2 |
| 11 | 11 |
| 12 This chapter of the Developer's Guide describes the general structure of a | 12 This section of the Developer's Guide describes the general structure of a |
| 13 Native Client application. The chapter assumes you are familiar with the | 13 Native Client application. The section assumes you are familiar with the |
| 14 material presented in the :doc:`Technical Overview <../../overview>`. | 14 material presented in the :doc:`Technical Overview <../../overview>`. |
| 15 | 15 |
| 16 | 16 |
| 17 .. Note:: | 17 .. Note:: |
| 18 :class: note | 18 :class: note |
| 19 | 19 |
| 20 The "Hello, World" example is used here to illustrate basic | 20 The "Hello, World" example is used here to illustrate basic |
| 21 Native Client programming techniques. You can find this code in the | 21 Native Client programming techniques. You can find this code in the |
| 22 */getting_started/part1* directory in the Native Client SDK download. | 22 */getting_started/part1* directory in the Native Client SDK download. |
| 23 | 23 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 The NaCl code is only invoked to handle various browser-issued | 243 The NaCl code is only invoked to handle various browser-issued |
| 244 events and callbacks. There is no need to shut down the NaCl instance by | 244 events and callbacks. There is no need to shut down the NaCl instance by |
| 245 calling the ``exit()`` function. NaCl modules will be shut down when the user | 245 calling the ``exit()`` function. NaCl modules will be shut down when the user |
| 246 leaves the web page, or the NaCl module's ``<embed>`` is otherwise destroyed. | 246 leaves the web page, or the NaCl module's ``<embed>`` is otherwise destroyed. |
| 247 If the NaCl module does call the ``exit()`` function, the instance will | 247 If the NaCl module does call the ``exit()`` function, the instance will |
| 248 issue a ``crash`` event | 248 issue a ``crash`` event |
| 249 :doc:`which can be handled in Javascript<progress-events>`. | 249 :doc:`which can be handled in Javascript<progress-events>`. |
| 250 | 250 |
| 251 While the ``CreateModule()`` factory function, the ``Module`` class, and the | 251 While the ``CreateModule()`` factory function, the ``Module`` class, and the |
| 252 ``Instance`` class are required for a Native Client application, the code | 252 ``Instance`` class are required for a Native Client application, the code |
| 253 samples shown above don't actually do anything. Subsequent chapters in the | 253 samples shown above don't actually do anything. Subsequent sections in the |
| 254 Developer's Guide build on these code samples and add more interesting | 254 Developer's Guide build on these code samples and add more interesting |
| 255 functionality. | 255 functionality. |
| OLD | NEW |