diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 03:11:05 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 03:11:05 +0000 |
commit | c46dd1c71c8376f6df879fd394634f31c25b9535 (patch) | |
tree | fa5675e428719d39cda5307c9c71c746663be5bc | |
parent | 9c5715f50aef131228bb1e3a4a9441c2c1574386 (diff) | |
download | chromium_src-c46dd1c71c8376f6df879fd394634f31c25b9535.zip chromium_src-c46dd1c71c8376f6df879fd394634f31c25b9535.tar.gz chromium_src-c46dd1c71c8376f6df879fd394634f31c25b9535.tar.bz2 |
Interpose one more Carbon function for Window disposing
BUG=27820
TEST=Focus should return to browser window in test case from bug.
Review URL: http://codereview.chromium.org/402037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32269 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/plugin_carbon_interpose_mac.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/plugin_carbon_interpose_mac.cc b/chrome/browser/plugin_carbon_interpose_mac.cc index 1957f47..e0e17b0 100644 --- a/chrome/browser/plugin_carbon_interpose_mac.cc +++ b/chrome/browser/plugin_carbon_interpose_mac.cc @@ -138,6 +138,15 @@ static void ChromePluginHideWindow(WindowRef window) { MaybeReactivateSavedProcess(); } +static void ChromePluginDisposeDialog(DialogRef dialog) { + WindowRef window = GetDialogWindow(dialog); + CGWindowID window_id = HIWindowGetCGWindowID(window); + CGRect window_rect = CGRectForWindow(window); + DisposeDialog(dialog); + webkit_glue::NotifyBrowserOfPluginDisposeWindow(window_id, window_rect); + MaybeReactivateSavedProcess(); +} + #pragma mark - struct interpose_substitution { @@ -156,4 +165,5 @@ __attribute__((used)) static const interpose_substitution substitutions[] INTERPOSE_FUNCTION(ShowWindow), INTERPOSE_FUNCTION(DisposeWindow), INTERPOSE_FUNCTION(HideWindow), + INTERPOSE_FUNCTION(DisposeDialog), }; |