Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: ppapi/thunk/ppb_instance_api.h

Issue 564573002: PPAPI: Make PPP_MessageHandler work in PNaCl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13 matching lines...) Expand all
24 #include "ppapi/shared_impl/resource.h" 24 #include "ppapi/shared_impl/resource.h"
25 #include "ppapi/shared_impl/singleton_resource_id.h" 25 #include "ppapi/shared_impl/singleton_resource_id.h"
26 26
27 // Windows headers interfere with this file. 27 // Windows headers interfere with this file.
28 #ifdef PostMessage 28 #ifdef PostMessage
29 #undef PostMessage 29 #undef PostMessage
30 #endif 30 #endif
31 31
32 struct PP_DecryptedBlockInfo; 32 struct PP_DecryptedBlockInfo;
33 struct PP_DecryptedFrameInfo; 33 struct PP_DecryptedFrameInfo;
34 struct PPP_MessageHandler_0_1; 34 struct PPP_MessageHandler_0_2;
35 35
36 namespace ppapi { 36 namespace ppapi {
37 37
38 class Resource; 38 class Resource;
39 class TrackedCallback; 39 class TrackedCallback;
40 struct ViewData; 40 struct ViewData;
41 41
42 namespace thunk { 42 namespace thunk {
43 43
44 class PPB_Flash_API; 44 class PPB_Flash_API;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 virtual void ClearInputEventRequest(PP_Instance instance, 111 virtual void ClearInputEventRequest(PP_Instance instance,
112 uint32_t event_classes) = 0; 112 uint32_t event_classes) = 0;
113 113
114 // InputEventPrivate. 114 // InputEventPrivate.
115 virtual void StartTrackingLatency(PP_Instance instance) = 0; 115 virtual void StartTrackingLatency(PP_Instance instance) = 0;
116 116
117 // Messaging. 117 // Messaging.
118 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; 118 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0;
119 virtual int32_t RegisterMessageHandler(PP_Instance instance, 119 virtual int32_t RegisterMessageHandler(PP_Instance instance,
120 void* user_data, 120 void* user_data,
121 const PPP_MessageHandler_0_1* handler, 121 const PPP_MessageHandler_0_2* handler,
122 PP_Resource message_loop) = 0; 122 PP_Resource message_loop) = 0;
123 virtual void UnregisterMessageHandler(PP_Instance instance) = 0; 123 virtual void UnregisterMessageHandler(PP_Instance instance) = 0;
124 124
125 // Mouse cursor. 125 // Mouse cursor.
126 virtual PP_Bool SetCursor(PP_Instance instance, 126 virtual PP_Bool SetCursor(PP_Instance instance,
127 PP_MouseCursor_Type type, 127 PP_MouseCursor_Type type,
128 PP_Resource image, 128 PP_Resource image,
129 const PP_Point* hot_spot) = 0; 129 const PP_Point* hot_spot) = 0;
130 130
131 // MouseLock. 131 // MouseLock.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 PP_URLComponents_Dev* components) = 0; 221 PP_URLComponents_Dev* components) = 0;
222 #endif // !defined(OS_NACL) 222 #endif // !defined(OS_NACL)
223 223
224 static const ApiID kApiID = API_ID_PPB_INSTANCE; 224 static const ApiID kApiID = API_ID_PPB_INSTANCE;
225 }; 225 };
226 226
227 } // namespace thunk 227 } // namespace thunk
228 } // namespace ppapi 228 } // namespace ppapi
229 229
230 #endif // PPAPI_THUNK_INSTANCE_API_H_ 230 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698