| Index: webkit/plugins/npapi/plugin_host.cc
|
| diff --git a/webkit/plugins/npapi/plugin_host.cc b/webkit/plugins/npapi/plugin_host.cc
|
| index 53841c342f4654b274ddf9fce4326cdfb23dbeb5..9aed03b2d44853faccb3456209aa3307a42d8666 100644
|
| --- a/webkit/plugins/npapi/plugin_host.cc
|
| +++ b/webkit/plugins/npapi/plugin_host.cc
|
| @@ -840,6 +840,16 @@ NPError NPN_GetValue(NPP id, NPNVariable variable, void* value) {
|
| rv = NPERR_NO_ERROR;
|
| break;
|
| }
|
| + case NPNVsupportsUpdatedCocoaTextInputBool: {
|
| + // We support the clarifications to the Cocoa IME event spec, but since
|
| + // IME currently only works on 10.6, only answer true there.
|
| + NPBool* supports_update = reinterpret_cast<NPBool*>(value);
|
| + int32 major, minor, bugfix;
|
| + base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
|
| + *supports_update = major > 10 || (major == 10 && minor > 5);
|
| + rv = NPERR_NO_ERROR;
|
| + break;
|
| + }
|
| #endif // OS_MACOSX
|
| case NPNVPepperExtensions:
|
| // Available for any plugin that attempts to get it.
|
|
|