summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-16 21:56:38 +0000
committeramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-16 21:56:38 +0000
commit969243f80d1e1052bb6f69571664eed9f0cec7fe (patch)
tree7d2f4886e4461d08d9cb898ba09ce6e8bcab83c3
parent938932ff35706ec3cf09ea2c4d641dc778328ad5 (diff)
downloadchromium_src-969243f80d1e1052bb6f69571664eed9f0cec7fe.zip
chromium_src-969243f80d1e1052bb6f69571664eed9f0cec7fe.tar.gz
chromium_src-969243f80d1e1052bb6f69571664eed9f0cec7fe.tar.bz2
Add support for Mac NPAPI drawing model negotiation, along with a stub
of Quickdraw model support (work in progress--QD plugins no longer crash, but they don't draw correctly either). Superseded by http://codereview.chromium.org/211031 Stuart: review John: FYI BUG=none TEST=none Review URL: http://codereview.chromium.org/173532 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32097 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/glue/plugins/plugin_host.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/plugins/plugin_host.cc b/webkit/glue/plugins/plugin_host.cc
index 599816f..256716f 100644
--- a/webkit/glue/plugins/plugin_host.cc
+++ b/webkit/glue/plugins/plugin_host.cc
@@ -955,8 +955,8 @@ NPError NPN_SetValue(NPP id, NPPVariable variable, void *value) {
// we support Carbon and Cocoa event models
int model = reinterpret_cast<int>(value);
switch (model) {
- case NPNVsupportsCarbonBool:
- case NPNVsupportsCocoaBool:
+ case NPEventModelCarbon:
+ case NPEventModelCocoa:
plugin->set_event_model(model);
return NPERR_NO_ERROR;
break;