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_url_util_dev.h" | 10 #include "ppapi/c/dev/ppb_url_util_dev.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "ppapi/shared_impl/resource.h" | 23 #include "ppapi/shared_impl/resource.h" |
24 #include "ppapi/shared_impl/singleton_resource_id.h" | 24 #include "ppapi/shared_impl/singleton_resource_id.h" |
25 | 25 |
26 // Windows headers interfere with this file. | 26 // Windows headers interfere with this file. |
27 #ifdef PostMessage | 27 #ifdef PostMessage |
28 #undef PostMessage | 28 #undef PostMessage |
29 #endif | 29 #endif |
30 | 30 |
31 struct PP_DecryptedBlockInfo; | 31 struct PP_DecryptedBlockInfo; |
32 struct PP_DecryptedFrameInfo; | 32 struct PP_DecryptedFrameInfo; |
| 33 struct PPP_MessageHandler_0_1; |
33 | 34 |
34 namespace ppapi { | 35 namespace ppapi { |
35 | 36 |
36 class Resource; | 37 class Resource; |
37 class TrackedCallback; | 38 class TrackedCallback; |
38 struct ViewData; | 39 struct ViewData; |
39 | 40 |
40 namespace thunk { | 41 namespace thunk { |
41 | 42 |
42 class PPB_Flash_API; | 43 class PPB_Flash_API; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, | 108 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
108 uint32_t event_classes) = 0; | 109 uint32_t event_classes) = 0; |
109 virtual void ClearInputEventRequest(PP_Instance instance, | 110 virtual void ClearInputEventRequest(PP_Instance instance, |
110 uint32_t event_classes) = 0; | 111 uint32_t event_classes) = 0; |
111 | 112 |
112 // InputEventPrivate. | 113 // InputEventPrivate. |
113 virtual void StartTrackingLatency(PP_Instance instance) = 0; | 114 virtual void StartTrackingLatency(PP_Instance instance) = 0; |
114 | 115 |
115 // Messaging. | 116 // Messaging. |
116 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; | 117 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; |
| 118 virtual int32_t RegisterMessageHandler(PP_Instance instance, |
| 119 void* user_data, |
| 120 const PPP_MessageHandler_0_1* handler, |
| 121 PP_Resource message_loop) = 0; |
| 122 virtual void UnregisterMessageHandler(PP_Instance instance) = 0; |
117 | 123 |
118 // Mouse cursor. | 124 // Mouse cursor. |
119 virtual PP_Bool SetCursor(PP_Instance instance, | 125 virtual PP_Bool SetCursor(PP_Instance instance, |
120 PP_MouseCursor_Type type, | 126 PP_MouseCursor_Type type, |
121 PP_Resource image, | 127 PP_Resource image, |
122 const PP_Point* hot_spot) = 0; | 128 const PP_Point* hot_spot) = 0; |
123 | 129 |
124 // MouseLock. | 130 // MouseLock. |
125 virtual int32_t LockMouse(PP_Instance instance, | 131 virtual int32_t LockMouse(PP_Instance instance, |
126 scoped_refptr<TrackedCallback> callback) = 0; | 132 scoped_refptr<TrackedCallback> callback) = 0; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 PP_URLComponents_Dev* components) = 0; | 202 PP_URLComponents_Dev* components) = 0; |
197 #endif // !defined(OS_NACL) | 203 #endif // !defined(OS_NACL) |
198 | 204 |
199 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 205 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
200 }; | 206 }; |
201 | 207 |
202 } // namespace thunk | 208 } // namespace thunk |
203 } // namespace ppapi | 209 } // namespace ppapi |
204 | 210 |
205 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 211 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |