From f5d324a0d8d889d7cc70b9a6d0385d68daaf5bf5 Mon Sep 17 00:00:00 2001 From: "raymes@chromium.org" Date: Wed, 26 Mar 2014 05:03:34 +0000 Subject: Rename PPB_Find_Dev to PPB_Find_Private This makes PPB_Find_Dev a private API and renames it as such. There is no intention to make this a public API. BUG=303491 Review URL: https://codereview.chromium.org/197623005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259497 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/thunk/interfaces_ppb_public_dev.h | 1 - ppapi/thunk/ppb_find_dev_thunk.cc | 57 -------------------------------- ppapi/thunk/ppb_find_private_thunk.cc | 58 +++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 ppapi/thunk/ppb_find_dev_thunk.cc create mode 100644 ppapi/thunk/ppb_find_private_thunk.cc (limited to 'ppapi/thunk') diff --git a/ppapi/thunk/interfaces_ppb_public_dev.h b/ppapi/thunk/interfaces_ppb_public_dev.h index cbff2d4a..39855b9 100644 --- a/ppapi/thunk/interfaces_ppb_public_dev.h +++ b/ppapi/thunk/interfaces_ppb_public_dev.h @@ -16,7 +16,6 @@ PROXIED_IFACE(PPB_EXT_SOCKET_DEV_INTERFACE_0_1, PPB_Ext_Socket_Dev_0_1) PROXIED_IFACE(PPB_EXT_SOCKET_DEV_INTERFACE_0_2, PPB_Ext_Socket_Dev_0_2) PROXIED_IFACE(PPB_FILECHOOSER_DEV_INTERFACE_0_5, PPB_FileChooser_Dev_0_5) PROXIED_IFACE(PPB_FILECHOOSER_DEV_INTERFACE_0_6, PPB_FileChooser_Dev_0_6) -PROXIED_IFACE(PPB_FIND_DEV_INTERFACE_0_3, PPB_Find_Dev_0_3) PROXIED_IFACE(PPB_IME_INPUT_EVENT_DEV_INTERFACE_0_2, PPB_IMEInputEvent_Dev_0_2) PROXIED_IFACE(PPB_MEMORY_DEV_INTERFACE_0_1, PPB_Memory_Dev_0_1) PROXIED_IFACE(PPB_PRINTING_DEV_INTERFACE_0_7, PPB_Printing_Dev_0_7) diff --git a/ppapi/thunk/ppb_find_dev_thunk.cc b/ppapi/thunk/ppb_find_dev_thunk.cc deleted file mode 100644 index 91224f9..0000000 --- a/ppapi/thunk/ppb_find_dev_thunk.cc +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2012 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. - -// From dev/ppb_find_dev.idl modified Thu Mar 13 11:05:53 2014. - -#include "ppapi/c/dev/ppb_find_dev.h" -#include "ppapi/c/pp_errors.h" -#include "ppapi/shared_impl/tracked_callback.h" -#include "ppapi/thunk/enter.h" -#include "ppapi/thunk/ppapi_thunk_export.h" - -namespace ppapi { -namespace thunk { - -namespace { - -void SetPluginToHandleFindRequests(PP_Instance instance) { - VLOG(4) << "PPB_Find_Dev::SetPluginToHandleFindRequests()"; - EnterInstance enter(instance); - if (enter.failed()) - return; - enter.functions()->SetPluginToHandleFindRequests(instance); -} - -void NumberOfFindResultsChanged(PP_Instance instance, - int32_t total, - PP_Bool final_result) { - VLOG(4) << "PPB_Find_Dev::NumberOfFindResultsChanged()"; - EnterInstance enter(instance); - if (enter.failed()) - return; - enter.functions()->NumberOfFindResultsChanged(instance, total, final_result); -} - -void SelectedFindResultChanged(PP_Instance instance, int32_t index) { - VLOG(4) << "PPB_Find_Dev::SelectedFindResultChanged()"; - EnterInstance enter(instance); - if (enter.failed()) - return; - enter.functions()->SelectedFindResultChanged(instance, index); -} - -const PPB_Find_Dev_0_3 g_ppb_find_dev_thunk_0_3 = { - &SetPluginToHandleFindRequests, - &NumberOfFindResultsChanged, - &SelectedFindResultChanged -}; - -} // namespace - -PPAPI_THUNK_EXPORT const PPB_Find_Dev_0_3* GetPPB_Find_Dev_0_3_Thunk() { - return &g_ppb_find_dev_thunk_0_3; -} - -} // namespace thunk -} // namespace ppapi diff --git a/ppapi/thunk/ppb_find_private_thunk.cc b/ppapi/thunk/ppb_find_private_thunk.cc new file mode 100644 index 0000000..f530b62 --- /dev/null +++ b/ppapi/thunk/ppb_find_private_thunk.cc @@ -0,0 +1,58 @@ +// Copyright 2014 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. + +// From private/ppb_find_private.idl modified Thu Mar 13 11:56:31 2014. + +#include "ppapi/c/pp_errors.h" +#include "ppapi/c/private/ppb_find_private.h" +#include "ppapi/shared_impl/tracked_callback.h" +#include "ppapi/thunk/enter.h" +#include "ppapi/thunk/ppapi_thunk_export.h" + +namespace ppapi { +namespace thunk { + +namespace { + +void SetPluginToHandleFindRequests(PP_Instance instance) { + VLOG(4) << "PPB_Find_Private::SetPluginToHandleFindRequests()"; + EnterInstance enter(instance); + if (enter.failed()) + return; + enter.functions()->SetPluginToHandleFindRequests(instance); +} + +void NumberOfFindResultsChanged(PP_Instance instance, + int32_t total, + PP_Bool final_result) { + VLOG(4) << "PPB_Find_Private::NumberOfFindResultsChanged()"; + EnterInstance enter(instance); + if (enter.failed()) + return; + enter.functions()->NumberOfFindResultsChanged(instance, total, final_result); +} + +void SelectedFindResultChanged(PP_Instance instance, int32_t index) { + VLOG(4) << "PPB_Find_Private::SelectedFindResultChanged()"; + EnterInstance enter(instance); + if (enter.failed()) + return; + enter.functions()->SelectedFindResultChanged(instance, index); +} + +const PPB_Find_Private_0_3 g_ppb_find_private_thunk_0_3 = { + &SetPluginToHandleFindRequests, + &NumberOfFindResultsChanged, + &SelectedFindResultChanged +}; + +} // namespace + +PPAPI_THUNK_EXPORT const PPB_Find_Private_0_3* + GetPPB_Find_Private_0_3_Thunk() { + return &g_ppb_find_private_thunk_0_3; +} + +} // namespace thunk +} // namespace ppapi -- cgit v1.1