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

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: Created 7 years 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
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_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 135 }
136 136
137 /* BEGIN Declarations for all Wrapper Infos */ 137 /* BEGIN Declarations for all Wrapper Infos */
138 138
139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0; 139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0;
140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0; 140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0;
141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0; 141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0;
142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1; 142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1;
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0; 143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0;
144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1; 144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1;
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_2;
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0; 146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0; 147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0;
147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1; 148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1;
148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0; 149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0;
149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_1_0; 150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_1_0;
150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0; 151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1; 152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0;
153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0; 154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0;
154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0; 155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0;
(...skipping 364 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, PP _Bool make_ancestors, 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_ancestors, *callback);
565 }
566
567 static int32_t Pnacl_M34_PPB_FileRef_MakeDirectoryExclusive(PP_Resource director y_ref, PP_Bool make_ancestors, struct PP_CompletionCallback* callback) {
568 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
569 return iface->MakeDirectoryExclusive(directory_ref, make_ancestors, *callback) ;
570 }
571
572 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) {
573 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
574 return iface->Touch(file_ref, last_access_time, last_modified_time, *callback) ;
575 }
576
577 static int32_t Pnacl_M34_PPB_FileRef_Delete(PP_Resource file_ref, struct PP_Comp letionCallback* callback) {
578 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
579 return iface->Delete(file_ref, *callback);
580 }
581
582 static int32_t Pnacl_M34_PPB_FileRef_Rename(PP_Resource file_ref, PP_Resource ne w_file_ref, struct PP_CompletionCallback* callback) {
583 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
584 return iface->Rename(file_ref, new_file_ref, *callback);
585 }
586
587 static int32_t Pnacl_M34_PPB_FileRef_Query(PP_Resource file_ref, struct PP_FileI nfo* info, struct PP_CompletionCallback* callback) {
588 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
589 return iface->Query(file_ref, info, *callback);
590 }
591
592 static int32_t Pnacl_M34_PPB_FileRef_ReadDirectoryEntries(PP_Resource file_ref, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback) {
593 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
594 return iface->ReadDirectoryEntries(file_ref, *output, *callback);
595 }
596
597 /* End wrapper methods for PPB_FileRef_1_2 */
598
529 /* Begin wrapper methods for PPB_FileSystem_1_0 */ 599 /* Begin wrapper methods for PPB_FileSystem_1_0 */
530 600
531 static PP_Resource Pnacl_M14_PPB_FileSystem_Create(PP_Instance instance, PP_File SystemType type) { 601 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; 602 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface;
533 return iface->Create(instance, type); 603 return iface->Create(instance, type);
534 } 604 }
535 605
536 static PP_Bool Pnacl_M14_PPB_FileSystem_IsFileSystem(PP_Resource resource) { 606 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; 607 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface;
538 return iface->IsFileSystem(resource); 608 return iface->IsFileSystem(resource);
(...skipping 3600 matching lines...) Expand 10 before | Expand all | Expand 10 after
4139 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etPath, 4209 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etPath,
4140 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etParent, 4210 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etParent,
4141 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, PP_Bool make_ancest ors, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_MakeDirectory , 4211 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, PP_Bool make_ancest ors, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_MakeDirectory ,
4142 .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, 4212 .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,
4143 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M28_PPB_FileRef_Delete, 4213 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M28_PPB_FileRef_Delete,
4144 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Rename, 4214 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Rename,
4145 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Query, 4215 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Query,
4146 .ReadDirectoryEntries = (int32_t (*)(PP_Resource file_ref, struct PP_ArrayOu tput output, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_ReadD irectoryEntries 4216 .ReadDirectoryEntries = (int32_t (*)(PP_Resource file_ref, struct PP_ArrayOu tput output, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_ReadD irectoryEntries
4147 }; 4217 };
4148 4218
4219 struct PPB_FileRef_1_2 Pnacl_Wrappers_PPB_FileRef_1_2 = {
4220 .Create = (PP_Resource (*)(PP_Resource file_system, const char* path))&Pnacl _M34_PPB_FileRef_Create,
4221 .IsFileRef = (PP_Bool (*)(PP_Resource resource))&Pnacl_M34_PPB_FileRef_IsFil eRef,
4222 .GetFileSystemType = (PP_FileSystemType (*)(PP_Resource file_ref))&Pnacl_M34 _PPB_FileRef_GetFileSystemType,
4223 .GetName = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M34_PPB_FileRef_G etName,
4224 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M34_PPB_FileRef_G etPath,
4225 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M34_PPB_FileRef_G etParent,
4226 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, PP_Bool make_ancest ors, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_MakeDirectory ,
4227 .MakeDirectoryExclusive = (int32_t (*)(PP_Resource directory_ref, PP_Bool ma ke_ancestors, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_Make DirectoryExclusive,
4228 .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,
4229 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M34_PPB_FileRef_Delete,
4230 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_Rename,
4231 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_Query,
4232 .ReadDirectoryEntries = (int32_t (*)(PP_Resource file_ref, struct PP_ArrayOu tput output, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_ReadD irectoryEntries
4233 };
4234
4149 struct PPB_FileSystem_1_0 Pnacl_Wrappers_PPB_FileSystem_1_0 = { 4235 struct PPB_FileSystem_1_0 Pnacl_Wrappers_PPB_FileSystem_1_0 = {
4150 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileSystemType type))&Pn acl_M14_PPB_FileSystem_Create, 4236 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileSystemType type))&Pn acl_M14_PPB_FileSystem_Create,
4151 .IsFileSystem = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_FileSystem _IsFileSystem, 4237 .IsFileSystem = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_FileSystem _IsFileSystem,
4152 .Open = (int32_t (*)(PP_Resource file_system, int64_t expected_size, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileSystem_Open, 4238 .Open = (int32_t (*)(PP_Resource file_system, int64_t expected_size, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileSystem_Open,
4153 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi leSystem_GetType 4239 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi leSystem_GetType
4154 }; 4240 };
4155 4241
4156 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */ 4242 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */
4157 4243
4158 /* Not generating wrapper interface for PPB_Gamepad_1_0 */ 4244 /* Not generating wrapper interface for PPB_Gamepad_1_0 */
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
5173 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_0, 5259 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_0,
5174 .real_iface = NULL 5260 .real_iface = NULL
5175 }; 5261 };
5176 5262
5177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1 = { 5263 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1 = {
5178 .iface_macro = PPB_FILEREF_INTERFACE_1_1, 5264 .iface_macro = PPB_FILEREF_INTERFACE_1_1,
5179 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_1, 5265 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_1,
5180 .real_iface = NULL 5266 .real_iface = NULL
5181 }; 5267 };
5182 5268
5269 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_2 = {
5270 .iface_macro = PPB_FILEREF_INTERFACE_1_2,
5271 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_2,
5272 .real_iface = NULL
5273 };
5274
5183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0 = { 5275 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0 = {
5184 .iface_macro = PPB_FILESYSTEM_INTERFACE_1_0, 5276 .iface_macro = PPB_FILESYSTEM_INTERFACE_1_0,
5185 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileSystem_1_0, 5277 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileSystem_1_0,
5186 .real_iface = NULL 5278 .real_iface = NULL
5187 }; 5279 };
5188 5280
5189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0 = { 5281 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0 = {
5190 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_0, 5282 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_0,
5191 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_0, 5283 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_0,
5192 .real_iface = NULL 5284 .real_iface = NULL
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
5750 .real_iface = NULL 5842 .real_iface = NULL
5751 }; 5843 };
5752 5844
5753 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { 5845 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = {
5754 &Pnacl_WrapperInfo_PPB_Console_1_0, 5846 &Pnacl_WrapperInfo_PPB_Console_1_0,
5755 &Pnacl_WrapperInfo_PPB_Core_1_0, 5847 &Pnacl_WrapperInfo_PPB_Core_1_0,
5756 &Pnacl_WrapperInfo_PPB_FileIO_1_0, 5848 &Pnacl_WrapperInfo_PPB_FileIO_1_0,
5757 &Pnacl_WrapperInfo_PPB_FileIO_1_1, 5849 &Pnacl_WrapperInfo_PPB_FileIO_1_1,
5758 &Pnacl_WrapperInfo_PPB_FileRef_1_0, 5850 &Pnacl_WrapperInfo_PPB_FileRef_1_0,
5759 &Pnacl_WrapperInfo_PPB_FileRef_1_1, 5851 &Pnacl_WrapperInfo_PPB_FileRef_1_1,
5852 &Pnacl_WrapperInfo_PPB_FileRef_1_2,
5760 &Pnacl_WrapperInfo_PPB_FileSystem_1_0, 5853 &Pnacl_WrapperInfo_PPB_FileSystem_1_0,
5761 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0, 5854 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0,
5762 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1, 5855 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1,
5763 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0, 5856 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0,
5764 &Pnacl_WrapperInfo_PPB_HostResolver_1_0, 5857 &Pnacl_WrapperInfo_PPB_HostResolver_1_0,
5765 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0, 5858 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0,
5766 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1, 5859 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1,
5767 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0, 5860 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0,
5768 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0, 5861 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0,
5769 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0, 5862 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
5928 if (NULL == iface) return NULL; 6021 if (NULL == iface) return NULL;
5929 wrapper->real_iface = iface; 6022 wrapper->real_iface = iface;
5930 } 6023 }
5931 6024
5932 if (wrapper->wrapped_iface) { 6025 if (wrapper->wrapped_iface) {
5933 return wrapper->wrapped_iface; 6026 return wrapper->wrapped_iface;
5934 } else { 6027 } else {
5935 return wrapper->real_iface; 6028 return wrapper->real_iface;
5936 } 6029 }
5937 } 6030 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698