Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2163)

Unified Diff: chrome/browser/plugin_carbon_interpose_mac.cc

Issue 402037: Interpose one more Carbon function for Window disposing (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_carbon_interpose_mac.cc
diff --git a/chrome/browser/plugin_carbon_interpose_mac.cc b/chrome/browser/plugin_carbon_interpose_mac.cc
index 1957f47c10901dc844a4f34c5f3fe54c7b1bc16b..e0e17b0f90a1258c3a535f58d0d6006b16e0862c 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),
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698