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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_mouse_lock.cc

Issue 8295023: Move PPB/PPP_MouseLock out of dev/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and resolve conflicts. Created 9 years, 2 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "native_client/src/shared/ppapi_proxy/plugin_ppb_mouse_lock.h" 5 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_mouse_lock.h"
6 6
7 #include "native_client/src/include/portability.h" 7 #include "native_client/src/include/portability.h"
8 #include "native_client/src/shared/ppapi_proxy/plugin_callback.h" 8 #include "native_client/src/shared/ppapi_proxy/plugin_callback.h"
9 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" 9 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
10 #include "native_client/src/shared/ppapi_proxy/utility.h" 10 #include "native_client/src/shared/ppapi_proxy/utility.h"
11 #include "ppapi/c/dev/ppb_mouse_lock_dev.h"
12 #include "ppapi/c/pp_completion_callback.h" 11 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_errors.h" 12 #include "ppapi/c/pp_errors.h"
13 #include "ppapi/c/ppb_mouse_lock.h"
14 #include "srpcgen/ppb_rpc.h" 14 #include "srpcgen/ppb_rpc.h"
15 15
16 namespace ppapi_proxy { 16 namespace ppapi_proxy {
17 17
18 namespace { 18 namespace {
19 19
20 int32_t LockMouse(PP_Instance instance, PP_CompletionCallback callback) { 20 int32_t LockMouse(PP_Instance instance, PP_CompletionCallback callback) {
21 DebugPrintf("PPB_MouseLock::LockMouse: " 21 DebugPrintf("PPB_MouseLock::LockMouse: "
22 "instance=%"NACL_PRIu32"\n", instance); 22 "instance=%"NACL_PRIu32"\n", instance);
23 23
(...skipping 26 matching lines...) Expand all
50 PpbMouseLockRpcClient::PPB_MouseLock_UnlockMouse( 50 PpbMouseLockRpcClient::PPB_MouseLock_UnlockMouse(
51 GetMainSrpcChannel(), 51 GetMainSrpcChannel(),
52 instance); 52 instance);
53 53
54 DebugPrintf("PPB_MouseLock::UnlockMouse: %s\n", 54 DebugPrintf("PPB_MouseLock::UnlockMouse: %s\n",
55 NaClSrpcErrorString(srpc_result)); 55 NaClSrpcErrorString(srpc_result));
56 } 56 }
57 57
58 } // namespace 58 } // namespace
59 59
60 const PPB_MouseLock_Dev* PluginMouseLock::GetInterface() { 60 const PPB_MouseLock* PluginMouseLock::GetInterface() {
61 static const PPB_MouseLock_Dev mouse_lock_interface = { 61 static const PPB_MouseLock mouse_lock_interface = {
62 LockMouse, 62 LockMouse,
63 UnlockMouse 63 UnlockMouse
64 }; 64 };
65 return &mouse_lock_interface; 65 return &mouse_lock_interface;
66 } 66 }
67 67
68 } // namespace ppapi_proxy 68 } // namespace ppapi_proxy
69 69
70 70
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698