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

Side by Side Diff: third_party/npapi/bindings/npruntime.h

Issue 342079: A few small changes to make npapi header files useful in the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « third_party/npapi/bindings/npapi.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, Apple Computer, Inc. and The Mozilla Foundation. 2 * Copyright (C) 2004, Apple Computer, Inc. and The Mozilla Foundation.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 * Revision 9 (August 12, 2004): 63 * Revision 9 (August 12, 2004):
64 * Changed NPVariantType enum values to form PVariantType_XXX 64 * Changed NPVariantType enum values to form PVariantType_XXX
65 * Added NPP arguments to NPObject functions. 65 * Added NPP arguments to NPObject functions.
66 * Replaced NPVariant functions with macros. 66 * Replaced NPVariant functions with macros.
67 */ 67 */
68 #ifndef _NP_RUNTIME_H_ 68 #ifndef _NP_RUNTIME_H_
69 #define _NP_RUNTIME_H_ 69 #define _NP_RUNTIME_H_
70 70
71 71
72 // BEGIN GOOGLE MODIFICATIONS 72 // BEGIN GOOGLE MODIFICATIONS
73 73 #include "npapi.h"
74 #include "base/basictypes.h" 74 #ifndef __native_client__
75 #include "bindings/npapi.h"
76
77 typedef uint8 uint8_t; 75 typedef uint8 uint8_t;
78 typedef int8 int8_t; 76 typedef int8 int8_t;
79 typedef uint16 uint16_t; 77 typedef uint16 uint16_t;
80 typedef int16 int16_t; 78 typedef int16 int16_t;
81 typedef uint32 uint32_t; 79 typedef uint32 uint32_t;
82 typedef int32 int32_t; 80 typedef int32 int32_t;
83 typedef int64 int64_t; 81 typedef int64 int64_t;
84 typedef uint64 uint64_t; 82 typedef uint64 uint64_t;
85 83 #endif /* __native_client__ */
86 // END GOOGLE MODIFICATIONS 84 // END GOOGLE MODIFICATIONS
87 85
88 86
89 #ifdef __cplusplus 87 #ifdef __cplusplus
90 extern "C" { 88 extern "C" {
91 #endif 89 #endif
92 90
93 /* 91 /*
94 This API is used to facilitate binding code written in C to script 92 This API is used to facilitate binding code written in C to script
95 objects. The API in this header does not assume the presence of a 93 objects. The API in this header does not assume the presence of a
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 NPN_SetException may be called to trigger a script exception upon return 387 NPN_SetException may be called to trigger a script exception upon return
390 from entry points into NPObjects. 388 from entry points into NPObjects.
391 */ 389 */
392 void NPN_SetException (NPObject *obj, const NPUTF8 *message); 390 void NPN_SetException (NPObject *obj, const NPUTF8 *message);
393 391
394 #ifdef __cplusplus 392 #ifdef __cplusplus
395 } 393 }
396 #endif 394 #endif
397 395
398 #endif 396 #endif
OLDNEW
« no previous file with comments | « third_party/npapi/bindings/npapi.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698