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

Unified Diff: webkit/plugins/npapi/webplugin_delegate_impl_win.cc

Issue 9666050: Emulate ImmSetAssociateContextEx() for Flash. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 months 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
« no previous file with comments | « content/plugin/webplugin_delegate_stub.cc ('k') | webkit/plugins/npapi/webplugin_ime_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/webplugin_delegate_impl_win.cc
===================================================================
--- webkit/plugins/npapi/webplugin_delegate_impl_win.cc (revision 126103)
+++ webkit/plugins/npapi/webplugin_delegate_impl_win.cc (working copy)
@@ -1480,6 +1480,14 @@
UnsetSavedKeyState(np_event.wParam);
}
+ // Allow this plug-in to access this IME emulator through IMM32 API while the
+ // plug-in is processing this event.
+ if (GetQuirks() & PLUGIN_QUIRK_EMULATE_IME) {
+ if (!plugin_ime_.get())
+ plugin_ime_.reset(new WebPluginIMEWin);
+ }
+ WebPluginIMEWin::ScopedLock lock(plugin_ime_.get());
+
HWND last_focus_window = NULL;
if (ShouldTrackEventForModalLoops(&np_event)) {
« no previous file with comments | « content/plugin/webplugin_delegate_stub.cc ('k') | webkit/plugins/npapi/webplugin_ime_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698