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

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

Issue 113363004: PPAPI: Add new PPB_FileRef.MakeDirectory to support exclusive operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/file_ref.cc ('k') | ppapi/proxy/file_ref_resource.h » ('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) 2014 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2014 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_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 137
138 /* BEGIN Declarations for all Wrapper Infos */ 138 /* BEGIN Declarations for all Wrapper Infos */
139 139
140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0; 140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0;
141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0; 141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0;
142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0; 142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0;
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1; 143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1;
144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0; 144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0;
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1; 145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_2;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0; 147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0;
147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0; 148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0;
148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1; 149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1;
149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0; 150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0;
150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_1_0; 151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_1_0;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0; 152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1;
153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0; 154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0;
154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0; 155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0;
155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0; 156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0;
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 return iface->Query(file_ref, info, *callback); 520 return iface->Query(file_ref, info, *callback);
520 } 521 }
521 522
522 static int32_t Pnacl_M28_PPB_FileRef_ReadDirectoryEntries(PP_Resource file_ref, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback) { 523 static int32_t Pnacl_M28_PPB_FileRef_ReadDirectoryEntries(PP_Resource file_ref, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback) {
523 const struct PPB_FileRef_1_1 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_1.real_i face; 524 const struct PPB_FileRef_1_1 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_1.real_i face;
524 return iface->ReadDirectoryEntries(file_ref, *output, *callback); 525 return iface->ReadDirectoryEntries(file_ref, *output, *callback);
525 } 526 }
526 527
527 /* End wrapper methods for PPB_FileRef_1_1 */ 528 /* End wrapper methods for PPB_FileRef_1_1 */
528 529
530 /* Begin wrapper methods for PPB_FileRef_1_2 */
531
532 static PP_Resource Pnacl_M34_PPB_FileRef_Create(PP_Resource file_system, const c har* path) {
533 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
534 return iface->Create(file_system, path);
535 }
536
537 static PP_Bool Pnacl_M34_PPB_FileRef_IsFileRef(PP_Resource resource) {
538 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
539 return iface->IsFileRef(resource);
540 }
541
542 static PP_FileSystemType Pnacl_M34_PPB_FileRef_GetFileSystemType(PP_Resource fil e_ref) {
543 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
544 return iface->GetFileSystemType(file_ref);
545 }
546
547 static void Pnacl_M34_PPB_FileRef_GetName(struct PP_Var* _struct_result, PP_Reso urce file_ref) {
548 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
549 *_struct_result = iface->GetName(file_ref);
550 }
551
552 static void Pnacl_M34_PPB_FileRef_GetPath(struct PP_Var* _struct_result, PP_Reso urce file_ref) {
553 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
554 *_struct_result = iface->GetPath(file_ref);
555 }
556
557 static PP_Resource Pnacl_M34_PPB_FileRef_GetParent(PP_Resource file_ref) {
558 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
559 return iface->GetParent(file_ref);
560 }
561
562 static int32_t Pnacl_M34_PPB_FileRef_MakeDirectory(PP_Resource directory_ref, in t32_t make_directory_flags, struct PP_CompletionCallback* callback) {
563 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
564 return iface->MakeDirectory(directory_ref, make_directory_flags, *callback);
565 }
566
567 static int32_t Pnacl_M34_PPB_FileRef_Touch(PP_Resource file_ref, PP_Time last_ac cess_time, PP_Time last_modified_time, struct PP_CompletionCallback* callback) {
568 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
569 return iface->Touch(file_ref, last_access_time, last_modified_time, *callback) ;
570 }
571
572 static int32_t Pnacl_M34_PPB_FileRef_Delete(PP_Resource file_ref, struct PP_Comp letionCallback* callback) {
573 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
574 return iface->Delete(file_ref, *callback);
575 }
576
577 static int32_t Pnacl_M34_PPB_FileRef_Rename(PP_Resource file_ref, PP_Resource ne w_file_ref, struct PP_CompletionCallback* callback) {
578 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
579 return iface->Rename(file_ref, new_file_ref, *callback);
580 }
581
582 static int32_t Pnacl_M34_PPB_FileRef_Query(PP_Resource file_ref, struct PP_FileI nfo* info, struct PP_CompletionCallback* callback) {
583 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
584 return iface->Query(file_ref, info, *callback);
585 }
586
587 static int32_t Pnacl_M34_PPB_FileRef_ReadDirectoryEntries(PP_Resource file_ref, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback) {
588 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
589 return iface->ReadDirectoryEntries(file_ref, *output, *callback);
590 }
591
592 /* End wrapper methods for PPB_FileRef_1_2 */
593
529 /* Begin wrapper methods for PPB_FileSystem_1_0 */ 594 /* Begin wrapper methods for PPB_FileSystem_1_0 */
530 595
531 static PP_Resource Pnacl_M14_PPB_FileSystem_Create(PP_Instance instance, PP_File SystemType type) { 596 static PP_Resource Pnacl_M14_PPB_FileSystem_Create(PP_Instance instance, PP_File SystemType type) {
532 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface; 597 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface;
533 return iface->Create(instance, type); 598 return iface->Create(instance, type);
534 } 599 }
535 600
536 static PP_Bool Pnacl_M14_PPB_FileSystem_IsFileSystem(PP_Resource resource) { 601 static PP_Bool Pnacl_M14_PPB_FileSystem_IsFileSystem(PP_Resource resource) {
537 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface; 602 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface;
538 return iface->IsFileSystem(resource); 603 return iface->IsFileSystem(resource);
(...skipping 3551 matching lines...) Expand 10 before | Expand all | Expand 10 after
4090 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etPath, 4155 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etPath,
4091 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etParent, 4156 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etParent,
4092 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, PP_Bool make_ancest ors, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_MakeDirectory , 4157 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, PP_Bool make_ancest ors, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_MakeDirectory ,
4093 .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, 4158 .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,
4094 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M28_PPB_FileRef_Delete, 4159 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M28_PPB_FileRef_Delete,
4095 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Rename, 4160 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Rename,
4096 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Query, 4161 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Query,
4097 .ReadDirectoryEntries = (int32_t (*)(PP_Resource file_ref, struct PP_ArrayOu tput output, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_ReadD irectoryEntries 4162 .ReadDirectoryEntries = (int32_t (*)(PP_Resource file_ref, struct PP_ArrayOu tput output, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_ReadD irectoryEntries
4098 }; 4163 };
4099 4164
4165 static struct PPB_FileRef_1_2 Pnacl_Wrappers_PPB_FileRef_1_2 = {
4166 .Create = (PP_Resource (*)(PP_Resource file_system, const char* path))&Pnacl _M34_PPB_FileRef_Create,
4167 .IsFileRef = (PP_Bool (*)(PP_Resource resource))&Pnacl_M34_PPB_FileRef_IsFil eRef,
4168 .GetFileSystemType = (PP_FileSystemType (*)(PP_Resource file_ref))&Pnacl_M34 _PPB_FileRef_GetFileSystemType,
4169 .GetName = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M34_PPB_FileRef_G etName,
4170 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M34_PPB_FileRef_G etPath,
4171 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M34_PPB_FileRef_G etParent,
4172 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, int32_t make_direct ory_flags, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_MakeDir ectory,
4173 .Touch = (int32_t (*)(PP_Resource file_ref, PP_Time last_access_time, PP_Tim e last_modified_time, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_File Ref_Touch,
4174 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M34_PPB_FileRef_Delete,
4175 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_Rename,
4176 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_Query,
4177 .ReadDirectoryEntries = (int32_t (*)(PP_Resource file_ref, struct PP_ArrayOu tput output, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_ReadD irectoryEntries
4178 };
4179
4100 static struct PPB_FileSystem_1_0 Pnacl_Wrappers_PPB_FileSystem_1_0 = { 4180 static struct PPB_FileSystem_1_0 Pnacl_Wrappers_PPB_FileSystem_1_0 = {
4101 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileSystemType type))&Pn acl_M14_PPB_FileSystem_Create, 4181 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileSystemType type))&Pn acl_M14_PPB_FileSystem_Create,
4102 .IsFileSystem = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_FileSystem _IsFileSystem, 4182 .IsFileSystem = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_FileSystem _IsFileSystem,
4103 .Open = (int32_t (*)(PP_Resource file_system, int64_t expected_size, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileSystem_Open, 4183 .Open = (int32_t (*)(PP_Resource file_system, int64_t expected_size, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileSystem_Open,
4104 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi leSystem_GetType 4184 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi leSystem_GetType
4105 }; 4185 };
4106 4186
4107 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */ 4187 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */
4108 4188
4109 /* Not generating wrapper interface for PPB_Gamepad_1_0 */ 4189 /* Not generating wrapper interface for PPB_Gamepad_1_0 */
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
5112 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_0, 5192 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_0,
5113 .real_iface = NULL 5193 .real_iface = NULL
5114 }; 5194 };
5115 5195
5116 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1 = { 5196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1 = {
5117 .iface_macro = PPB_FILEREF_INTERFACE_1_1, 5197 .iface_macro = PPB_FILEREF_INTERFACE_1_1,
5118 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_1, 5198 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_1,
5119 .real_iface = NULL 5199 .real_iface = NULL
5120 }; 5200 };
5121 5201
5202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_2 = {
5203 .iface_macro = PPB_FILEREF_INTERFACE_1_2,
5204 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_2,
5205 .real_iface = NULL
5206 };
5207
5122 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0 = { 5208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0 = {
5123 .iface_macro = PPB_FILESYSTEM_INTERFACE_1_0, 5209 .iface_macro = PPB_FILESYSTEM_INTERFACE_1_0,
5124 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileSystem_1_0, 5210 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileSystem_1_0,
5125 .real_iface = NULL 5211 .real_iface = NULL
5126 }; 5212 };
5127 5213
5128 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0 = { 5214 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0 = {
5129 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_0, 5215 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_0,
5130 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_0, 5216 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_0,
5131 .real_iface = NULL 5217 .real_iface = NULL
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
5683 .real_iface = NULL 5769 .real_iface = NULL
5684 }; 5770 };
5685 5771
5686 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { 5772 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = {
5687 &Pnacl_WrapperInfo_PPB_Console_1_0, 5773 &Pnacl_WrapperInfo_PPB_Console_1_0,
5688 &Pnacl_WrapperInfo_PPB_Core_1_0, 5774 &Pnacl_WrapperInfo_PPB_Core_1_0,
5689 &Pnacl_WrapperInfo_PPB_FileIO_1_0, 5775 &Pnacl_WrapperInfo_PPB_FileIO_1_0,
5690 &Pnacl_WrapperInfo_PPB_FileIO_1_1, 5776 &Pnacl_WrapperInfo_PPB_FileIO_1_1,
5691 &Pnacl_WrapperInfo_PPB_FileRef_1_0, 5777 &Pnacl_WrapperInfo_PPB_FileRef_1_0,
5692 &Pnacl_WrapperInfo_PPB_FileRef_1_1, 5778 &Pnacl_WrapperInfo_PPB_FileRef_1_1,
5779 &Pnacl_WrapperInfo_PPB_FileRef_1_2,
5693 &Pnacl_WrapperInfo_PPB_FileSystem_1_0, 5780 &Pnacl_WrapperInfo_PPB_FileSystem_1_0,
5694 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0, 5781 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0,
5695 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1, 5782 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1,
5696 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0, 5783 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0,
5697 &Pnacl_WrapperInfo_PPB_HostResolver_1_0, 5784 &Pnacl_WrapperInfo_PPB_HostResolver_1_0,
5698 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0, 5785 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0,
5699 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1, 5786 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1,
5700 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0, 5787 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0,
5701 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0, 5788 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0,
5702 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0, 5789 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
5860 if (NULL == iface) return NULL; 5947 if (NULL == iface) return NULL;
5861 wrapper->real_iface = iface; 5948 wrapper->real_iface = iface;
5862 } 5949 }
5863 5950
5864 if (wrapper->wrapped_iface) { 5951 if (wrapper->wrapped_iface) {
5865 return wrapper->wrapped_iface; 5952 return wrapper->wrapped_iface;
5866 } else { 5953 } else {
5867 return wrapper->real_iface; 5954 return wrapper->real_iface;
5868 } 5955 }
5869 } 5956 }
OLDNEW
« no previous file with comments | « ppapi/cpp/file_ref.cc ('k') | ppapi/proxy/file_ref_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698