summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/plugin_instance.cc
diff options
context:
space:
mode:
authorsehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-17 22:32:29 +0000
committersehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-17 22:32:29 +0000
commitd439ba076792f1aa83a04ca562382a9af3c0de9d (patch)
tree7d5ab9d4d5c3c56d50eb5b79af3ab660ef0b9f53 /webkit/glue/plugins/plugin_instance.cc
parent0877e3db672aa26d89549f545e6e6c64904fec4c (diff)
downloadchromium_src-d439ba076792f1aa83a04ca562382a9af3c0de9d.zip
chromium_src-d439ba076792f1aa83a04ca562382a9af3c0de9d.tar.gz
chromium_src-d439ba076792f1aa83a04ca562382a9af3c0de9d.tar.bz2
Moved Pepper delegate definition to chrome\renderer to allow it to use
code from chrome\common. Also added canvas support and hooked up NPAPI interface functions. No tests have been added yet, so this is probably not fully ready. Review URL: http://codereview.chromium.org/291001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/plugin_instance.cc')
-rw-r--r--webkit/glue/plugins/plugin_instance.cc25
1 files changed, 1 insertions, 24 deletions
diff --git a/webkit/glue/plugins/plugin_instance.cc b/webkit/glue/plugins/plugin_instance.cc
index a52a971..7f71f8e 100644
--- a/webkit/glue/plugins/plugin_instance.cc
+++ b/webkit/glue/plugins/plugin_instance.cc
@@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Pepper API support should be enabled for this file.
-#define PEPPER_APIS_ENABLED
-
#include "build/build_config.h"
#include "webkit/glue/plugins/plugin_instance.h"
@@ -14,6 +11,7 @@
#include "base/string_util.h"
#include "webkit/glue/glue_util.h"
#include "webkit/glue/webplugin.h"
+#include "webkit/glue/webplugin_delegate.h"
#include "webkit/glue/webkit_glue.h"
#include "webkit/glue/plugins/plugin_host.h"
#include "webkit/glue/plugins/plugin_lib.h"
@@ -355,27 +353,6 @@ void PluginInstance::DidManualLoadFail() {
}
}
-#ifndef PEPPER_APIS_DISABLED
-NPError PluginInstance::InitializeRenderContext(NPRenderType type,
- NPRenderContext* context) {
- // Set up the renderer for the specified type.
- // Return no errors.
- return NPERR_NO_ERROR;
-}
-
-NPError PluginInstance::FlushRenderContext(NPRenderContext* context,
- NPFlushRenderContextCallbackPtr callback, void* user_data) {
- // Do the flush.
- NPError err = NPERR_NO_ERROR;
- // Invoke the callback to inform the caller the work was done.
- if (callback != NULL) {
- (*callback)(context, err, user_data);
- }
- // Return no errors.
- return NPERR_NO_ERROR;
-}
-#endif // PEPPER_APIS_DISABLED
-
void PluginInstance::PluginThreadAsyncCall(void (*func)(void *),
void *user_data) {
message_loop_->PostTask(FROM_HERE, NewRunnableMethod(