From 08de1439dfbd60d18b799a085801c473c31ba2cc Mon Sep 17 00:00:00 2001 From: "stuartmorgan@chromium.org" Date: Fri, 18 Jun 2010 19:55:07 +0000 Subject: Fix mouse handling extension-hosted plugins on the Mac BUG=42032 TEST=Flash-hosting extensions should respond to clicks. Review URL: http://codereview.chromium.org/2873004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50272 0039d316-1c4b-4281-b951-d872f2087c98 --- .../browser/cocoa/extensions/extension_popup_controller.mm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'chrome/browser/cocoa/extensions') diff --git a/chrome/browser/cocoa/extensions/extension_popup_controller.mm b/chrome/browser/cocoa/extensions/extension_popup_controller.mm index 90413b8..d7a4a66 100644 --- a/chrome/browser/cocoa/extensions/extension_popup_controller.mm +++ b/chrome/browser/cocoa/extensions/extension_popup_controller.mm @@ -311,6 +311,18 @@ class DevtoolsNotificationBridge : public NotificationObserver { [[self window] makeKeyAndOrderFront:self]; } +- (void)windowDidResize:(NSNotification*)notification { + // Let the extension view know, so that it can tell plugins. + if (host_->view()) + host_->view()->WindowFrameChanged(); +} + +- (void)windowDidMove:(NSNotification*)notification { + // Let the extension view know, so that it can tell plugins. + if (host_->view()) + host_->view()->WindowFrameChanged(); +} + // Private (TestingAPI) - (NSView*)view { return extensionView_; -- cgit v1.1