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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 14784002: Move DirectoryReader::ReadEntries to FileRef::ReadDirectoryEntries (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 7 years, 7 months 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 unified diff | Download patch
« no previous file with comments | « ppapi/cpp/file_ref.cc ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/generators/pnacl_shim.h" 7 #include "ppapi/generators/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
11 #include "ppapi/c/dev/ppb_buffer_dev.h" 11 #include "ppapi/c/dev/ppb_buffer_dev.h"
12 #include "ppapi/c/dev/ppb_crypto_dev.h" 12 #include "ppapi/c/dev/ppb_crypto_dev.h"
13 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 13 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
14 #include "ppapi/c/dev/ppb_device_ref_dev.h" 14 #include "ppapi/c/dev/ppb_device_ref_dev.h"
15 #include "ppapi/c/dev/ppb_directory_reader_dev.h"
16 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 15 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
17 #include "ppapi/c/dev/ppb_find_dev.h" 16 #include "ppapi/c/dev/ppb_find_dev.h"
18 #include "ppapi/c/dev/ppb_font_dev.h" 17 #include "ppapi/c/dev/ppb_font_dev.h"
19 #include "ppapi/c/dev/ppb_graphics_2d_dev.h" 18 #include "ppapi/c/dev/ppb_graphics_2d_dev.h"
20 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" 19 #include "ppapi/c/dev/ppb_ime_input_event_dev.h"
21 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h" 20 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h"
22 #include "ppapi/c/dev/ppb_memory_dev.h" 21 #include "ppapi/c/dev/ppb_memory_dev.h"
23 #include "ppapi/c/dev/ppb_printing_dev.h" 22 #include "ppapi/c/dev/ppb_printing_dev.h"
24 #include "ppapi/c/dev/ppb_resource_array_dev.h" 23 #include "ppapi/c/dev/ppb_resource_array_dev.h"
25 #include "ppapi/c/dev/ppb_scrollbar_dev.h" 24 #include "ppapi/c/dev/ppb_scrollbar_dev.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4; 183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4;
185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0; 184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0;
186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4; 185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4;
187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3; 186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3;
188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2; 187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2;
189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3; 188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3;
190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4; 189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4;
191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1; 190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1;
192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4; 191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4;
193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1; 192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1;
194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_6;
195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5; 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5;
196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6; 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6;
197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Find_Dev_0_3; 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Find_Dev_0_3;
198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1; 197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1;
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_ 1; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_ 1;
203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Memory_Dev_0_1; 201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Memory_Dev_0_1;
204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7; 202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 static int32_t Pnacl_M28_PPB_FileRef_Rename(PP_Resource file_ref, PP_Resource ne w_file_ref, struct PP_CompletionCallback* callback) { 551 static int32_t Pnacl_M28_PPB_FileRef_Rename(PP_Resource file_ref, PP_Resource ne w_file_ref, struct PP_CompletionCallback* callback) {
554 const struct PPB_FileRef_1_1 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_1.real_i face; 552 const struct PPB_FileRef_1_1 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_1.real_i face;
555 return iface->Rename(file_ref, new_file_ref, *callback); 553 return iface->Rename(file_ref, new_file_ref, *callback);
556 } 554 }
557 555
558 static int32_t Pnacl_M28_PPB_FileRef_Query(PP_Resource file_ref, struct PP_FileI nfo* info, struct PP_CompletionCallback* callback) { 556 static int32_t Pnacl_M28_PPB_FileRef_Query(PP_Resource file_ref, struct PP_FileI nfo* info, struct PP_CompletionCallback* callback) {
559 const struct PPB_FileRef_1_1 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_1.real_i face; 557 const struct PPB_FileRef_1_1 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_1.real_i face;
560 return iface->Query(file_ref, info, *callback); 558 return iface->Query(file_ref, info, *callback);
561 } 559 }
562 560
561 static int32_t Pnacl_M28_PPB_FileRef_ReadDirectoryEntries(PP_Resource file_ref, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback) {
562 const struct PPB_FileRef_1_1 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_1.real_i face;
563 return iface->ReadDirectoryEntries(file_ref, *output, *callback);
564 }
565
563 /* End wrapper methods for PPB_FileRef_1_1 */ 566 /* End wrapper methods for PPB_FileRef_1_1 */
564 567
565 /* Begin wrapper methods for PPB_FileSystem_1_0 */ 568 /* Begin wrapper methods for PPB_FileSystem_1_0 */
566 569
567 static PP_Resource Pnacl_M14_PPB_FileSystem_Create(PP_Instance instance, PP_File SystemType type) { 570 static PP_Resource Pnacl_M14_PPB_FileSystem_Create(PP_Instance instance, PP_File SystemType type) {
568 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface; 571 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface;
569 return iface->Create(instance, type); 572 return iface->Create(instance, type);
570 } 573 }
571 574
572 static PP_Bool Pnacl_M14_PPB_FileSystem_IsFileSystem(PP_Resource resource) { 575 static PP_Bool Pnacl_M14_PPB_FileSystem_IsFileSystem(PP_Resource resource) {
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 return iface->GetType(device_ref); 1566 return iface->GetType(device_ref);
1564 } 1567 }
1565 1568
1566 static void Pnacl_M18_PPB_DeviceRef_Dev_GetName(struct PP_Var* _struct_result, P P_Resource device_ref) { 1569 static void Pnacl_M18_PPB_DeviceRef_Dev_GetName(struct PP_Var* _struct_result, P P_Resource device_ref) {
1567 const struct PPB_DeviceRef_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_DeviceRef_De v_0_1.real_iface; 1570 const struct PPB_DeviceRef_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_DeviceRef_De v_0_1.real_iface;
1568 *_struct_result = iface->GetName(device_ref); 1571 *_struct_result = iface->GetName(device_ref);
1569 } 1572 }
1570 1573
1571 /* End wrapper methods for PPB_DeviceRef_Dev_0_1 */ 1574 /* End wrapper methods for PPB_DeviceRef_Dev_0_1 */
1572 1575
1573 /* Begin wrapper methods for PPB_DirectoryReader_Dev_0_6 */
1574
1575 static PP_Resource Pnacl_M27_PPB_DirectoryReader_Dev_Create(PP_Resource director y_ref) {
1576 const struct PPB_DirectoryReader_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_6.real_iface;
1577 return iface->Create(directory_ref);
1578 }
1579
1580 static PP_Bool Pnacl_M27_PPB_DirectoryReader_Dev_IsDirectoryReader(PP_Resource r esource) {
1581 const struct PPB_DirectoryReader_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_6.real_iface;
1582 return iface->IsDirectoryReader(resource);
1583 }
1584
1585 static int32_t Pnacl_M27_PPB_DirectoryReader_Dev_ReadEntries(PP_Resource directo ry_reader, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback ) {
1586 const struct PPB_DirectoryReader_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Direct oryReader_Dev_0_6.real_iface;
1587 return iface->ReadEntries(directory_reader, *output, *callback);
1588 }
1589
1590 /* End wrapper methods for PPB_DirectoryReader_Dev_0_6 */
1591
1592 /* Begin wrapper methods for PPB_FileChooser_Dev_0_5 */ 1576 /* Begin wrapper methods for PPB_FileChooser_Dev_0_5 */
1593 1577
1594 static PP_Resource Pnacl_M16_PPB_FileChooser_Dev_Create(PP_Instance instance, PP _FileChooserMode_Dev mode, struct PP_Var* accept_types) { 1578 static PP_Resource Pnacl_M16_PPB_FileChooser_Dev_Create(PP_Instance instance, PP _FileChooserMode_Dev mode, struct PP_Var* accept_types) {
1595 const struct PPB_FileChooser_Dev_0_5 *iface = Pnacl_WrapperInfo_PPB_FileChoose r_Dev_0_5.real_iface; 1579 const struct PPB_FileChooser_Dev_0_5 *iface = Pnacl_WrapperInfo_PPB_FileChoose r_Dev_0_5.real_iface;
1596 return iface->Create(instance, mode, *accept_types); 1580 return iface->Create(instance, mode, *accept_types);
1597 } 1581 }
1598 1582
1599 static PP_Bool Pnacl_M16_PPB_FileChooser_Dev_IsFileChooser(PP_Resource resource) { 1583 static PP_Bool Pnacl_M16_PPB_FileChooser_Dev_IsFileChooser(PP_Resource resource) {
1600 const struct PPB_FileChooser_Dev_0_5 *iface = Pnacl_WrapperInfo_PPB_FileChoose r_Dev_0_5.real_iface; 1584 const struct PPB_FileChooser_Dev_0_5 *iface = Pnacl_WrapperInfo_PPB_FileChoose r_Dev_0_5.real_iface;
1601 return iface->IsFileChooser(resource); 1585 return iface->IsFileChooser(resource);
(...skipping 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after
3687 .Create = (PP_Resource (*)(PP_Resource file_system, const char* path))&Pnacl _M28_PPB_FileRef_Create, 3671 .Create = (PP_Resource (*)(PP_Resource file_system, const char* path))&Pnacl _M28_PPB_FileRef_Create,
3688 .IsFileRef = (PP_Bool (*)(PP_Resource resource))&Pnacl_M28_PPB_FileRef_IsFil eRef, 3672 .IsFileRef = (PP_Bool (*)(PP_Resource resource))&Pnacl_M28_PPB_FileRef_IsFil eRef,
3689 .GetFileSystemType = (PP_FileSystemType (*)(PP_Resource file_ref))&Pnacl_M28 _PPB_FileRef_GetFileSystemType, 3673 .GetFileSystemType = (PP_FileSystemType (*)(PP_Resource file_ref))&Pnacl_M28 _PPB_FileRef_GetFileSystemType,
3690 .GetName = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etName, 3674 .GetName = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etName,
3691 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etPath, 3675 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etPath,
3692 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etParent, 3676 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etParent,
3693 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, PP_Bool make_ancest ors, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_MakeDirectory , 3677 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, PP_Bool make_ancest ors, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_MakeDirectory ,
3694 .Touch = (int32_t (*)(PP_Resource file_ref, PP_Time last_access_time, PP_Tim e last_modified_time, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_File Ref_Touch, 3678 .Touch = (int32_t (*)(PP_Resource file_ref, PP_Time last_access_time, PP_Tim e last_modified_time, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_File Ref_Touch,
3695 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M28_PPB_FileRef_Delete, 3679 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M28_PPB_FileRef_Delete,
3696 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Rename, 3680 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Rename,
3697 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Query 3681 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Query,
3682 .ReadDirectoryEntries = (int32_t (*)(PP_Resource file_ref, struct PP_ArrayOu tput output, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_ReadD irectoryEntries
3698 }; 3683 };
3699 3684
3700 struct PPB_FileSystem_1_0 Pnacl_Wrappers_PPB_FileSystem_1_0 = { 3685 struct PPB_FileSystem_1_0 Pnacl_Wrappers_PPB_FileSystem_1_0 = {
3701 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileSystemType type))&Pn acl_M14_PPB_FileSystem_Create, 3686 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileSystemType type))&Pn acl_M14_PPB_FileSystem_Create,
3702 .IsFileSystem = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_FileSystem _IsFileSystem, 3687 .IsFileSystem = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_FileSystem _IsFileSystem,
3703 .Open = (int32_t (*)(PP_Resource file_system, int64_t expected_size, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileSystem_Open, 3688 .Open = (int32_t (*)(PP_Resource file_system, int64_t expected_size, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileSystem_Open,
3704 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi leSystem_GetType 3689 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi leSystem_GetType
3705 }; 3690 };
3706 3691
3707 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */ 3692 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
3992 /* Not generating wrapper interface for PPB_Crypto_Dev_0_1 */ 3977 /* Not generating wrapper interface for PPB_Crypto_Dev_0_1 */
3993 3978
3994 /* Not generating wrapper interface for PPB_CursorControl_Dev_0_4 */ 3979 /* Not generating wrapper interface for PPB_CursorControl_Dev_0_4 */
3995 3980
3996 struct PPB_DeviceRef_Dev_0_1 Pnacl_Wrappers_PPB_DeviceRef_Dev_0_1 = { 3981 struct PPB_DeviceRef_Dev_0_1 Pnacl_Wrappers_PPB_DeviceRef_Dev_0_1 = {
3997 .IsDeviceRef = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_DeviceRef_D ev_IsDeviceRef, 3982 .IsDeviceRef = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_DeviceRef_D ev_IsDeviceRef,
3998 .GetType = (PP_DeviceType_Dev (*)(PP_Resource device_ref))&Pnacl_M18_PPB_Dev iceRef_Dev_GetType, 3983 .GetType = (PP_DeviceType_Dev (*)(PP_Resource device_ref))&Pnacl_M18_PPB_Dev iceRef_Dev_GetType,
3999 .GetName = (struct PP_Var (*)(PP_Resource device_ref))&Pnacl_M18_PPB_DeviceR ef_Dev_GetName 3984 .GetName = (struct PP_Var (*)(PP_Resource device_ref))&Pnacl_M18_PPB_DeviceR ef_Dev_GetName
4000 }; 3985 };
4001 3986
4002 struct PPB_DirectoryReader_Dev_0_6 Pnacl_Wrappers_PPB_DirectoryReader_Dev_0_6 = {
4003 .Create = (PP_Resource (*)(PP_Resource directory_ref))&Pnacl_M27_PPB_Directo ryReader_Dev_Create,
4004 .IsDirectoryReader = (PP_Bool (*)(PP_Resource resource))&Pnacl_M27_PPB_Direc toryReader_Dev_IsDirectoryReader,
4005 .ReadEntries = (int32_t (*)(PP_Resource directory_reader, struct PP_ArrayOut put output, struct PP_CompletionCallback callback))&Pnacl_M27_PPB_DirectoryReade r_Dev_ReadEntries
4006 };
4007
4008 struct PPB_FileChooser_Dev_0_5 Pnacl_Wrappers_PPB_FileChooser_Dev_0_5 = { 3987 struct PPB_FileChooser_Dev_0_5 Pnacl_Wrappers_PPB_FileChooser_Dev_0_5 = {
4009 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M16_PPB_FileChooser_Dev_Create, 3988 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M16_PPB_FileChooser_Dev_Create,
4010 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M16_PPB_FileChoos er_Dev_IsFileChooser, 3989 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M16_PPB_FileChoos er_Dev_IsFileChooser,
4011 .Show = (int32_t (*)(PP_Resource chooser, struct PP_CompletionCallback callb ack))&Pnacl_M16_PPB_FileChooser_Dev_Show, 3990 .Show = (int32_t (*)(PP_Resource chooser, struct PP_CompletionCallback callb ack))&Pnacl_M16_PPB_FileChooser_Dev_Show,
4012 .GetNextChosenFile = (PP_Resource (*)(PP_Resource chooser))&Pnacl_M16_PPB_Fi leChooser_Dev_GetNextChosenFile 3991 .GetNextChosenFile = (PP_Resource (*)(PP_Resource chooser))&Pnacl_M16_PPB_Fi leChooser_Dev_GetNextChosenFile
4013 }; 3992 };
4014 3993
4015 struct PPB_FileChooser_Dev_0_6 Pnacl_Wrappers_PPB_FileChooser_Dev_0_6 = { 3994 struct PPB_FileChooser_Dev_0_6 Pnacl_Wrappers_PPB_FileChooser_Dev_0_6 = {
4016 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M19_PPB_FileChooser_Dev_Create, 3995 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode , struct PP_Var accept_types))&Pnacl_M19_PPB_FileChooser_Dev_Create,
4017 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_FileChoos er_Dev_IsFileChooser, 3996 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_FileChoos er_Dev_IsFileChooser,
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
4931 .wrapped_iface = NULL /* Still need slot for real_iface */, 4910 .wrapped_iface = NULL /* Still need slot for real_iface */,
4932 .real_iface = NULL 4911 .real_iface = NULL
4933 }; 4912 };
4934 4913
4935 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1 = { 4914 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1 = {
4936 .iface_macro = PPB_DEVICEREF_DEV_INTERFACE_0_1, 4915 .iface_macro = PPB_DEVICEREF_DEV_INTERFACE_0_1,
4937 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DeviceRef_Dev_0_1, 4916 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DeviceRef_Dev_0_1,
4938 .real_iface = NULL 4917 .real_iface = NULL
4939 }; 4918 };
4940 4919
4941 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_6 = {
4942 .iface_macro = PPB_DIRECTORYREADER_DEV_INTERFACE_0_6,
4943 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_DirectoryReader_Dev_0_6,
4944 .real_iface = NULL
4945 };
4946
4947 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5 = { 4920 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5 = {
4948 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_5, 4921 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_5,
4949 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_5, 4922 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_5,
4950 .real_iface = NULL 4923 .real_iface = NULL
4951 }; 4924 };
4952 4925
4953 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6 = { 4926 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6 = {
4954 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_6, 4927 .iface_macro = PPB_FILECHOOSER_DEV_INTERFACE_0_6,
4955 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_6, 4928 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileChooser_Dev_0_6,
4956 .real_iface = NULL 4929 .real_iface = NULL
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
5520 &Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4, 5493 &Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4,
5521 &Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0, 5494 &Pnacl_WrapperInfo_PPB_Graphics3DTrusted_1_0,
5522 &Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4, 5495 &Pnacl_WrapperInfo_PPB_ImageDataTrusted_0_4,
5523 &Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3, 5496 &Pnacl_WrapperInfo_PPB_URLLoaderTrusted_0_3,
5524 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2, 5497 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_2,
5525 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3, 5498 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3,
5526 &Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4, 5499 &Pnacl_WrapperInfo_PPB_Buffer_Dev_0_4,
5527 &Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1, 5500 &Pnacl_WrapperInfo_PPB_Crypto_Dev_0_1,
5528 &Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4, 5501 &Pnacl_WrapperInfo_PPB_CursorControl_Dev_0_4,
5529 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 5502 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
5530 &Pnacl_WrapperInfo_PPB_DirectoryReader_Dev_0_6,
5531 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 5503 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
5532 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 5504 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
5533 &Pnacl_WrapperInfo_PPB_Find_Dev_0_3, 5505 &Pnacl_WrapperInfo_PPB_Find_Dev_0_3,
5534 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 5506 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
5535 &Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1, 5507 &Pnacl_WrapperInfo_PPB_Graphics2D_Dev_0_1,
5536 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 5508 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
5537 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 5509 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
5538 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_1, 5510 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_Dev_0_1,
5539 &Pnacl_WrapperInfo_PPB_Memory_Dev_0_1, 5511 &Pnacl_WrapperInfo_PPB_Memory_Dev_0_1,
5540 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 5512 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
5698 if (NULL == iface) return NULL; 5670 if (NULL == iface) return NULL;
5699 wrapper->real_iface = iface; 5671 wrapper->real_iface = iface;
5700 } 5672 }
5701 5673
5702 if (wrapper->wrapped_iface) { 5674 if (wrapper->wrapped_iface) {
5703 return wrapper->wrapped_iface; 5675 return wrapper->wrapped_iface;
5704 } else { 5676 } else {
5705 return wrapper->real_iface; 5677 return wrapper->real_iface;
5706 } 5678 }
5707 } 5679 }
OLDNEW
« no previous file with comments | « ppapi/cpp/file_ref.cc ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698