Chromium Code Reviews| Index: ppapi/thunk/ppb_flash_thunk.cc |
| diff --git a/ppapi/thunk/ppb_flash_thunk.cc b/ppapi/thunk/ppb_flash_thunk.cc |
| index ec8e17e326fb957706c5b67852086551e40e4b3c..31d58e97deacb6b51da6f2ad56b39b8cb451dbf5 100644 |
| --- a/ppapi/thunk/ppb_flash_thunk.cc |
| +++ b/ppapi/thunk/ppb_flash_thunk.cc |
| @@ -74,17 +74,15 @@ int32_t Navigate(PP_Resource request_id, |
| } |
| void RunMessageLoop(PP_Instance instance) { |
| - EnterInstance enter(instance); |
| - if (enter.failed()) |
| - return; |
| - enter.functions()->GetFlashAPI()->RunMessageLoop(instance); |
| + // Deprecated. |
| + NOTREACHED(); |
|
yzshen1
2012/11/20 21:01:26
nit: Please include base/logging.h.
raymes
2012/11/20 23:40:32
Done.
|
| + return; |
| } |
| void QuitMessageLoop(PP_Instance instance) { |
| - EnterInstance enter(instance); |
| - if (enter.failed()) |
| - return; |
| - enter.functions()->GetFlashAPI()->QuitMessageLoop(instance); |
| + // Deprecated. |
| + NOTREACHED(); |
| + return; |
| } |
| double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) { |
| @@ -127,17 +125,15 @@ void UpdateActivity(PP_Instance instance) { |
| } |
| PP_Var GetDeviceID(PP_Instance instance) { |
| - EnterInstance enter(instance); |
| - if (enter.failed()) |
| - return PP_MakeUndefined(); |
| - return enter.functions()->GetFlashAPI()->GetDeviceID(instance); |
| + // Deprecated. |
| + NOTREACHED(); |
| + return PP_MakeUndefined(); |
| } |
| int32_t GetSettingInt(PP_Instance instance, PP_FlashSetting setting) { |
| - EnterInstance enter(instance); |
| - if (enter.failed()) |
| - return -1; |
| - return enter.functions()->GetFlashAPI()->GetSettingInt(instance, setting); |
| + // Deprecated. |
| + NOTREACHED(); |
| + return PP_ERROR_NOTSUPPORTED; |
|
yzshen1
2012/11/20 21:01:26
Please use -1 as the previous implementation. This
raymes
2012/11/20 23:40:32
Done.
|
| } |
| PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) { |
| @@ -165,50 +161,7 @@ int32_t EnumerateVideoCaptureDevices(PP_Instance instance, |
| return enter.object()->EnumerateDevicesSync(devices); |
| } |
| -const PPB_Flash_12_0 g_ppb_flash_12_0_thunk = { |
| - &SetInstanceAlwaysOnTop, |
| - &DrawGlyphs, |
| - &GetProxyForURL, |
| - &Navigate, |
| - &RunMessageLoop, |
| - &QuitMessageLoop, |
| - &GetLocalTimeZoneOffset, |
| - &GetCommandLineArgs, |
| - &PreLoadFontWin |
| -}; |
| - |
| -const PPB_Flash_12_1 g_ppb_flash_12_1_thunk = { |
| - &SetInstanceAlwaysOnTop, |
| - &DrawGlyphs, |
| - &GetProxyForURL, |
| - &Navigate, |
| - &RunMessageLoop, |
| - &QuitMessageLoop, |
| - &GetLocalTimeZoneOffset, |
| - &GetCommandLineArgs, |
| - &PreLoadFontWin, |
| - &IsRectTopmost, |
| - &InvokePrinting, |
| - &UpdateActivity |
| -}; |
| - |
| -const PPB_Flash_12_2 g_ppb_flash_12_2_thunk = { |
| - &SetInstanceAlwaysOnTop, |
| - &DrawGlyphs, |
| - &GetProxyForURL, |
| - &Navigate, |
| - &RunMessageLoop, |
| - &QuitMessageLoop, |
| - &GetLocalTimeZoneOffset, |
| - &GetCommandLineArgs, |
| - &PreLoadFontWin, |
| - &IsRectTopmost, |
| - &InvokePrinting, |
| - &UpdateActivity, |
| - &GetDeviceID |
| -}; |
| - |
| -const PPB_Flash_12_3 g_ppb_flash_12_3_thunk = { |
| +const PPB_Flash_12_4 g_ppb_flash_12_4_thunk = { |
| &SetInstanceAlwaysOnTop, |
| &DrawGlyphs, |
| &GetProxyForURL, |
| @@ -222,10 +175,11 @@ const PPB_Flash_12_3 g_ppb_flash_12_3_thunk = { |
| &InvokePrinting, |
| &UpdateActivity, |
| &GetDeviceID, |
| - &GetSettingInt |
| + &GetSettingInt, |
| + &GetSetting |
| }; |
| -const PPB_Flash_12_4 g_ppb_flash_12_4_thunk = { |
| +const PPB_Flash_12_5 g_ppb_flash_12_5_thunk = { |
| &SetInstanceAlwaysOnTop, |
| &DrawGlyphs, |
| &GetProxyForURL, |
| @@ -240,10 +194,11 @@ const PPB_Flash_12_4 g_ppb_flash_12_4_thunk = { |
| &UpdateActivity, |
| &GetDeviceID, |
| &GetSettingInt, |
| - &GetSetting |
| + &GetSetting, |
| + &SetCrashData |
| }; |
| -const PPB_Flash_12_5 g_ppb_flash_12_5_thunk = { |
| +const PPB_Flash_12_6 g_ppb_flash_12_6_thunk = { |
| &SetInstanceAlwaysOnTop, |
| &DrawGlyphs, |
| &GetProxyForURL, |
| @@ -259,24 +214,20 @@ const PPB_Flash_12_5 g_ppb_flash_12_5_thunk = { |
| &GetDeviceID, |
| &GetSettingInt, |
| &GetSetting, |
| - &SetCrashData |
| + &SetCrashData, |
| + &EnumerateVideoCaptureDevices |
| }; |
| -const PPB_Flash_12_6 g_ppb_flash_12_6_thunk = { |
| +const PPB_Flash_13_0 g_ppb_flash_13_0_thunk = { |
| &SetInstanceAlwaysOnTop, |
| &DrawGlyphs, |
| &GetProxyForURL, |
| &Navigate, |
| - &RunMessageLoop, |
| - &QuitMessageLoop, |
| &GetLocalTimeZoneOffset, |
| &GetCommandLineArgs, |
| &PreLoadFontWin, |
| &IsRectTopmost, |
| - &InvokePrinting, |
| &UpdateActivity, |
| - &GetDeviceID, |
| - &GetSettingInt, |
| &GetSetting, |
| &SetCrashData, |
| &EnumerateVideoCaptureDevices |
| @@ -284,22 +235,6 @@ const PPB_Flash_12_6 g_ppb_flash_12_6_thunk = { |
| } // namespace |
| -const PPB_Flash_12_0* GetPPB_Flash_12_0_Thunk() { |
| - return &g_ppb_flash_12_0_thunk; |
| -} |
| - |
| -const PPB_Flash_12_1* GetPPB_Flash_12_1_Thunk() { |
| - return &g_ppb_flash_12_1_thunk; |
| -} |
| - |
| -const PPB_Flash_12_2* GetPPB_Flash_12_2_Thunk() { |
| - return &g_ppb_flash_12_2_thunk; |
| -} |
| - |
| -const PPB_Flash_12_3* GetPPB_Flash_12_3_Thunk() { |
| - return &g_ppb_flash_12_3_thunk; |
| -} |
| - |
| const PPB_Flash_12_4* GetPPB_Flash_12_4_Thunk() { |
| return &g_ppb_flash_12_4_thunk; |
| } |
| @@ -312,5 +247,9 @@ const PPB_Flash_12_6* GetPPB_Flash_12_6_Thunk() { |
| return &g_ppb_flash_12_6_thunk; |
| } |
| +const PPB_Flash_13_0* GetPPB_Flash_13_0_Thunk() { |
| + return &g_ppb_flash_13_0_thunk; |
| +} |
| + |
| } // namespace thunk |
| } // namespace ppapi |