OLD | NEW |
1 .. _devcycle-native-client-modules: | 1 .. _devcycle-native-client-modules: |
2 | 2 |
| 3 .. include:: /migration/deprecation.inc |
| 4 |
3 ##################### | 5 ##################### |
4 Native Client Modules | 6 Native Client Modules |
5 ##################### | 7 ##################### |
6 | 8 |
7 This document describes the classes and functions that you need to implement in | 9 This document describes the classes and functions that you need to implement in |
8 a Native Client module in order for Chrome to load, initialize, and run it. The | 10 a Native Client module in order for Chrome to load, initialize, and run it. The |
9 requirements are the same regardless of whether or not the module uses PNaCl, | 11 requirements are the same regardless of whether or not the module uses PNaCl, |
10 but depend on whether the module is written in C or C++. | 12 but depend on whether the module is written in C or C++. |
11 | 13 |
12 .. contents:: | 14 .. contents:: |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 instance's ``HandleMessage()`` function every time the JavaScript code in an | 190 instance's ``HandleMessage()`` function every time the JavaScript code in an |
189 application calls ``postMessage()`` to send a message to the instance. See the | 191 application calls ``postMessage()`` to send a message to the instance. See the |
190 :doc:`Native Client messaging system<message-system>` for more information about | 192 :doc:`Native Client messaging system<message-system>` for more information about |
191 how to send messages between JavaScript code and Native Client modules. | 193 how to send messages between JavaScript code and Native Client modules. |
192 | 194 |
193 While the ``CreateModule()`` factory function, the ``Module`` class, and the | 195 While the ``CreateModule()`` factory function, the ``Module`` class, and the |
194 ``Instance`` class are required for a Native Client application, the code | 196 ``Instance`` class are required for a Native Client application, the code |
195 samples shown above don't actually do anything. Subsequent documents in the | 197 samples shown above don't actually do anything. Subsequent documents in the |
196 Developer's Guide build on these code samples and add more interesting | 198 Developer's Guide build on these code samples and add more interesting |
197 functionality. | 199 functionality. |
OLD | NEW |