| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 explicit PluginObject(NPP npp); | 40 explicit PluginObject(NPP npp); |
| 41 ~PluginObject(); | 41 ~PluginObject(); |
| 42 | 42 |
| 43 static NPClass* GetPluginClass(); | 43 static NPClass* GetPluginClass(); |
| 44 | 44 |
| 45 NPObject* header() { return &header_; } | 45 NPObject* header() { return &header_; } |
| 46 NPP npp() const { return npp_; } | 46 NPP npp() const { return npp_; } |
| 47 | 47 |
| 48 void New(NPMIMEType pluginType, int16 argc, char* argn[], char* argv[]); | 48 void New(NPMIMEType pluginType, int16 argc, char* argn[], char* argv[]); |
| 49 void SetWindow(const NPWindow& window); | 49 void SetWindow(const NPWindow& window); |
| 50 void Initialize3D(); |
| 51 void Destroy3D(); |
| 50 void Draw3D(); | 52 void Draw3D(); |
| 51 | 53 |
| 52 private: | 54 private: |
| 53 NPObject header_; | 55 NPObject header_; |
| 54 NPP npp_; | 56 NPP npp_; |
| 55 NPObject* test_object_; | 57 NPObject* test_object_; |
| 56 int dimensions_; | 58 int dimensions_; |
| 57 | 59 |
| 58 NPDevice* device2d_; | 60 NPDevice* device2d_; |
| 59 NPDevice* device3d_; | 61 NPDevice* device3d_; |
| 60 | 62 |
| 61 #if !defined(INDEPENDENT_PLUGIN) | 63 #if !defined(INDEPENDENT_PLUGIN) |
| 62 PGLContext pgl_context_; | 64 PGLContext pgl_context_; |
| 63 #endif | 65 #endif |
| 64 | 66 |
| 65 NPDevice* deviceaudio_; | 67 NPDevice* deviceaudio_; |
| 66 | 68 |
| 67 NPDeviceContext3D context3d_; | 69 NPDeviceContext3D context3d_; |
| 68 NPDeviceContextAudio context_audio_; | 70 NPDeviceContextAudio context_audio_; |
| 69 | 71 |
| 70 | 72 |
| 71 int width_; | 73 int width_; |
| 72 int height_; | 74 int height_; |
| 73 | 75 |
| 74 DISALLOW_COPY_AND_ASSIGN(PluginObject); | 76 DISALLOW_COPY_AND_ASSIGN(PluginObject); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 | 79 |
| 78 #endif // WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_PLUGIN_OBJECT_H_ | 80 #endif // WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_PLUGIN_OBJECT_H_ |
| OLD | NEW |