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

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

Issue 1697008: New Pepper API implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | « webkit/glue/plugins/pepper_image_data.cc ('k') | webkit/glue/plugins/pepper_plugin_instance.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_
7
8 #include "third_party/ppapi/c/pp_stdint.h"
9
10 namespace skia {
11 class PlatformCanvas;
12 }
13
14 namespace pepper {
15
16 // Virtual interface that the browser implements to implement features for
17 // Pepper plugins.
18 class PluginDelegate {
19 public:
20 // Represents an image. This is to allow the browser layer to supply a correct
21 // image representation. In Chrome, this will be a TransportDIB.
22 class PlatformImage2D {
23 public:
24 virtual ~PlatformImage2D() {}
25
26 // Caller will own the returned pointer, returns NULL on failure.
27 virtual skia::PlatformCanvas* Map() = 0;
28
29 // Returns the platform-specific shared memory handle of the data backing
30 // this image. This is used by NativeClient to send the image to the
31 // out-of-process plugin. Returns 0 on failure.
32 virtual intptr_t GetSharedMemoryHandle() const = 0;
33 };
34
35 // The caller will own the pointer returned from this.
36 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0;
37 };
38
39 } // namespace pepper
40
41 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_image_data.cc ('k') | webkit/glue/plugins/pepper_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698