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

Side by Side Diff: chrome/renderer/webplugin_delegate_pepper.h

Issue 1529005: New experimental Pepper device API.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 months 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
« no previous file with comments | « build/common.gypi ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <map> 10 #include <map>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void* user_data); 137 void* user_data);
138 virtual NPError Device3DDestroyContext(NPDeviceContext3D* context); 138 virtual NPError Device3DDestroyContext(NPDeviceContext3D* context);
139 virtual NPError Device3DCreateBuffer(NPDeviceContext3D* context, 139 virtual NPError Device3DCreateBuffer(NPDeviceContext3D* context,
140 size_t size, 140 size_t size,
141 int32* id); 141 int32* id);
142 virtual NPError Device3DDestroyBuffer(NPDeviceContext3D* context, 142 virtual NPError Device3DDestroyBuffer(NPDeviceContext3D* context,
143 int32 id); 143 int32 id);
144 virtual NPError Device3DMapBuffer(NPDeviceContext3D* context, 144 virtual NPError Device3DMapBuffer(NPDeviceContext3D* context,
145 int32 id, 145 int32 id,
146 NPDeviceBuffer* buffer); 146 NPDeviceBuffer* buffer);
147 virtual NPError Device3DGetNumConfigs(int32* num_configs);
148 virtual NPError Device3DGetConfigAttribs(int32 config,
149 int32* attrib_list);
150 virtual NPError Device3DCreateContext(int32 config,
151 int32* attrib_list,
152 NPDeviceContext3D** context);
153 virtual NPError Device3DRegisterCallback(
154 NPP id,
155 NPDeviceContext3D* context,
156 int32 callback_type,
157 NPDeviceGenericCallbackPtr callback,
158 void* callback_data);
Nico 2011/02/07 04:42:21 Hi, this doesn't actually override the superclass
159 virtual NPError Device3DSynchronizeContext(
160 NPP id,
161 NPDeviceContext3D* context,
162 NPDeviceSynchronizationMode mode,
163 const int32* input_attrib_list,
164 int32* output_attrib_list,
165 NPDeviceSynchronizeContextCallbackPtr callback,
166 void* callback_data);
147 167
148 // WebPluginAudioDeviceDelegate implementation. 168 // WebPluginAudioDeviceDelegate implementation.
149 virtual NPError DeviceAudioQueryCapability(int32 capability, int32* value); 169 virtual NPError DeviceAudioQueryCapability(int32 capability, int32* value);
150 virtual NPError DeviceAudioQueryConfig( 170 virtual NPError DeviceAudioQueryConfig(
151 const NPDeviceContextAudioConfig* request, 171 const NPDeviceContextAudioConfig* request,
152 NPDeviceContextAudioConfig* obtain); 172 NPDeviceContextAudioConfig* obtain);
153 virtual NPError DeviceAudioInitializeContext( 173 virtual NPError DeviceAudioInitializeContext(
154 const NPDeviceContextAudioConfig* config, 174 const NPDeviceContextAudioConfig* config,
155 NPDeviceContextAudio* context); 175 NPDeviceContextAudio* context);
156 virtual NPError DeviceAudioSetStateContext(NPDeviceContextAudio* context, 176 virtual NPError DeviceAudioSetStateContext(NPDeviceContextAudio* context,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 299
280 // When a choose file operation is outstanding, this will contain a 300 // When a choose file operation is outstanding, this will contain a
281 // pointer to the callback specified by the plugin. Will be NULL otherwise. 301 // pointer to the callback specified by the plugin. Will be NULL otherwise.
282 NPChooseFileCallback current_choose_file_callback_; 302 NPChooseFileCallback current_choose_file_callback_;
283 void* current_choose_file_user_data_; 303 void* current_choose_file_user_data_;
284 304
285 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); 305 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper);
286 }; 306 };
287 307
288 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 308 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698