| OLD | NEW |
| 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 "ppapi/c/pp_errors.h" | 5 #include "ppapi/c/pp_errors.h" |
| 6 #include "ppapi/c/ppb_mouse_lock.h" | 6 #include "ppapi/c/ppb_mouse_lock.h" |
| 7 #include "ppapi/thunk/common.h" | 7 #include "ppapi/thunk/common.h" |
| 8 #include "ppapi/thunk/enter.h" | 8 #include "ppapi/thunk/enter.h" |
| 9 #include "ppapi/thunk/ppb_instance_api.h" | 9 #include "ppapi/thunk/ppb_instance_api.h" |
| 10 #include "ppapi/thunk/thunk.h" | 10 #include "ppapi/thunk/thunk.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 enter.functions()->UnlockMouse(instance); | 29 enter.functions()->UnlockMouse(instance); |
| 30 } | 30 } |
| 31 | 31 |
| 32 const PPB_MouseLock g_ppb_mouse_lock_thunk = { | 32 const PPB_MouseLock g_ppb_mouse_lock_thunk = { |
| 33 &LockMouse, | 33 &LockMouse, |
| 34 &UnlockMouse | 34 &UnlockMouse |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace | 37 } // namespace |
| 38 | 38 |
| 39 const PPB_MouseLock* GetPPB_MouseLock_Thunk() { | 39 const PPB_MouseLock_1_0* GetPPB_MouseLock_1_0_Thunk() { |
| 40 return &g_ppb_mouse_lock_thunk; | 40 return &g_ppb_mouse_lock_thunk; |
| 41 } | 41 } |
| 42 | 42 |
| 43 } // namespace thunk | 43 } // namespace thunk |
| 44 } // namespace ppapi | 44 } // namespace ppapi |
| OLD | NEW |