| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "third_party/npapi/bindings/npapi_extensions.h" | 9 #include "third_party/npapi/bindings/npapi_extensions.h" |
| 10 | 10 |
| 11 namespace webkit_glue { | 11 namespace webkit { |
| 12 namespace npapi { |
| 12 | 13 |
| 13 // Interface for the NPAPI 3D device extension. This class implements "NOP" | 14 // Interface for the NPAPI 3D device extension. This class implements "NOP" |
| 14 // versions of all these functions so it can be used seamlessly by the | 15 // versions of all these functions so it can be used seamlessly by the |
| 15 // "regular" plugin delegate while being overridden by the "pepper" one. | 16 // "regular" plugin delegate while being overridden by the "pepper" one. |
| 16 class WebPlugin3DDeviceDelegate { | 17 class WebPlugin3DDeviceDelegate { |
| 17 public: | 18 public: |
| 18 virtual NPError Device3DQueryCapability(int32 capability, int32* value); | 19 virtual NPError Device3DQueryCapability(int32 capability, int32* value); |
| 19 virtual NPError Device3DQueryConfig(const NPDeviceContext3DConfig* request, | 20 virtual NPError Device3DQueryConfig(const NPDeviceContext3DConfig* request, |
| 20 NPDeviceContext3DConfig* obtain); | 21 NPDeviceContext3DConfig* obtain); |
| 21 virtual NPError Device3DInitializeContext( | 22 virtual NPError Device3DInitializeContext( |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const int32* input_attrib_list, | 60 const int32* input_attrib_list, |
| 60 int32* output_attrib_list, | 61 int32* output_attrib_list, |
| 61 NPDeviceSynchronizeContextCallbackPtr callback, | 62 NPDeviceSynchronizeContextCallbackPtr callback, |
| 62 void* callback_data); | 63 void* callback_data); |
| 63 | 64 |
| 64 protected: | 65 protected: |
| 65 WebPlugin3DDeviceDelegate() {} | 66 WebPlugin3DDeviceDelegate() {} |
| 66 virtual ~WebPlugin3DDeviceDelegate() {} | 67 virtual ~WebPlugin3DDeviceDelegate() {} |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace webkit_glue | 70 } // namespace npapi |
| 71 } // namespace webkit |
| 70 | 72 |
| 71 #endif // WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ | 73 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ |
| OLD | NEW |