diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 19:07:30 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 19:07:30 +0000 |
commit | 4923229ec942699c100556ead557576a816a285c (patch) | |
tree | 438c07b04fbc19affdc194e8d88f580039774c09 /chrome/plugin/webplugin_delegate_stub.cc | |
parent | 9715b85f74e95db5345fd33ef43ff48eb0ce983f (diff) | |
download | chromium_src-4923229ec942699c100556ead557576a816a285c.zip chromium_src-4923229ec942699c100556ead557576a816a285c.tar.gz chromium_src-4923229ec942699c100556ead557576a816a285c.tar.bz2 |
Fix initial plugin Mac plugin focus and visibily
Also simplifies the way initial window state is set, by sending the same message
that's used for later changes just after initialization instead of adding
parameters to the init message. While this means we send one more async message
if the plugin's renderer is visible, we remove an unnecessary synchronous call
to the browser procces for plugins in background tabs, and we defer that
synchronous call until after plugin initialization has started in the visible
case.
BUG=51391
TEST=Plugins loaded in a foreground page should react to keystrokes without having to switch tabs. Mouseovers should continue to work as before.
Review URL: http://codereview.chromium.org/3356006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58521 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/webplugin_delegate_stub.cc')
-rw-r--r-- | chrome/plugin/webplugin_delegate_stub.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/plugin/webplugin_delegate_stub.cc b/chrome/plugin/webplugin_delegate_stub.cc index acf83b1..0802d31 100644 --- a/chrome/plugin/webplugin_delegate_stub.cc +++ b/chrome/plugin/webplugin_delegate_stub.cc @@ -191,11 +191,6 @@ void WebPluginDelegateStub::OnInit(const PluginMsg_Init_Params& params, params.arg_values, webplugin_, params.load_manually); -#if defined(OS_MACOSX) - delegate_->WindowFrameChanged(params.containing_window_frame, - params.containing_content_frame); - delegate_->SetWindowHasFocus(params.containing_window_has_focus); -#endif } } |