OLD | NEW |
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 // From dev/ppb_widget_dev.idl modified Tue Apr 16 11:25:44 2013. | 5 // From dev/ppb_widget_dev.idl modified Tue Aug 20 08:13:36 2013. |
6 | 6 |
7 #include "ppapi/c/dev/ppb_widget_dev.h" | 7 #include "ppapi/c/dev/ppb_widget_dev.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/shared_impl/tracked_callback.h" | 9 #include "ppapi/shared_impl/tracked_callback.h" |
10 #include "ppapi/thunk/enter.h" | 10 #include "ppapi/thunk/enter.h" |
11 #include "ppapi/thunk/ppb_instance_api.h" | 11 #include "ppapi/thunk/ppapi_thunk_export.h" |
12 #include "ppapi/thunk/ppb_widget_api.h" | 12 #include "ppapi/thunk/ppb_widget_api.h" |
13 #include "ppapi/thunk/resource_creation_api.h" | |
14 #include "ppapi/thunk/thunk.h" | |
15 | 13 |
16 namespace ppapi { | 14 namespace ppapi { |
17 namespace thunk { | 15 namespace thunk { |
18 | 16 |
19 namespace { | 17 namespace { |
20 | 18 |
21 PP_Bool IsWidget(PP_Resource resource) { | 19 PP_Bool IsWidget(PP_Resource resource) { |
22 VLOG(4) << "PPB_Widget_Dev::IsWidget()"; | 20 VLOG(4) << "PPB_Widget_Dev::IsWidget()"; |
23 EnterResource<PPB_Widget_API> enter(resource, false); | 21 EnterResource<PPB_Widget_API> enter(resource, false); |
24 return PP_FromBool(enter.succeeded()); | 22 return PP_FromBool(enter.succeeded()); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 &IsWidget, | 76 &IsWidget, |
79 &Paint, | 77 &Paint, |
80 &HandleEvent, | 78 &HandleEvent, |
81 &GetLocation, | 79 &GetLocation, |
82 &SetLocation, | 80 &SetLocation, |
83 &SetScale | 81 &SetScale |
84 }; | 82 }; |
85 | 83 |
86 } // namespace | 84 } // namespace |
87 | 85 |
88 const PPB_Widget_Dev_0_3* GetPPB_Widget_Dev_0_3_Thunk() { | 86 PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_3* GetPPB_Widget_Dev_0_3_Thunk() { |
89 return &g_ppb_widget_dev_thunk_0_3; | 87 return &g_ppb_widget_dev_thunk_0_3; |
90 } | 88 } |
91 | 89 |
92 const PPB_Widget_Dev_0_4* GetPPB_Widget_Dev_0_4_Thunk() { | 90 PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_4* GetPPB_Widget_Dev_0_4_Thunk() { |
93 return &g_ppb_widget_dev_thunk_0_4; | 91 return &g_ppb_widget_dev_thunk_0_4; |
94 } | 92 } |
95 | 93 |
96 } // namespace thunk | 94 } // namespace thunk |
97 } // namespace ppapi | 95 } // namespace ppapi |
OLD | NEW |