diff options
author | nhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-22 08:14:42 +0000 |
---|---|---|
committer | nhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-22 08:14:42 +0000 |
commit | e7e6ae99f099e95083badf0e825eb2d362071c65 (patch) | |
tree | 18a6da393fa065a51183ed603b0bb1472c74ab1e /ppapi/cpp/output_traits.h | |
parent | 63d2dabcf10ef5b5d6810c239ae066c2b53b4860 (diff) | |
download | chromium_src-e7e6ae99f099e95083badf0e825eb2d362071c65.zip chromium_src-e7e6ae99f099e95083badf0e825eb2d362071c65.tar.gz chromium_src-e7e6ae99f099e95083badf0e825eb2d362071c65.tar.bz2 |
Revert 184054
> Implement ReadEntries API for PPB_DirectoryReader
>
> The ReadEntries API returns all file entries in the given directory at once.
>
> API discussion is here: https://codereview.chromium.org/12026008/
>
> BUG=113086
> TEST=browser_tests --gtest_filter=\*DirectoryReader\*
>
> Review URL: https://chromiumcodereview.appspot.com/12090071
TBR=nhiroki@chromium.org
Review URL: https://codereview.chromium.org/12319065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/output_traits.h')
-rw-r--r-- | ppapi/cpp/output_traits.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/ppapi/cpp/output_traits.h b/ppapi/cpp/output_traits.h index cc04330..5b45aa47e 100644 --- a/ppapi/cpp/output_traits.h +++ b/ppapi/cpp/output_traits.h @@ -5,11 +5,8 @@ #ifndef PPAPI_CPP_OUTPUT_TRAITS_H_ #define PPAPI_CPP_OUTPUT_TRAITS_H_ -#include <vector> - #include "ppapi/c/pp_resource.h" #include "ppapi/cpp/array_output.h" -#include "ppapi/cpp/dev/directory_entry_dev.h" /// @file /// This file defines internal templates for defining how data is passed to the @@ -236,24 +233,6 @@ struct CallbackOutputTraits< std::vector<pp::Var> > { } }; -// A specialization of CallbackOutputTraits to provide the callback system the -// information on how to handle vectors of pp::DirectoryEntry_Dev. This converts -// PP_DirectoryEntry_Dev to pp::DirectoryEntry_Dev when passing to the plugin. -template<> -struct CallbackOutputTraits< std::vector<pp::DirectoryEntry_Dev> > { - typedef PP_ArrayOutput APIArgType; - typedef DirectoryEntryArrayOutputAdapterWithStorage StorageType; - - static inline APIArgType StorageToAPIArg(StorageType& t) { - return t.pp_array_output(); - } - - static inline std::vector<pp::DirectoryEntry_Dev>& StorageToPluginArg( - StorageType& t) { - return t.output(); - } -}; - } // namespace internal } // namespace pp |