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 Aug 20 08:13:36 2013. | 5 // From dev/ppb_widget_dev.idl modified Mon May 6 10:11:29 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/ppapi_thunk_export.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 | 13 |
14 namespace ppapi { | 14 namespace ppapi { |
15 namespace thunk { | 15 namespace thunk { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 void SetScale(PP_Resource widget, float scale) { | 59 void SetScale(PP_Resource widget, float scale) { |
60 VLOG(4) << "PPB_Widget_Dev::SetScale()"; | 60 VLOG(4) << "PPB_Widget_Dev::SetScale()"; |
61 EnterResource<PPB_Widget_API> enter(widget, false); | 61 EnterResource<PPB_Widget_API> enter(widget, false); |
62 if (enter.failed()) | 62 if (enter.failed()) |
63 return; | 63 return; |
64 enter.object()->SetScale(scale); | 64 enter.object()->SetScale(scale); |
65 } | 65 } |
66 | 66 |
67 const PPB_Widget_Dev_0_3 g_ppb_widget_dev_thunk_0_3 = { | 67 const PPB_Widget_Dev_0_3 g_ppb_widget_dev_thunk_0_3 = {&IsWidget, |
68 &IsWidget, | 68 &Paint, |
69 &Paint, | 69 &HandleEvent, |
70 &HandleEvent, | 70 &GetLocation, |
71 &GetLocation, | 71 &SetLocation}; |
72 &SetLocation | |
73 }; | |
74 | 72 |
75 const PPB_Widget_Dev_0_4 g_ppb_widget_dev_thunk_0_4 = { | 73 const PPB_Widget_Dev_0_4 g_ppb_widget_dev_thunk_0_4 = |
76 &IsWidget, | 74 {&IsWidget, &Paint, &HandleEvent, &GetLocation, &SetLocation, &SetScale}; |
77 &Paint, | |
78 &HandleEvent, | |
79 &GetLocation, | |
80 &SetLocation, | |
81 &SetScale | |
82 }; | |
83 | 75 |
84 } // namespace | 76 } // namespace |
85 | 77 |
86 PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_3* GetPPB_Widget_Dev_0_3_Thunk() { | 78 PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_3* GetPPB_Widget_Dev_0_3_Thunk() { |
87 return &g_ppb_widget_dev_thunk_0_3; | 79 return &g_ppb_widget_dev_thunk_0_3; |
88 } | 80 } |
89 | 81 |
90 PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_4* GetPPB_Widget_Dev_0_4_Thunk() { | 82 PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_4* GetPPB_Widget_Dev_0_4_Thunk() { |
91 return &g_ppb_widget_dev_thunk_0_4; | 83 return &g_ppb_widget_dev_thunk_0_4; |
92 } | 84 } |
93 | 85 |
94 } // namespace thunk | 86 } // namespace thunk |
95 } // namespace ppapi | 87 } // namespace ppapi |
OLD | NEW |