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 #ifndef PPAPI_CPP_INSTANCE_H_ | 5 #ifndef PPAPI_CPP_INSTANCE_H_ |
6 #define PPAPI_CPP_INSTANCE_H_ | 6 #define PPAPI_CPP_INSTANCE_H_ |
7 | 7 |
8 /// @file | 8 /// @file |
9 /// This file defines the C++ wrapper for an instance. | 9 /// This file defines the C++ wrapper for an instance. |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
17 #include "ppapi/c/ppb_console.h" | 17 #include "ppapi/c/ppb_console.h" |
18 #include "ppapi/cpp/instance_handle.h" | 18 #include "ppapi/cpp/instance_handle.h" |
19 #include "ppapi/cpp/view.h" | 19 #include "ppapi/cpp/view.h" |
20 | 20 |
21 // Windows defines 'PostMessage', so we have to undef it. | 21 // Windows defines 'PostMessage', so we have to undef it. |
22 #ifdef PostMessage | 22 #ifdef PostMessage |
23 #undef PostMessage | 23 #undef PostMessage |
24 #endif | 24 #endif |
25 | 25 |
26 struct PP_InputEvent; | |
27 | |
28 /// The C++ interface to the Pepper API. | 26 /// The C++ interface to the Pepper API. |
29 namespace pp { | 27 namespace pp { |
30 | 28 |
31 class Compositor; | 29 class Compositor; |
32 class Graphics2D; | 30 class Graphics2D; |
33 class Graphics3D; | 31 class Graphics3D; |
34 class InputEvent; | 32 class InputEvent; |
35 class InstanceHandle; | 33 class InstanceHandle; |
36 class MessageHandler; | 34 class MessageHandler; |
37 class MessageLoop; | 35 class MessageLoop; |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 private: | 630 private: |
633 PP_Instance pp_instance_; | 631 PP_Instance pp_instance_; |
634 | 632 |
635 typedef std::map<std::string, void*> InterfaceNameToObjectMap; | 633 typedef std::map<std::string, void*> InterfaceNameToObjectMap; |
636 InterfaceNameToObjectMap interface_name_to_objects_; | 634 InterfaceNameToObjectMap interface_name_to_objects_; |
637 }; | 635 }; |
638 | 636 |
639 } // namespace pp | 637 } // namespace pp |
640 | 638 |
641 #endif // PPAPI_CPP_INSTANCE_H_ | 639 #endif // PPAPI_CPP_INSTANCE_H_ |
OLD | NEW |