OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ppapi/thunk/thunk.h" |
| 6 #include "ppapi/thunk/enter.h" |
| 7 #include "ppapi/thunk/ppb_scrollbar_group_api.h" |
| 8 #include "ppapi/thunk/resource_creation_api.h" |
| 9 |
| 10 namespace ppapi { |
| 11 namespace thunk { |
| 12 |
| 13 typedef EnterResource<PPB_ScrollbarGroup_API> EnterScrollbarGroup; |
| 14 |
| 15 namespace { |
| 16 |
| 17 PP_Resource Create(PP_Instance instance) { |
| 18 EnterFunction<ResourceCreationAPI> enter(instance, true); |
| 19 if (enter.failed()) |
| 20 return 0; |
| 21 return enter.functions()->CreateScrollbarGroup(instance); |
| 22 } |
| 23 |
| 24 const PPB_ScrollbarGroup_Dev g_ppb_scrollbar_group_thunk = { |
| 25 &Create, |
| 26 }; |
| 27 |
| 28 } // namespace |
| 29 |
| 30 const PPB_ScrollbarGroup_Dev* GetPPB_ScrollbarGroup_Thunk() { |
| 31 return &g_ppb_scrollbar_group_thunk; |
| 32 } |
| 33 |
| 34 } // namespace thunk |
| 35 } // namespace ppapi |
OLD | NEW |