Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Side by Side Diff: webkit/glue/plugins/webplugin_3d_device_delegate.h

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_
6 #define WEBKIT_GLUE_PLUGINS_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_glue { 11 namespace webkit_glue {
12 12
13 // Interface for the NPAPI 3D device extension. This class implements "NOP" 13 // 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 14 // versions of all these functions so it can be used seamlessly by the
15 // "regular" plugin delegate while being overridden by the "pepper" one. 15 // "regular" plugin delegate while being overridden by the "pepper" one.
16 class WebPlugin3DDeviceDelegate { 16 class WebPlugin3DDeviceDelegate {
17 public: 17 public:
18 virtual NPError Device3DQueryCapability(int32 capability, int32* value) { 18 virtual NPError Device3DQueryCapability(int32 capability, int32* value);
19 return NPERR_GENERIC_ERROR;
20 }
21 virtual NPError Device3DQueryConfig(const NPDeviceContext3DConfig* request, 19 virtual NPError Device3DQueryConfig(const NPDeviceContext3DConfig* request,
22 NPDeviceContext3DConfig* obtain) { 20 NPDeviceContext3DConfig* obtain);
23 return NPERR_GENERIC_ERROR;
24 }
25 virtual NPError Device3DInitializeContext( 21 virtual NPError Device3DInitializeContext(
26 const NPDeviceContext3DConfig* config, 22 const NPDeviceContext3DConfig* config,
27 NPDeviceContext3D* context) { 23 NPDeviceContext3D* context);
28 return NPERR_GENERIC_ERROR;
29 }
30 virtual NPError Device3DSetStateContext(NPDeviceContext3D* context, 24 virtual NPError Device3DSetStateContext(NPDeviceContext3D* context,
31 int32 state, 25 int32 state,
32 intptr_t value) { 26 intptr_t value);
33 return NPERR_GENERIC_ERROR;
34 }
35 virtual NPError Device3DGetStateContext(NPDeviceContext3D* context, 27 virtual NPError Device3DGetStateContext(NPDeviceContext3D* context,
36 int32 state, 28 int32 state,
37 intptr_t* value) { 29 intptr_t* value);
38 return NPERR_GENERIC_ERROR;
39 }
40 virtual NPError Device3DFlushContext(NPP id, 30 virtual NPError Device3DFlushContext(NPP id,
41 NPDeviceContext3D* context, 31 NPDeviceContext3D* context,
42 NPDeviceFlushContextCallbackPtr callback, 32 NPDeviceFlushContextCallbackPtr callback,
43 void* user_data) { 33 void* user_data);
44 return NPERR_GENERIC_ERROR; 34 virtual NPError Device3DDestroyContext(NPDeviceContext3D* context);
45 }
46 virtual NPError Device3DDestroyContext(NPDeviceContext3D* context) {
47 return NPERR_GENERIC_ERROR;
48 }
49 virtual NPError Device3DCreateBuffer(NPDeviceContext3D* context, 35 virtual NPError Device3DCreateBuffer(NPDeviceContext3D* context,
50 size_t size, 36 size_t size,
51 int32* id) { 37 int32* id);
52 return NPERR_GENERIC_ERROR;
53 }
54 virtual NPError Device3DDestroyBuffer(NPDeviceContext3D* context, 38 virtual NPError Device3DDestroyBuffer(NPDeviceContext3D* context,
55 int32 id) { 39 int32 id);
56 return NPERR_GENERIC_ERROR;
57 }
58 virtual NPError Device3DMapBuffer(NPDeviceContext3D* context, 40 virtual NPError Device3DMapBuffer(NPDeviceContext3D* context,
59 int32 id, 41 int32 id,
60 NPDeviceBuffer* buffer) { 42 NPDeviceBuffer* buffer);
61 return NPERR_GENERIC_ERROR; 43 virtual NPError Device3DGetNumConfigs(int32* num_configs);
62 }
63 virtual NPError Device3DGetNumConfigs(int32* num_configs) {
64 return NPERR_GENERIC_ERROR;
65 }
66 virtual NPError Device3DGetConfigAttribs(int32 config, 44 virtual NPError Device3DGetConfigAttribs(int32 config,
67 int32* attrib_list) { 45 int32* attrib_list);
68 return NPERR_GENERIC_ERROR;
69 }
70 virtual NPError Device3DCreateContext(int32 config, 46 virtual NPError Device3DCreateContext(int32 config,
71 const int32* attrib_list, 47 const int32* attrib_list,
72 NPDeviceContext3D** context) { 48 NPDeviceContext3D** context);
73 return NPERR_GENERIC_ERROR;
74 }
75 virtual NPError Device3DRegisterCallback( 49 virtual NPError Device3DRegisterCallback(
76 NPP id, 50 NPP id,
77 NPDeviceContext* context, 51 NPDeviceContext* context,
78 int32 callback_type, 52 int32 callback_type,
79 NPDeviceGenericCallbackPtr callback, 53 NPDeviceGenericCallbackPtr callback,
80 void* callback_data) { 54 void* callback_data);
81 return NPERR_GENERIC_ERROR;
82 }
83 virtual NPError Device3DSynchronizeContext( 55 virtual NPError Device3DSynchronizeContext(
84 NPP id, 56 NPP id,
85 NPDeviceContext3D* context, 57 NPDeviceContext3D* context,
86 NPDeviceSynchronizationMode mode, 58 NPDeviceSynchronizationMode mode,
87 const int32* input_attrib_list, 59 const int32* input_attrib_list,
88 int32* output_attrib_list, 60 int32* output_attrib_list,
89 NPDeviceSynchronizeContextCallbackPtr callback, 61 NPDeviceSynchronizeContextCallbackPtr callback,
90 void* callback_data) { 62 void* callback_data);
91 return NPERR_GENERIC_ERROR;
92 }
93 63
94 protected: 64 protected:
95 WebPlugin3DDeviceDelegate() {} 65 WebPlugin3DDeviceDelegate() {}
96 virtual ~WebPlugin3DDeviceDelegate() {} 66 virtual ~WebPlugin3DDeviceDelegate() {}
97 }; 67 };
98 68
99 } // namespace webkit_glue 69 } // namespace webkit_glue
100 70
101 #endif // WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_ 71 #endif // WEBKIT_GLUE_PLUGINS_WEBPLUGIN_3D_DEVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_2d_device_delegate.cc ('k') | webkit/glue/plugins/webplugin_3d_device_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698