diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-09 20:51:38 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-09 20:51:38 +0000 |
commit | 0c1f6a1a5db1033c323c65b86db98a058ebabd74 (patch) | |
tree | 3e0cfe276b7f3f1764f95a582ba3a83639b0761b /ppapi/thunk | |
parent | 0e41f1fb32c9404f8131da48e83387d7c07d6728 (diff) | |
download | chromium_src-0c1f6a1a5db1033c323c65b86db98a058ebabd74.zip chromium_src-0c1f6a1a5db1033c323c65b86db98a058ebabd74.tar.gz chromium_src-0c1f6a1a5db1033c323c65b86db98a058ebabd74.tar.bz2 |
Remove PPB_Ext_Alarms_Dev and PPB_Ext_Events_Dev.
BUG=None
TEST=None
Review URL: https://codereview.chromium.org/103093004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239545 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk')
-rw-r--r-- | ppapi/thunk/interfaces_ppb_public_dev.h | 2 | ||||
-rw-r--r-- | ppapi/thunk/ppb_ext_alarms_thunk.cc | 95 |
2 files changed, 0 insertions, 97 deletions
diff --git a/ppapi/thunk/interfaces_ppb_public_dev.h b/ppapi/thunk/interfaces_ppb_public_dev.h index 1ad85bc..44af06d 100644 --- a/ppapi/thunk/interfaces_ppb_public_dev.h +++ b/ppapi/thunk/interfaces_ppb_public_dev.h @@ -12,8 +12,6 @@ PROXIED_IFACE(PPB_Instance, "PPB_Console(Dev);0.1", PPB_Console_1_0) PROXIED_IFACE(NoAPIName, PPB_CURSOR_CONTROL_DEV_INTERFACE_0_4, PPB_CursorControl_Dev_0_4) -PROXIED_IFACE(NoAPIName, PPB_EXT_ALARMS_DEV_INTERFACE_0_1, - PPB_Ext_Alarms_Dev_0_1) PROXIED_IFACE(NoAPIName, PPB_EXT_SOCKET_DEV_INTERFACE_0_1, PPB_Ext_Socket_Dev_0_1) PROXIED_IFACE(NoAPIName, PPB_EXT_SOCKET_DEV_INTERFACE_0_2, diff --git a/ppapi/thunk/ppb_ext_alarms_thunk.cc b/ppapi/thunk/ppb_ext_alarms_thunk.cc deleted file mode 100644 index 2fc88d0..0000000 --- a/ppapi/thunk/ppb_ext_alarms_thunk.cc +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include <vector> - -#include "ppapi/c/extensions/dev/ppb_ext_alarms_dev.h" -#include "ppapi/shared_impl/tracked_callback.h" -#include "ppapi/thunk/enter.h" -#include "ppapi/thunk/extensions_common_api.h" -#include "ppapi/thunk/thunk.h" - -namespace ppapi { -namespace thunk { - -namespace { - -void Create(PP_Instance instance, - PP_Var name, - PP_Ext_Alarms_AlarmCreateInfo_Dev alarm_info) { - EnterInstanceAPI<ExtensionsCommon_API> enter(instance); - if (enter.failed()) - return; - - std::vector<PP_Var> args; - args.push_back(name); - args.push_back(alarm_info); - enter.functions()->PostRenderer("alarms.create", args); -} - -int32_t Get(PP_Instance instance, - PP_Var name, - PP_Ext_Alarms_Alarm_Dev* alarm, - PP_CompletionCallback callback) { - EnterInstanceAPI<ExtensionsCommon_API> enter(instance, callback); - if (enter.failed()) - return enter.retval(); - - std::vector<PP_Var> input_args; - std::vector<PP_Var*> output_args; - input_args.push_back(name); - output_args.push_back(alarm); - return enter.SetResult(enter.functions()->CallRenderer( - "alarms.get", input_args, output_args, enter.callback())); -} - -int32_t GetAll(PP_Instance instance, - PP_Ext_Alarms_Alarm_Dev_Array* alarms, - PP_CompletionCallback callback) { - EnterInstanceAPI<ExtensionsCommon_API> enter(instance, callback); - if (enter.failed()) - return enter.retval(); - - std::vector<PP_Var> input_args; - std::vector<PP_Var*> output_args; - output_args.push_back(alarms); - return enter.SetResult(enter.functions()->CallRenderer( - "alarms.getAll", input_args, output_args, enter.callback())); -} - -void Clear(PP_Instance instance, PP_Var name) { - EnterInstanceAPI<ExtensionsCommon_API> enter(instance); - if (enter.failed()) - return; - - std::vector<PP_Var> args; - args.push_back(name); - enter.functions()->PostRenderer("alarms.clear", args); -} - -void ClearAll(PP_Instance instance) { - EnterInstanceAPI<ExtensionsCommon_API> enter(instance); - if (enter.failed()) - return; - - std::vector<PP_Var> args; - enter.functions()->PostRenderer("alarms.clearAll", args); -} - -const PPB_Ext_Alarms_Dev_0_1 g_ppb_ext_alarms_dev_0_1_thunk = { - &Create, - &Get, - &GetAll, - &Clear, - &ClearAll -}; - -} // namespace - -const PPB_Ext_Alarms_Dev_0_1* GetPPB_Ext_Alarms_Dev_0_1_Thunk() { - return &g_ppb_ext_alarms_dev_0_1_thunk; -} - -} // namespace thunk -} // namespace ppapi |