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

Unified Diff: content/public/renderer/renderer_ppapi_host.h

Issue 11053003: Migrate Graphics2D to new design. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/renderer_ppapi_host.h
diff --git a/content/public/renderer/renderer_ppapi_host.h b/content/public/renderer/renderer_ppapi_host.h
index 8f8dfb3690d456a7815394c23ac3393f36008546..16ce7ad51fafcd9b3c7f2a70f0d227ae84acccb3 100644
--- a/content/public/renderer/renderer_ppapi_host.h
+++ b/content/public/renderer/renderer_ppapi_host.h
@@ -10,6 +10,7 @@
#include "content/common/content_export.h"
#include "ipc/ipc_platform_file.h"
#include "ppapi/c/pp_instance.h"
+#include "webkit/plugins/ppapi/plugin_delegate.h"
class FilePath;
@@ -85,6 +86,11 @@ class RendererPpapiHost {
virtual WebKit::WebPluginContainer* GetContainerForInstance(
PP_Instance instance) const = 0;
+ // Returns the PlatformGraphics2D for the given plugin resource, or NULL if
+ // the resource is invalid.
+ virtual webkit::ppapi::PluginDelegate::PlatformGraphics2D*
+ GetPlatformGraphics2D(PP_Resource resource) = 0;
+
// Returns true if the given instance is considered to be currently
// processing a user gesture or the plugin module has the "override user
// gesture" flag set (in which case it can always do things normally
@@ -102,6 +108,9 @@ class RendererPpapiHost {
base::PlatformFile handle,
bool should_close_source) = 0;
+ // Returns true if the plugin is running in process.
+ virtual bool IsRunningInProcess() const = 0;
+
protected:
virtual ~RendererPpapiHost() {}
};
@@ -109,4 +118,3 @@ class RendererPpapiHost {
} // namespace content
#endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
-

Powered by Google App Engine
This is Rietveld 408576698