summaryrefslogtreecommitdiffstats
path: root/chrome/plugin
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-19 19:24:24 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-19 19:24:24 +0000
commitb4ec5d95f7ae134d69449e1715f7f744dee31448 (patch)
tree0b6a33c21c431b5e7f609c682f14721002143432 /chrome/plugin
parent388f3ad136953404388befdfab941b9749d96bc7 (diff)
downloadchromium_src-b4ec5d95f7ae134d69449e1715f7f744dee31448.zip
chromium_src-b4ec5d95f7ae134d69449e1715f7f744dee31448.tar.gz
chromium_src-b4ec5d95f7ae134d69449e1715f7f744dee31448.tar.bz2
(Mac) Allow the tracking of the "active" plugin delegate separate from the fake windows.
BUG=http://crbug.com/20717 TEST=none; no visible change Review URL: http://codereview.chromium.org/549085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin')
-rw-r--r--chrome/plugin/plugin_interpose_util_mac.h3
-rw-r--r--chrome/plugin/plugin_interpose_util_mac.mm5
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/plugin/plugin_interpose_util_mac.h b/chrome/plugin/plugin_interpose_util_mac.h
index 75d1142..deabe6c 100644
--- a/chrome/plugin/plugin_interpose_util_mac.h
+++ b/chrome/plugin/plugin_interpose_util_mac.h
@@ -20,6 +20,9 @@ void SetUpCocoaInterposing();
// Brings the plugin process to the front so that the user can see its windows.
void SwitchToPluginProcess();
+// Returns the delegate currently processing events.
+WebPluginDelegateImpl* GetActiveDelegate();
+
// Sends a message to the browser process to inform it that the given window
// has been brought forward.
void NotifyBrowserOfPluginSelectWindow(uint32 window_id, CGRect bounds,
diff --git a/chrome/plugin/plugin_interpose_util_mac.mm b/chrome/plugin/plugin_interpose_util_mac.mm
index 1cad1bb..7743175 100644
--- a/chrome/plugin/plugin_interpose_util_mac.mm
+++ b/chrome/plugin/plugin_interpose_util_mac.mm
@@ -31,6 +31,11 @@ void SwitchToPluginProcess() {
}
__attribute__((visibility("default")))
+WebPluginDelegateImpl* GetActiveDelegate() {
+ return WebPluginDelegateImpl::GetActiveDelegate();
+}
+
+__attribute__((visibility("default")))
void NotifyBrowserOfPluginSelectWindow(uint32 window_id, CGRect bounds,
bool modal) {
PluginThread* plugin_thread = PluginThread::current();