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

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

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (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
« no previous file with comments | « webkit/glue/plugins/webplugin.cc ('k') | webkit/glue/plugins/webplugin_2d_device_delegate.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) 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_2D_DEVICE_DELEGATE_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_WEBPLUGIN_2D_DEVICE_DELEGATE_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_2D_DEVICE_DELEGATE_H_ 6 #define WEBKIT_GLUE_PLUGINS_WEBPLUGIN_2D_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 2D device extension. This class implements "NOP" 13 // Interface for the NPAPI 2D 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 WebPlugin2DDeviceDelegate { 16 class WebPlugin2DDeviceDelegate {
18 public: 17 public:
19 virtual NPError Device2DQueryCapability(int32 capability, int32* value); 18 virtual NPError Device2DQueryCapability(int32 capability, int32* value);
20 virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request, 19 virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request,
21 NPDeviceContext2DConfig* obtain); 20 NPDeviceContext2DConfig* obtain);
22 virtual NPError Device2DInitializeContext( 21 virtual NPError Device2DInitializeContext(
23 const NPDeviceContext2DConfig* config, 22 const NPDeviceContext2DConfig* config,
24 NPDeviceContext2D* context); 23 NPDeviceContext2D* context);
25 virtual NPError Device2DSetStateContext(NPDeviceContext2D* context, 24 virtual NPError Device2DSetStateContext(NPDeviceContext2D* context,
26 int32 state, 25 int32 state,
27 intptr_t value); 26 intptr_t value);
28 virtual NPError Device2DGetStateContext(NPDeviceContext2D* context, 27 virtual NPError Device2DGetStateContext(NPDeviceContext2D* context,
29 int32 state, 28 int32 state,
30 intptr_t* value); 29 intptr_t* value);
31 virtual NPError Device2DFlushContext(NPP id, 30 virtual NPError Device2DFlushContext(NPP id,
32 NPDeviceContext2D* context, 31 NPDeviceContext2D* context,
33 NPDeviceFlushContextCallbackPtr callback, 32 NPDeviceFlushContextCallbackPtr callback,
34 void* user_data); 33 void* user_data);
35 virtual NPError Device2DDestroyContext(NPDeviceContext2D* context); 34 virtual NPError Device2DDestroyContext(NPDeviceContext2D* context);
36 35
37 protected: 36 protected:
38 WebPlugin2DDeviceDelegate() {} 37 WebPlugin2DDeviceDelegate() {}
39 virtual ~WebPlugin2DDeviceDelegate() {} 38 virtual ~WebPlugin2DDeviceDelegate() {}
40 }; 39 };
41 40
42 } // namespace npapi 41 } // namespace webkit_glue
43 } // namespace webkit
44 42
45 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_2D_DEVICE_DELEGATE_H_ 43 #endif // WEBKIT_GLUE_PLUGINS_WEBPLUGIN_2D_DEVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin.cc ('k') | webkit/glue/plugins/webplugin_2d_device_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698