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

Side by Side Diff: ppapi/proxy/ppb_instance_proxy.cc

Issue 9373032: PPAPI: Proxy VarArrayBuffer for out-of-process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge... again Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/plugin_var_serialization_rules.cc ('k') | ppapi/proxy/serialized_var.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ppapi/proxy/ppb_instance_proxy.h" 5 #include "ppapi/proxy/ppb_instance_proxy.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/pp_var.h" 8 #include "ppapi/c/pp_var.h"
9 #include "ppapi/c/ppb_instance.h" 9 #include "ppapi/c/ppb_instance.h"
10 #include "ppapi/c/ppb_messaging.h" 10 #include "ppapi/c/ppb_messaging.h"
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 } 484 }
485 } 485 }
486 486
487 void PPB_Instance_Proxy::OnHostMsgClearInputEvents(PP_Instance instance, 487 void PPB_Instance_Proxy::OnHostMsgClearInputEvents(PP_Instance instance,
488 uint32_t event_classes) { 488 uint32_t event_classes) {
489 EnterInstanceNoLock enter(instance, false); 489 EnterInstanceNoLock enter(instance, false);
490 if (enter.succeeded()) 490 if (enter.succeeded())
491 enter.functions()->ClearInputEventRequest(instance, event_classes); 491 enter.functions()->ClearInputEventRequest(instance, event_classes);
492 } 492 }
493 493
494 void PPB_Instance_Proxy::OnHostMsgPostMessage(PP_Instance instance, 494 void PPB_Instance_Proxy::OnHostMsgPostMessage(
495 SerializedVarReceiveInput message) { 495 PP_Instance instance,
496 SerializedVarReceiveInput message) {
496 EnterInstanceNoLock enter(instance, false); 497 EnterInstanceNoLock enter(instance, false);
497 if (enter.succeeded()) 498 if (enter.succeeded())
498 enter.functions()->PostMessage(instance, message.Get(dispatcher())); 499 enter.functions()->PostMessage(instance, message.Get(dispatcher()));
499 } 500 }
500 501
501 void PPB_Instance_Proxy::OnHostMsgLockMouse(PP_Instance instance) { 502 void PPB_Instance_Proxy::OnHostMsgLockMouse(PP_Instance instance) {
502 EnterHostFunctionForceCallback<PPB_Instance_FunctionAPI> enter( 503 EnterHostFunctionForceCallback<PPB_Instance_FunctionAPI> enter(
503 instance, callback_factory_, 504 instance, callback_factory_,
504 &PPB_Instance_Proxy::MouseLockCompleteInHost, instance); 505 &PPB_Instance_Proxy::MouseLockCompleteInHost, instance);
505 if (enter.succeeded()) 506 if (enter.succeeded())
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 } 578 }
578 579
579 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, 580 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result,
580 PP_Instance instance) { 581 PP_Instance instance) {
581 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( 582 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete(
582 API_ID_PPB_INSTANCE, instance, result)); 583 API_ID_PPB_INSTANCE, instance, result));
583 } 584 }
584 585
585 } // namespace proxy 586 } // namespace proxy
586 } // namespace ppapi 587 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_var_serialization_rules.cc ('k') | ppapi/proxy/serialized_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698