| 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_THUNK_INSTANCE_API_H_ | 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_ |
| 6 #define PPAPI_THUNK_INSTANCE_API_H_ | 6 #define PPAPI_THUNK_INSTANCE_API_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ppapi/c/dev/ppb_messaging_deprecated.h" |
| 10 #include "ppapi/c/dev/ppb_url_util_dev.h" | 11 #include "ppapi/c/dev/ppb_url_util_dev.h" |
| 11 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_size.h" | 14 #include "ppapi/c/pp_size.h" |
| 14 #include "ppapi/c/pp_time.h" | 15 #include "ppapi/c/pp_time.h" |
| 15 #include "ppapi/c/ppb_audio_config.h" | 16 #include "ppapi/c/ppb_audio_config.h" |
| 16 #include "ppapi/c/ppb_console.h" | 17 #include "ppapi/c/ppb_console.h" |
| 17 #include "ppapi/c/ppb_gamepad.h" | 18 #include "ppapi/c/ppb_gamepad.h" |
| 18 #include "ppapi/c/ppb_instance.h" | 19 #include "ppapi/c/ppb_instance.h" |
| 19 #include "ppapi/c/ppb_mouse_cursor.h" | 20 #include "ppapi/c/ppb_mouse_cursor.h" |
| 20 #include "ppapi/c/ppb_text_input_controller.h" | 21 #include "ppapi/c/ppb_text_input_controller.h" |
| 21 #include "ppapi/c/private/pp_content_decryptor.h" | 22 #include "ppapi/c/private/pp_content_decryptor.h" |
| 22 #include "ppapi/c/private/ppb_instance_private.h" | 23 #include "ppapi/c/private/ppb_instance_private.h" |
| 23 #include "ppapi/shared_impl/api_id.h" | 24 #include "ppapi/shared_impl/api_id.h" |
| 24 #include "ppapi/shared_impl/resource.h" | 25 #include "ppapi/shared_impl/resource.h" |
| 25 #include "ppapi/shared_impl/singleton_resource_id.h" | 26 #include "ppapi/shared_impl/singleton_resource_id.h" |
| 26 | 27 |
| 27 // Windows headers interfere with this file. | 28 // Windows headers interfere with this file. |
| 28 #ifdef PostMessage | 29 #ifdef PostMessage |
| 29 #undef PostMessage | 30 #undef PostMessage |
| 30 #endif | 31 #endif |
| 31 | 32 |
| 32 struct PP_DecryptedBlockInfo; | 33 struct PP_DecryptedBlockInfo; |
| 33 struct PP_DecryptedFrameInfo; | 34 struct PP_DecryptedFrameInfo; |
| 34 struct PPP_MessageHandler_0_1; | 35 struct PPP_MessageHandler_0_2; |
| 35 | 36 |
| 36 namespace ppapi { | 37 namespace ppapi { |
| 37 | 38 |
| 38 class Resource; | 39 class Resource; |
| 39 class TrackedCallback; | 40 class TrackedCallback; |
| 40 struct ViewData; | 41 struct ViewData; |
| 41 | 42 |
| 42 namespace thunk { | 43 namespace thunk { |
| 43 | 44 |
| 44 class PPB_Flash_API; | 45 class PPB_Flash_API; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 virtual void ClearInputEventRequest(PP_Instance instance, | 112 virtual void ClearInputEventRequest(PP_Instance instance, |
| 112 uint32_t event_classes) = 0; | 113 uint32_t event_classes) = 0; |
| 113 | 114 |
| 114 // InputEventPrivate. | 115 // InputEventPrivate. |
| 115 virtual void StartTrackingLatency(PP_Instance instance) = 0; | 116 virtual void StartTrackingLatency(PP_Instance instance) = 0; |
| 116 | 117 |
| 117 // Messaging. | 118 // Messaging. |
| 118 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; | 119 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; |
| 119 virtual int32_t RegisterMessageHandler(PP_Instance instance, | 120 virtual int32_t RegisterMessageHandler(PP_Instance instance, |
| 120 void* user_data, | 121 void* user_data, |
| 121 const PPP_MessageHandler_0_1* handler, | 122 const PPP_MessageHandler_0_2* handler, |
| 122 PP_Resource message_loop) = 0; | 123 PP_Resource message_loop) = 0; |
| 124 virtual int32_t RegisterMessageHandler_1_1_Deprecated( |
| 125 PP_Instance instance, |
| 126 void* user_data, |
| 127 const PPP_MessageHandler_0_1_Deprecated* handler, |
| 128 PP_Resource message_loop) = 0; |
| 123 virtual void UnregisterMessageHandler(PP_Instance instance) = 0; | 129 virtual void UnregisterMessageHandler(PP_Instance instance) = 0; |
| 124 | 130 |
| 125 // Mouse cursor. | 131 // Mouse cursor. |
| 126 virtual PP_Bool SetCursor(PP_Instance instance, | 132 virtual PP_Bool SetCursor(PP_Instance instance, |
| 127 PP_MouseCursor_Type type, | 133 PP_MouseCursor_Type type, |
| 128 PP_Resource image, | 134 PP_Resource image, |
| 129 const PP_Point* hot_spot) = 0; | 135 const PP_Point* hot_spot) = 0; |
| 130 | 136 |
| 131 // MouseLock. | 137 // MouseLock. |
| 132 virtual int32_t LockMouse(PP_Instance instance, | 138 virtual int32_t LockMouse(PP_Instance instance, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 PP_URLComponents_Dev* components) = 0; | 227 PP_URLComponents_Dev* components) = 0; |
| 222 #endif // !defined(OS_NACL) | 228 #endif // !defined(OS_NACL) |
| 223 | 229 |
| 224 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 230 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
| 225 }; | 231 }; |
| 226 | 232 |
| 227 } // namespace thunk | 233 } // namespace thunk |
| 228 } // namespace ppapi | 234 } // namespace ppapi |
| 229 | 235 |
| 230 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 236 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
| OLD | NEW |