From 784ea1ab3797a0aade739c3d80f9f12b41160aef Mon Sep 17 00:00:00 2001 From: "stuartmorgan@chromium.org" Date: Sat, 18 Sep 2010 00:02:34 +0000 Subject: Extend improved windowless plugin focus handling to all platforms Uses the same two-state focus tracking that the Mac currently uses on Windows and Linux as well, so focus is updated correctly when the content area itself gains and loses focus. BUG=55607 TEST=Windowless plugins should handle key events when focused on all platforms. Review URL: http://codereview.chromium.org/3397015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59877 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/plugin_messages_internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/common') diff --git a/chrome/common/plugin_messages_internal.h b/chrome/common/plugin_messages_internal.h index 29388a4..99e265a 100644 --- a/chrome/common/plugin_messages_internal.h +++ b/chrome/common/plugin_messages_internal.h @@ -221,11 +221,11 @@ IPC_BEGIN_MESSAGES(Plugin) bool /* handled */, WebCursor /* cursor type*/) -#if defined(OS_MACOSX) - IPC_MESSAGE_ROUTED1(PluginMsg_SetWindowFocus, + IPC_MESSAGE_ROUTED1(PluginMsg_SetContentAreaFocus, bool /* has_focus */) - IPC_MESSAGE_ROUTED1(PluginMsg_SetContentAreaFocus, +#if defined(OS_MACOSX) + IPC_MESSAGE_ROUTED1(PluginMsg_SetWindowFocus, bool /* has_focus */) IPC_MESSAGE_ROUTED0(PluginMsg_ContainerHidden) -- cgit v1.1