| OLD | NEW |
| 1 .. _tutorial: | 1 .. _tutorial: |
| 2 | 2 |
| 3 ###################################### | 3 ###################################### |
| 4 C++ Tutorial: Getting Started (Part 1) | 4 C++ Tutorial: Getting Started (Part 1) |
| 5 ###################################### | 5 ###################################### |
| 6 | 6 |
| 7 .. contents:: | 7 .. contents:: |
| 8 :local: | 8 :local: |
| 9 :backlinks: none | 9 :backlinks: none |
| 10 :depth: 2 | 10 :depth: 2 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 std::string message = var_message.AsString(); | 231 std::string message = var_message.AsString(); |
| 232 pp::Var var_reply; | 232 pp::Var var_reply; |
| 233 if (message == kHelloString) { | 233 if (message == kHelloString) { |
| 234 var_reply = pp::Var(kReplyString); | 234 var_reply = pp::Var(kReplyString); |
| 235 PostMessage(var_reply); | 235 PostMessage(var_reply); |
| 236 } | 236 } |
| 237 } | 237 } |
| 238 | 238 |
| 239 See the Pepper API documentation for additional information about the | 239 See the Pepper API documentation for additional information about the |
| 240 `pp::Instance.HandleMessage | 240 `pp::Instance.HandleMessage |
| 241 <https://developers.google.com/native-client/peppercpp/classpp_1_1_instance.html
#a5dce8c8b36b1df7cfcc12e42397a35e8>`_ | 241 </native-client/pepper_stable/cpp/classpp_1_1_instance.html#a5dce8c8b36b1df7cfcc
12e42397a35e8>`_ |
| 242 and `pp::Instance.PostMessage | 242 and `pp::Instance.PostMessage |
| 243 <https://developers.google.com/native-client/peppercpp/classpp_1_1_instance.html
#a67e888a4e4e23effe7a09625e73ecae9>`_ | 243 </native-client/pepper_stable/cpp/classpp_1_1_instance.html#a67e888a4e4e23effe7a
09625e73ecae9>`_ |
| 244 member functions. | 244 member functions. |
| 245 | 245 |
| 246 Step 8: Compile the Native Client module and run the application again | 246 Step 8: Compile the Native Client module and run the application again |
| 247 ====================================================================== | 247 ====================================================================== |
| 248 | 248 |
| 249 Compile the Native Client module by running the ``make`` command again. | 249 Compile the Native Client module by running the ``make`` command again. |
| 250 | 250 |
| 251 Re-run the application by reloading http://localhost:5103/part1 in Chrome. | 251 Re-run the application by reloading http://localhost:5103/part1 in Chrome. |
| 252 | 252 |
| 253 After Chrome loads the Native Client module, you should see an alert panel | 253 After Chrome loads the Native Client module, you should see an alert panel |
| (...skipping 21 matching lines...) Expand all Loading... |
| 275 * :ref:`FAQ Troubleshooting <faq_troubleshooting>`. | 275 * :ref:`FAQ Troubleshooting <faq_troubleshooting>`. |
| 276 * The :doc:`Progress Events </devguide/coding/progress-events>` document | 276 * The :doc:`Progress Events </devguide/coding/progress-events>` document |
| 277 contains some useful information about handling error events. | 277 contains some useful information about handling error events. |
| 278 | 278 |
| 279 Next steps | 279 Next steps |
| 280 ========== | 280 ========== |
| 281 | 281 |
| 282 * See the :doc:`Application Structure </devguide/coding/application-structure>` | 282 * See the :doc:`Application Structure </devguide/coding/application-structure>` |
| 283 chapter in the Developer's Guide for information about how to structure a | 283 chapter in the Developer's Guide for information about how to structure a |
| 284 Native Client module. | 284 Native Client module. |
| 285 * Check the `C++ Reference | 285 * Check the `C++ Reference </native-client/pepper_stable/cpp>`_ for details |
| 286 <https://developers.google.com/native-client/peppercpp>`_ for details about | 286 about how to use the Pepper APIs. |
| 287 how to use the Pepper APIs. | |
| 288 * Browse through the source code of the SDK examples (in the ``examples`` | 287 * Browse through the source code of the SDK examples (in the ``examples`` |
| 289 directory) to learn additional techniques for writing Native Client | 288 directory) to learn additional techniques for writing Native Client |
| 290 applications and using the Pepper APIs. | 289 applications and using the Pepper APIs. |
| 291 * See the :doc:`Building </devguide/devcycle/building>`, :doc:`Running | 290 * See the :doc:`Building </devguide/devcycle/building>`, :doc:`Running |
| 292 </devguide/devcycle/running>`, and :doc:`Debugging pages | 291 </devguide/devcycle/running>`, and :doc:`Debugging pages |
| 293 </devguide/devcycle/debugging>` for information about how to build, run, and | 292 </devguide/devcycle/debugging>` for information about how to build, run, and |
| 294 debug Native Client applications. | 293 debug Native Client applications. |
| 295 * Check the `naclports <http://code.google.com/p/naclports/>`_ project to see | 294 * Check the `naclports <http://code.google.com/p/naclports/>`_ project to see |
| 296 what libraries have been ported for use with Native Client. If you port an | 295 what libraries have been ported for use with Native Client. If you port an |
| 297 open-source library for your own use, we recommend adding it to naclports | 296 open-source library for your own use, we recommend adding it to naclports |
| 298 (see `How to check code into naclports | 297 (see `How to check code into naclports |
| 299 <http://code.google.com/p/naclports/wiki/HowTo_Checkin>`_). | 298 <http://code.google.com/p/naclports/wiki/HowTo_Checkin>`_). |
| OLD | NEW |