From 2f2ba980e92c4fe49e3eddbfcf28bc52ae4ed590 Mon Sep 17 00:00:00 2001 From: "stuartmorgan@chromium.org" Date: Thu, 21 Jan 2010 16:47:08 +0000 Subject: Send Cocoa NPAPI plugins an initial window activation event Until we have real window activation status, just send a window focus event so that Cocoa plugins always think their window is active (as is currently the case with Carbon plugins). Also wire up the Carbon interposing on window activation checks to talk to the delegate, so once the delegate has correct information Carbon will Just Work. BUG=31847 TEST=Flash 10.1 should track the mouse when the plugin is loaded, without having to click in it first. Review URL: http://codereview.chromium.org/552067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36754 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/plugin/plugin_interpose_util_mac.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/plugin/plugin_interpose_util_mac.h') diff --git a/chrome/plugin/plugin_interpose_util_mac.h b/chrome/plugin/plugin_interpose_util_mac.h index deabe6c..4942bb6 100644 --- a/chrome/plugin/plugin_interpose_util_mac.h +++ b/chrome/plugin/plugin_interpose_util_mac.h @@ -42,6 +42,9 @@ void NotifyBrowserOfPluginHideWindow(uint32 window_id, CGRect bounds); void NotifyPluginOfSetThemeCursor(WebPluginDelegateImpl* delegate, ThemeCursor cursor); +// Returns true if the window containing the given plugin delegate is focused. +bool GetPluginWindowHasFocus(const WebPluginDelegateImpl* delegate); + } // namespace MacPluginInterpose #endif // CHROME_PLUGIN_PLUGIN_INTERPOSE_UTIL_MAC_H_ -- cgit v1.1