| 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 "ppapi/c/dev/ppb_console_dev.h" | 8 #include "ppapi/c/dev/ppb_console_dev.h" |
| 9 #include "ppapi/c/dev/ppb_url_util_dev.h" | 9 #include "ppapi/c/dev/ppb_url_util_dev.h" |
| 10 #include "ppapi/c/pp_bool.h" |
| 10 #include "ppapi/c/pp_completion_callback.h" | 11 #include "ppapi/c/pp_completion_callback.h" |
| 12 #include "ppapi/c/pp_size.h" |
| 13 #include "ppapi/c/pp_time.h" |
| 11 #include "ppapi/c/ppb_audio_config.h" | 14 #include "ppapi/c/ppb_audio_config.h" |
| 12 #include "ppapi/c/ppb_gamepad.h" | 15 #include "ppapi/c/ppb_gamepad.h" |
| 13 #include "ppapi/c/ppb_instance.h" | 16 #include "ppapi/c/ppb_instance.h" |
| 14 #include "ppapi/c/pp_bool.h" | |
| 15 #include "ppapi/c/pp_size.h" | |
| 16 #include "ppapi/c/private/ppb_instance_private.h" | 17 #include "ppapi/c/private/ppb_instance_private.h" |
| 17 #include "ppapi/shared_impl/api_id.h" | 18 #include "ppapi/shared_impl/api_id.h" |
| 18 | 19 |
| 19 // Windows headers interfere with this file. | 20 // Windows headers interfere with this file. |
| 20 #ifdef PostMessage | 21 #ifdef PostMessage |
| 21 #undef PostMessage | 22 #undef PostMessage |
| 22 #endif | 23 #endif |
| 23 | 24 |
| 24 namespace ppapi { | 25 namespace ppapi { |
| 25 | 26 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 virtual void SampleGamepads(PP_Instance instance, | 86 virtual void SampleGamepads(PP_Instance instance, |
| 86 PP_GamepadsSampleData* data) = 0; | 87 PP_GamepadsSampleData* data) = 0; |
| 87 | 88 |
| 88 // InputEvent. | 89 // InputEvent. |
| 89 virtual int32_t RequestInputEvents(PP_Instance instance, | 90 virtual int32_t RequestInputEvents(PP_Instance instance, |
| 90 uint32_t event_classes) = 0; | 91 uint32_t event_classes) = 0; |
| 91 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, | 92 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
| 92 uint32_t event_classes) = 0; | 93 uint32_t event_classes) = 0; |
| 93 virtual void ClearInputEventRequest(PP_Instance instance, | 94 virtual void ClearInputEventRequest(PP_Instance instance, |
| 94 uint32_t event_classes) = 0; | 95 uint32_t event_classes) = 0; |
| 96 virtual void ClosePendingUserGesture(PP_Instance instance, |
| 97 PP_TimeTicks timestamp) = 0; |
| 95 | 98 |
| 96 // Messaging. | 99 // Messaging. |
| 97 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; | 100 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; |
| 98 | 101 |
| 99 // MouseLock. | 102 // MouseLock. |
| 100 virtual int32_t LockMouse(PP_Instance instance, | 103 virtual int32_t LockMouse(PP_Instance instance, |
| 101 PP_CompletionCallback callback) = 0; | 104 PP_CompletionCallback callback) = 0; |
| 102 virtual void UnlockMouse(PP_Instance instance) = 0; | 105 virtual void UnlockMouse(PP_Instance instance) = 0; |
| 103 | 106 |
| 104 // Zoom. | 107 // Zoom. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 120 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, | 123 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, |
| 121 PP_URLComponents_Dev* components) = 0; | 124 PP_URLComponents_Dev* components) = 0; |
| 122 | 125 |
| 123 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 126 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
| 124 }; | 127 }; |
| 125 | 128 |
| 126 } // namespace thunk | 129 } // namespace thunk |
| 127 } // namespace ppapi | 130 } // namespace ppapi |
| 128 | 131 |
| 129 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 132 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
| OLD | NEW |