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