| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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 <stdint.h> |
| 6 |
| 5 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 6 #include "ppapi/cpp/input_event.h" | 8 #include "ppapi/cpp/input_event.h" |
| 7 #include "ppapi/cpp/instance.h" | 9 #include "ppapi/cpp/instance.h" |
| 8 #include "ppapi/cpp/module.h" | 10 #include "ppapi/cpp/module.h" |
| 9 #include "ppapi/utility/completion_callback_factory.h" | 11 #include "ppapi/utility/completion_callback_factory.h" |
| 10 #include "ppapi/utility/threading/simple_thread.h" | 12 #include "ppapi/utility/threading/simple_thread.h" |
| 11 | 13 |
| 12 class MyInstance : public pp::Instance { | 14 class MyInstance : public pp::Instance { |
| 13 public: | 15 public: |
| 14 MyInstance(PP_Instance instance) : pp::Instance(instance) { | 16 MyInstance(PP_Instance instance) : pp::Instance(instance) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 namespace pp { | 55 namespace pp { |
| 54 | 56 |
| 55 // Factory function for your specialization of the Module object. | 57 // Factory function for your specialization of the Module object. |
| 56 Module* CreateModule() { | 58 Module* CreateModule() { |
| 57 return new MyModule(); | 59 return new MyModule(); |
| 58 } | 60 } |
| 59 | 61 |
| 60 } // namespace pp | 62 } // namespace pp |
| OLD | NEW |