Index: webkit/plugins/npapi/webplugin_delegate_impl_win.cc |
=================================================================== |
--- webkit/plugins/npapi/webplugin_delegate_impl_win.cc (revision 86542) |
+++ webkit/plugins/npapi/webplugin_delegate_impl_win.cc (working copy) |
@@ -270,8 +270,6 @@ |
plugin_wnd_proc_(NULL), |
last_message_(0), |
is_calling_wndproc(false), |
- keyboard_layout_(NULL), |
- parent_thread_id_(0), |
dummy_window_for_activation_(NULL), |
handle_event_message_filter_hook_(NULL), |
handle_event_pump_messages_event_(NULL), |
@@ -1187,25 +1185,6 @@ |
return false; |
} |
- // Synchronize the keyboard layout with the one of the browser process. Flash |
- // uses the keyboard layout of this window to verify a WM_CHAR message is |
- // valid. That is, Flash discards a WM_CHAR message unless its character is |
- // the one translated with ToUnicode(). (Since a plug-in is running on a |
- // separate process from the browser process, we need to syncronize it |
- // manually.) |
- if (np_event.event == WM_CHAR) { |
- if (!keyboard_layout_) |
- keyboard_layout_ = GetKeyboardLayout(GetCurrentThreadId()); |
- if (!parent_thread_id_) |
- parent_thread_id_ = GetWindowThreadProcessId(parent_, NULL); |
- HKL parent_layout = GetKeyboardLayout(parent_thread_id_); |
- if (keyboard_layout_ != parent_layout) { |
- std::wstring layout_name(base::StringPrintf(L"%08x", parent_layout)); |
- LoadKeyboardLayout(layout_name.c_str(), KLF_ACTIVATE); |
- keyboard_layout_ = parent_layout; |
- } |
- } |
- |
HWND last_focus_window = NULL; |
if (ShouldTrackEventForModalLoops(&np_event)) { |