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

Unified Diff: ppapi/proxy/ppb_flash_proxy.cc

Issue 11411102: Deprecate and remove unused PPB_Flash functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.h ('k') | ppapi/tests/test_flash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_flash_proxy.cc
diff --git a/ppapi/proxy/ppb_flash_proxy.cc b/ppapi/proxy/ppb_flash_proxy.cc
index 23e335d044102ee22f1387a2da97f45fbb080724..6104a458327e3ede55246cb29601b1892566bef7 100644
--- a/ppapi/proxy/ppb_flash_proxy.cc
+++ b/ppapi/proxy/ppb_flash_proxy.cc
@@ -110,10 +110,6 @@ bool PPB_Flash_Proxy::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_GetProxyForURL,
OnHostMsgGetProxyForURL)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_Navigate, OnHostMsgNavigate)
- IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_RunMessageLoop,
- OnHostMsgRunMessageLoop)
- IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_QuitMessageLoop,
- OnHostMsgQuitMessageLoop)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
OnHostMsgGetLocalTimeZoneOffset)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_IsRectTopmost,
@@ -126,8 +122,6 @@ bool PPB_Flash_Proxy::OnMessageReceived(const IPC::Message& msg) {
OnHostMsgOpenFileRef)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_QueryFileRef,
OnHostMsgQueryFileRef)
- IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_GetDeviceID,
- OnHostMsgGetDeviceID)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_InvokePrinting,
OnHostMsgInvokePrinting)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_GetSetting,
@@ -218,18 +212,6 @@ int32_t PPB_Flash_Proxy::Navigate(PP_Instance instance,
return result;
}
-void PPB_Flash_Proxy::RunMessageLoop(PP_Instance instance) {
- IPC::SyncMessage* msg = new PpapiHostMsg_PPBFlash_RunMessageLoop(
- API_ID_PPB_FLASH, instance);
- msg->EnableMessagePumping();
- dispatcher()->Send(msg);
-}
-
-void PPB_Flash_Proxy::QuitMessageLoop(PP_Instance instance) {
- dispatcher()->Send(new PpapiHostMsg_PPBFlash_QuitMessageLoop(
- API_ID_PPB_FLASH, instance));
-}
-
double PPB_Flash_Proxy::GetLocalTimeZoneOffset(PP_Instance instance,
PP_Time t) {
static double s_cached_t = 0.0;
@@ -289,31 +271,6 @@ void PPB_Flash_Proxy::UpdateActivity(PP_Instance instance) {
new PpapiHostMsg_PPBFlash_UpdateActivity(API_ID_PPB_FLASH));
}
-PP_Var PPB_Flash_Proxy::GetDeviceID(PP_Instance instance) {
- ReceiveSerializedVarReturnValue result;
- dispatcher()->Send(new PpapiHostMsg_PPBFlash_GetDeviceID(
- API_ID_PPB_FLASH, instance, &result));
- return result.Return(dispatcher());
-}
-
-int32_t PPB_Flash_Proxy::GetSettingInt(PP_Instance instance,
- PP_FlashSetting setting) {
- // Note: Don't add support for any more settings here. This method is
- // deprecated.
- switch (setting) {
- case PP_FLASHSETTING_3DENABLED:
- return static_cast<PluginDispatcher*>(dispatcher())->preferences().
- is_3d_supported;
- case PP_FLASHSETTING_INCOGNITO:
- return static_cast<PluginDispatcher*>(dispatcher())->incognito();
- case PP_FLASHSETTING_STAGE3DENABLED:
- return static_cast<PluginDispatcher*>(dispatcher())->preferences().
- is_stage3d_supported;
- default:
- return -1;
- }
-}
-
PP_Var PPB_Flash_Proxy::GetSetting(PP_Instance instance,
PP_FlashSetting setting) {
PluginDispatcher* plugin_dispatcher =
@@ -643,18 +600,6 @@ void PPB_Flash_Proxy::OnHostMsgNavigate(PP_Instance instance,
instance, data, target.c_str(), from_user_action);
}
-void PPB_Flash_Proxy::OnHostMsgRunMessageLoop(PP_Instance instance) {
- EnterInstanceNoLock enter(instance);
- if (enter.succeeded())
- enter.functions()->GetFlashAPI()->RunMessageLoop(instance);
-}
-
-void PPB_Flash_Proxy::OnHostMsgQuitMessageLoop(PP_Instance instance) {
- EnterInstanceNoLock enter(instance);
- if (enter.succeeded())
- enter.functions()->GetFlashAPI()->QuitMessageLoop(instance);
-}
-
void PPB_Flash_Proxy::OnHostMsgGetLocalTimeZoneOffset(PP_Instance instance,
PP_Time t,
double* result) {
@@ -748,18 +693,6 @@ void PPB_Flash_Proxy::OnHostMsgGetSetting(PP_Instance instance,
}
}
-void PPB_Flash_Proxy::OnHostMsgGetDeviceID(PP_Instance instance,
- SerializedVarReturnValue id) {
- EnterInstanceNoLock enter(instance);
- if (enter.succeeded()) {
- id.Return(dispatcher(),
- enter.functions()->GetFlashAPI()->GetDeviceID(
- instance));
- } else {
- id.Return(dispatcher(), PP_MakeUndefined());
- }
-}
-
void PPB_Flash_Proxy::OnHostMsgInvokePrinting(PP_Instance instance) {
// This function is actually implemented in the PPB_Flash_Print interface.
// It's rarely used enough that we just request this interface when needed.
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.h ('k') | ppapi/tests/test_flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698