| 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) 2010 Apple Inc. All rights reserved. | 6 * Copyright (C) 2010 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 virtual int32_t NPP_Write(NPStream*, | 91 virtual int32_t NPP_Write(NPStream*, |
| 92 int32_t offset, | 92 int32_t offset, |
| 93 int32_t len, | 93 int32_t len, |
| 94 void* buffer); | 94 void* buffer); |
| 95 virtual int16_t NPP_HandleEvent(void* event); | 95 virtual int16_t NPP_HandleEvent(void* event); |
| 96 virtual bool NPP_URLNotify(const char* url, NPReason, void* notifyData); | 96 virtual bool NPP_URLNotify(const char* url, NPReason, void* notifyData); |
| 97 virtual NPError NPP_GetValue(NPPVariable, void* value); | 97 virtual NPError NPP_GetValue(NPPVariable, void* value); |
| 98 virtual NPError NPP_SetValue(NPNVariable, void* value); | 98 virtual NPError NPP_SetValue(NPNVariable, void* value); |
| 99 | 99 |
| 100 // NPN functions. | 100 // NPN functions. |
| 101 NPError NPN_GetURL(const char* url, const char* target); | |
| 102 NPError NPN_GetURLNotify(const char* url, | |
| 103 const char* target, | |
| 104 void* notifyData); | |
| 105 NPError NPN_GetValue(NPNVariable, void* value); | 101 NPError NPN_GetValue(NPNVariable, void* value); |
| 106 void NPN_InvalidateRect(NPRect* invalidRect); | 102 void NPN_InvalidateRect(NPRect* invalidRect); |
| 107 bool NPN_Invoke(NPObject*, | 103 bool NPN_Invoke(NPObject*, |
| 108 NPIdentifier methodName, | 104 NPIdentifier methodName, |
| 109 const NPVariant* args, | 105 const NPVariant* args, |
| 110 uint32_t argCount, | 106 uint32_t argCount, |
| 111 NPVariant* result); | 107 NPVariant* result); |
| 112 void* NPN_MemAlloc(uint32_t size); | 108 void* NPN_MemAlloc(uint32_t size); |
| 113 | 109 |
| 114 // NPRuntime NPN functions. | 110 // NPRuntime NPN functions. |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 typedef PluginTest* (*CreateTestFunction)(NPP, const std::string&); | 291 typedef PluginTest* (*CreateTestFunction)(NPP, const std::string&); |
| 296 | 292 |
| 297 static void registerCreateTestFunction(const std::string&, | 293 static void registerCreateTestFunction(const std::string&, |
| 298 CreateTestFunction); | 294 CreateTestFunction); |
| 299 static std::map<std::string, CreateTestFunction>& createTestFunctions(); | 295 static std::map<std::string, CreateTestFunction>& createTestFunctions(); |
| 300 | 296 |
| 301 std::string m_identifier; | 297 std::string m_identifier; |
| 302 }; | 298 }; |
| 303 | 299 |
| 304 #endif // PluginTest_h | 300 #endif // PluginTest_h |
| OLD | NEW |