| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 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 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value) | 835 NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value) |
| 836 { | 836 { |
| 837 PluginObject* obj = static_cast<PluginObject*>(instance->pdata); | 837 PluginObject* obj = static_cast<PluginObject*>(instance->pdata); |
| 838 return obj->pluginTest->NPP_SetValue(variable, value); | 838 return obj->pluginTest->NPP_SetValue(variable, value); |
| 839 } | 839 } |
| 840 | 840 |
| 841 #ifdef XP_UNIX | 841 #ifdef XP_UNIX |
| 842 extern "C" | 842 extern "C" |
| 843 const char* NP_GetMIMEDescription(void) | 843 const char* NP_GetMIMEDescription(void) |
| 844 { | 844 { |
| 845 return "application/x-webkit-test-netscape:testnetscape:test netscape conten
t;image/png:png:PNG image"; | 845 return "application/x-webkit-test-netscape:testnetscape:test netscape conten
t"; |
| 846 } | 846 } |
| 847 | 847 |
| 848 extern "C" | 848 extern "C" |
| 849 NPError NP_GetValue(NPP instance, NPPVariable variable, void* value) | 849 NPError NP_GetValue(NPP instance, NPPVariable variable, void* value) |
| 850 { | 850 { |
| 851 return NPP_GetValue(instance, variable, value); | 851 return NPP_GetValue(instance, variable, value); |
| 852 } | 852 } |
| 853 #endif | 853 #endif |
| OLD | NEW |