| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Pepper API support should be turned on for this module. | 5 // Pepper API support should be turned on for this module. |
| 6 #define PEPPER_APIS_ENABLED | 6 #define PEPPER_APIS_ENABLED |
| 7 | 7 |
| 8 #include "webkit/glue/plugins/plugin_host.h" | 8 #include "webkit/glue/plugins/plugin_host.h" |
| 9 | 9 |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 plugin->set_drawing_model(model); | 948 plugin->set_drawing_model(model); |
| 949 return NPERR_NO_ERROR; | 949 return NPERR_NO_ERROR; |
| 950 } | 950 } |
| 951 return NPERR_GENERIC_ERROR; | 951 return NPERR_GENERIC_ERROR; |
| 952 } | 952 } |
| 953 case NPPVpluginEventModel: | 953 case NPPVpluginEventModel: |
| 954 { | 954 { |
| 955 // we support Carbon and Cocoa event models | 955 // we support Carbon and Cocoa event models |
| 956 int model = reinterpret_cast<int>(value); | 956 int model = reinterpret_cast<int>(value); |
| 957 switch (model) { | 957 switch (model) { |
| 958 case NPNVsupportsCarbonBool: | 958 case NPEventModelCarbon: |
| 959 case NPNVsupportsCocoaBool: | 959 case NPEventModelCocoa: |
| 960 plugin->set_event_model(model); | 960 plugin->set_event_model(model); |
| 961 return NPERR_NO_ERROR; | 961 return NPERR_NO_ERROR; |
| 962 break; | 962 break; |
| 963 } | 963 } |
| 964 return NPERR_GENERIC_ERROR; | 964 return NPERR_GENERIC_ERROR; |
| 965 } | 965 } |
| 966 #endif | 966 #endif |
| 967 default: | 967 default: |
| 968 // TODO: implement me | 968 // TODO: implement me |
| 969 DLOG(INFO) << "NPN_SetValue(" << variable << ") is not implemented."; | 969 DLOG(INFO) << "NPN_SetValue(" << variable << ") is not implemented."; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1123 | 1123 |
| 1124 return plugin->ScheduleTimer(interval, repeat, func); | 1124 return plugin->ScheduleTimer(interval, repeat, func); |
| 1125 } | 1125 } |
| 1126 | 1126 |
| 1127 void NPN_UnscheduleTimer(NPP id, uint32 timer_id) { | 1127 void NPN_UnscheduleTimer(NPP id, uint32 timer_id) { |
| 1128 scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id); | 1128 scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id); |
| 1129 if (plugin) | 1129 if (plugin) |
| 1130 plugin->UnscheduleTimer(timer_id); | 1130 plugin->UnscheduleTimer(timer_id); |
| 1131 } | 1131 } |
| 1132 } // extern "C" | 1132 } // extern "C" |
| OLD | NEW |