| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <ppapi/cpp/module.h> | 5 #include <ppapi/cpp/module.h> |
| 6 | 6 |
| 7 #include "examples/pong/pong.h" | 7 #include "examples/pong/pong.h" |
| 8 | 8 |
| 9 namespace pong { | 9 namespace pong { |
| 10 // The Module class. The browser calls the CreateInstance() method to create | 10 // The Module class. The browser calls the CreateInstance() method to create |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // Factory function called by the browser when the module is first loaded. | 25 // Factory function called by the browser when the module is first loaded. |
| 26 // The browser keeps a singleton of this module. It calls the | 26 // The browser keeps a singleton of this module. It calls the |
| 27 // CreateInstance() method on the object you return to make instances. There | 27 // CreateInstance() method on the object you return to make instances. There |
| 28 // is one instance per <embed> tag on the page. This is the main binding | 28 // is one instance per <embed> tag on the page. This is the main binding |
| 29 // point for your NaCl module with the browser. | 29 // point for your NaCl module with the browser. |
| 30 namespace pp { | 30 namespace pp { |
| 31 Module* CreateModule() { | 31 Module* CreateModule() { |
| 32 return new pong::PongModule(); | 32 return new pong::PongModule(); |
| 33 } | 33 } |
| 34 } // namespace pp | 34 } // namespace pp |
| OLD | NEW |