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

Side by Side Diff: mojo/examples/pepper_container_app/plugin_instance.cc

Issue 564573002: PPAPI: Make PPP_MessageHandler work in PNaCl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "mojo/examples/pepper_container_app/plugin_instance.h" 5 #include "mojo/examples/pepper_container_app/plugin_instance.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "mojo/examples/pepper_container_app/graphics_3d_resource.h" 8 #include "mojo/examples/pepper_container_app/graphics_3d_resource.h"
9 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h" 9 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 NOTIMPLEMENTED(); 222 NOTIMPLEMENTED();
223 } 223 }
224 224
225 void PluginInstance::PostMessage(PP_Instance instance, PP_Var message) { 225 void PluginInstance::PostMessage(PP_Instance instance, PP_Var message) {
226 NOTIMPLEMENTED(); 226 NOTIMPLEMENTED();
227 } 227 }
228 228
229 int32_t PluginInstance::RegisterMessageHandler( 229 int32_t PluginInstance::RegisterMessageHandler(
230 PP_Instance instance, 230 PP_Instance instance,
231 void* user_data, 231 void* user_data,
232 const PPP_MessageHandler_0_1* handler, 232 const PPP_MessageHandler_0_2* handler,
233 PP_Resource message_loop) { 233 PP_Resource message_loop) {
234 NOTIMPLEMENTED(); 234 NOTIMPLEMENTED();
235 return PP_ERROR_FAILED; 235 return PP_ERROR_FAILED;
236 }
237
238 // TODO(dmichael): Remove this. crbug.com/414398
239 int32_t PluginInstance::RegisterMessageHandler_1_1_Deprecated(
240 PP_Instance instance,
241 void* user_data,
242 const PPP_MessageHandler_0_1_Deprecated* handler,
243 PP_Resource message_loop) {
244 NOTIMPLEMENTED();
245 return PP_ERROR_FAILED;
236 } 246 }
237 247
238 void PluginInstance::UnregisterMessageHandler(PP_Instance instance) { 248 void PluginInstance::UnregisterMessageHandler(PP_Instance instance) {
239 NOTIMPLEMENTED(); 249 NOTIMPLEMENTED();
240 } 250 }
241 251
242 PP_Bool PluginInstance::SetCursor(PP_Instance instance, 252 PP_Bool PluginInstance::SetCursor(PP_Instance instance,
243 PP_MouseCursor_Type type, 253 PP_MouseCursor_Type type,
244 PP_Resource image, 254 PP_Resource image,
245 const PP_Point* hot_spot) { 255 const PP_Point* hot_spot) {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 } 435 }
426 436
427 PP_Var PluginInstance::GetPluginReferrerURL(PP_Instance instance, 437 PP_Var PluginInstance::GetPluginReferrerURL(PP_Instance instance,
428 PP_URLComponents_Dev* components) { 438 PP_URLComponents_Dev* components) {
429 NOTIMPLEMENTED(); 439 NOTIMPLEMENTED();
430 return PP_MakeUndefined(); 440 return PP_MakeUndefined();
431 } 441 }
432 442
433 } // namespace examples 443 } // namespace examples
434 } // namespace mojo 444 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/examples/pepper_container_app/plugin_instance.h ('k') | native_client_sdk/src/libraries/ppapi/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698