OLD | NEW |
1 /* | 1 /* |
2 IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Ap
ple") in | 2 IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Ap
ple") in |
3 consideration of your agreement to the following terms, and your use, installat
ion, | 3 consideration of your agreement to the following terms, and your use, installat
ion, |
4 modification or redistribution of this Apple software constitutes acceptance of
these | 4 modification or redistribution of this Apple software constitutes acceptance of
these |
5 terms. If you do not agree with these terms, please do not use, install, modif
y or | 5 terms. If you do not agree with these terms, please do not use, install, modif
y or |
6 redistribute this Apple software. | 6 redistribute this Apple software. |
7 | 7 |
8 In consideration of your agreement to abide by the following terms, and subject
to these | 8 In consideration of your agreement to abide by the following terms, and subject
to these |
9 terms, Apple grants you a personal, non-exclusive license, under Apple’s copyri
ghts in | 9 terms, Apple grants you a personal, non-exclusive license, under Apple’s copyri
ghts in |
10 this original Apple software (the "Apple Software"), to use, reproduce, modify
and | 10 this original Apple software (the "Apple Software"), to use, reproduce, modify
and |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 #include "gpu/pgl/pgl.h" | 37 #include "gpu/pgl/pgl.h" |
38 | 38 |
39 #if defined(INDEPENDENT_PLUGIN) | 39 #if defined(INDEPENDENT_PLUGIN) |
40 #include <iostream> | 40 #include <iostream> |
41 #define LOG(x) std::cerr | 41 #define LOG(x) std::cerr |
42 #else | 42 #else |
43 #include "base/logging.h" | 43 #include "base/logging.h" |
44 #include "base/string_util.h" | 44 #include "base/string_util.h" |
45 #endif | 45 #endif |
46 #include "webkit/glue/plugins/nphostapi.h" | 46 #include "third_party/npapi/bindings/nphostapi.h" |
47 #include "webkit/tools/pepper_test_plugin/plugin_object.h" | 47 #include "webkit/tools/pepper_test_plugin/plugin_object.h" |
48 #include "webkit/tools/pepper_test_plugin/event_handler.h" | 48 #include "webkit/tools/pepper_test_plugin/event_handler.h" |
49 | 49 |
50 #if __GNUC__ >= 4 | 50 #if __GNUC__ >= 4 |
51 #define EXPORT __attribute__ ((visibility("default"))) | 51 #define EXPORT __attribute__ ((visibility("default"))) |
52 #elif defined(_MSC_VER) | 52 #elif defined(_MSC_VER) |
53 #define EXPORT __declspec(dllexport) | 53 #define EXPORT __declspec(dllexport) |
54 #endif | 54 #endif |
55 | 55 |
56 namespace { | 56 namespace { |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 284 |
285 #if defined(OS_LINUX) | 285 #if defined(OS_LINUX) |
286 NPError API_CALL NP_GetValue(NPP instance, NPPVariable variable, void* value) { | 286 NPError API_CALL NP_GetValue(NPP instance, NPPVariable variable, void* value) { |
287 return NPP_GetValue(instance, variable, value); | 287 return NPP_GetValue(instance, variable, value); |
288 } | 288 } |
289 | 289 |
290 const char* API_CALL NP_GetMIMEDescription() { | 290 const char* API_CALL NP_GetMIMEDescription() { |
291 return "pepper-application/x-pepper-test-plugin::Pepper Test"; | 291 return "pepper-application/x-pepper-test-plugin::Pepper Test"; |
292 } | 292 } |
293 #endif | 293 #endif |
OLD | NEW |