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

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

Issue 7069004: Removes obsolete code in webplug_delegate_impl_win. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 | « webkit/plugins/npapi/webplugin_delegate_impl.h ('k') | no next file » | 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 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)) {
« no previous file with comments | « webkit/plugins/npapi/webplugin_delegate_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698