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

Side by Side Diff: ppapi/thunk/ppb_flash_thunk.cc

Issue 10681006: Add ppapi interface for setting crash data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
« no previous file with comments | « ppapi/thunk/ppb_flash_api.h ('k') | webkit/plugins/ppapi/ppb_flash_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "ppapi/c/pp_errors.h" 5 #include "ppapi/c/pp_errors.h"
6 #include "ppapi/c/private/ppb_flash.h" 6 #include "ppapi/c/private/ppb_flash.h"
7 #include "ppapi/shared_impl/ppapi_globals.h" 7 #include "ppapi/shared_impl/ppapi_globals.h"
8 #include "ppapi/shared_impl/proxy_lock.h" 8 #include "ppapi/shared_impl/proxy_lock.h"
9 #include "ppapi/shared_impl/var.h" 9 #include "ppapi/shared_impl/var.h"
10 #include "ppapi/thunk/enter.h" 10 #include "ppapi/thunk/enter.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return enter.functions()->GetFlashAPI()->GetSettingInt(instance, setting); 137 return enter.functions()->GetFlashAPI()->GetSettingInt(instance, setting);
138 } 138 }
139 139
140 PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) { 140 PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) {
141 EnterInstance enter(instance); 141 EnterInstance enter(instance);
142 if (enter.failed()) 142 if (enter.failed())
143 return PP_MakeUndefined(); 143 return PP_MakeUndefined();
144 return enter.functions()->GetFlashAPI()->GetSetting(instance, setting); 144 return enter.functions()->GetFlashAPI()->GetSetting(instance, setting);
145 } 145 }
146 146
147 PP_Bool SetCrashData(PP_Instance instance,
148 PP_FlashCrashKey key,
149 PP_Var value) {
150 EnterInstance enter(instance);
151 if (enter.failed())
152 return PP_FALSE;
153 return enter.functions()->GetFlashAPI()->SetCrashData(instance, key, value);
154 }
155
147 const PPB_Flash_12_0 g_ppb_flash_12_0_thunk = { 156 const PPB_Flash_12_0 g_ppb_flash_12_0_thunk = {
148 &SetInstanceAlwaysOnTop, 157 &SetInstanceAlwaysOnTop,
149 &DrawGlyphs, 158 &DrawGlyphs,
150 &GetProxyForURL, 159 &GetProxyForURL,
151 &Navigate, 160 &Navigate,
152 &RunMessageLoop, 161 &RunMessageLoop,
153 &QuitMessageLoop, 162 &QuitMessageLoop,
154 &GetLocalTimeZoneOffset, 163 &GetLocalTimeZoneOffset,
155 &GetCommandLineArgs, 164 &GetCommandLineArgs,
156 &PreLoadFontWin 165 &PreLoadFontWin
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 &GetCommandLineArgs, 224 &GetCommandLineArgs,
216 &PreLoadFontWin, 225 &PreLoadFontWin,
217 &IsRectTopmost, 226 &IsRectTopmost,
218 &InvokePrinting, 227 &InvokePrinting,
219 &UpdateActivity, 228 &UpdateActivity,
220 &GetDeviceID, 229 &GetDeviceID,
221 &GetSettingInt, 230 &GetSettingInt,
222 &GetSetting 231 &GetSetting
223 }; 232 };
224 233
234 const PPB_Flash_12_5 g_ppb_flash_12_5_thunk = {
235 &SetInstanceAlwaysOnTop,
236 &DrawGlyphs,
237 &GetProxyForURL,
238 &Navigate,
239 &RunMessageLoop,
240 &QuitMessageLoop,
241 &GetLocalTimeZoneOffset,
242 &GetCommandLineArgs,
243 &PreLoadFontWin,
244 &IsRectTopmost,
245 &InvokePrinting,
246 &UpdateActivity,
247 &GetDeviceID,
248 &GetSettingInt,
249 &GetSetting,
250 &SetCrashData
251 };
252
225 } // namespace 253 } // namespace
226 254
227 const PPB_Flash_12_0* GetPPB_Flash_12_0_Thunk() { 255 const PPB_Flash_12_0* GetPPB_Flash_12_0_Thunk() {
228 return &g_ppb_flash_12_0_thunk; 256 return &g_ppb_flash_12_0_thunk;
229 } 257 }
230 258
231 const PPB_Flash_12_1* GetPPB_Flash_12_1_Thunk() { 259 const PPB_Flash_12_1* GetPPB_Flash_12_1_Thunk() {
232 return &g_ppb_flash_12_1_thunk; 260 return &g_ppb_flash_12_1_thunk;
233 } 261 }
234 262
235 const PPB_Flash_12_2* GetPPB_Flash_12_2_Thunk() { 263 const PPB_Flash_12_2* GetPPB_Flash_12_2_Thunk() {
236 return &g_ppb_flash_12_2_thunk; 264 return &g_ppb_flash_12_2_thunk;
237 } 265 }
238 266
239 const PPB_Flash_12_3* GetPPB_Flash_12_3_Thunk() { 267 const PPB_Flash_12_3* GetPPB_Flash_12_3_Thunk() {
240 return &g_ppb_flash_12_3_thunk; 268 return &g_ppb_flash_12_3_thunk;
241 } 269 }
242 270
243 const PPB_Flash_12_4* GetPPB_Flash_12_4_Thunk() { 271 const PPB_Flash_12_4* GetPPB_Flash_12_4_Thunk() {
244 return &g_ppb_flash_12_4_thunk; 272 return &g_ppb_flash_12_4_thunk;
245 } 273 }
246 274
275 const PPB_Flash_12_5* GetPPB_Flash_12_5_Thunk() {
276 return &g_ppb_flash_12_5_thunk;
277 }
278
247 } // namespace thunk 279 } // namespace thunk
248 } // namespace ppapi 280 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_flash_api.h ('k') | webkit/plugins/ppapi/ppb_flash_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698