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

Side by Side Diff: webkit/glue/plugins/webplugin_accelerated_surface_mac.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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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_ACCELERATED_SURFACE_MAC_H_ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_ 6 #define WEBKIT_GLUE_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #include "gfx/native_widget_types.h" 9 #include "gfx/native_widget_types.h"
10 #include "gfx/size.h" 10 #include "gfx/size.h"
11 11
12 // Avoid having to include OpenGL headers here. 12 // Avoid having to include OpenGL headers here.
13 typedef struct _CGLContextObject* CGLContextObj; 13 typedef struct _CGLContextObject* CGLContextObj;
14 14
15 namespace webkit { 15 namespace webkit_glue {
16 namespace npapi {
17 16
18 // Interface class for interacting with an accelerated plugin surface, used 17 // Interface class for interacting with an accelerated plugin surface, used
19 // for the Core Animation flavors of plugin drawing on the Mac. 18 // for the Core Animation flavors of plugin drawing on the Mac.
20 class WebPluginAcceleratedSurface { 19 class WebPluginAcceleratedSurface {
21 public: 20 public:
22 virtual ~WebPluginAcceleratedSurface() {} 21 virtual ~WebPluginAcceleratedSurface() {}
23 22
24 // Sets the window handle used throughout the browser to identify this 23 // Sets the window handle used throughout the browser to identify this
25 // surface. 24 // surface.
26 virtual void SetWindowHandle(gfx::PluginWindowHandle window) = 0; 25 virtual void SetWindowHandle(gfx::PluginWindowHandle window) = 0;
27 26
28 // Sets the size of the surface. 27 // Sets the size of the surface.
29 virtual void SetSize(const gfx::Size& size) = 0; 28 virtual void SetSize(const gfx::Size& size) = 0;
30 29
31 // Returns the context used to draw into this surface. 30 // Returns the context used to draw into this surface.
32 // If initializing the surface failed, this will be NULL. 31 // If initializing the surface failed, this will be NULL.
33 virtual CGLContextObj context() = 0; 32 virtual CGLContextObj context() = 0;
34 33
35 // Readies the surface for drawing. Must be called before any drawing session. 34 // Readies the surface for drawing. Must be called before any drawing session.
36 virtual void StartDrawing() = 0; 35 virtual void StartDrawing() = 0;
37 36
38 // Ends a drawing session. Changes to the surface may not be reflected until 37 // Ends a drawing session. Changes to the surface may not be reflected until
39 // this is called. 38 // this is called.
40 virtual void EndDrawing() = 0; 39 virtual void EndDrawing() = 0;
41 }; 40 };
42 41
43 } // namespace npapi 42 } // namespace webkit_glue
44 } // namespace webkit
45 43
46 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_ 44 #endif // WEBKIT_GLUE_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_3d_device_delegate.cc ('k') | webkit/glue/plugins/webplugin_audio_device_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698