summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_carbon_interpose_mac.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-28 19:00:51 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-28 19:00:51 +0000
commitb2cc9fb19dc373296efe4db346d8ec9b58af5111 (patch)
tree29b609a7c152716fe9cff905fb23b2c6bf8c9d96 /chrome/browser/plugin_carbon_interpose_mac.cc
parentdcf29616d0390738f5c36ad344f7d28f37a916f6 (diff)
downloadchromium_src-b2cc9fb19dc373296efe4db346d8ec9b58af5111.zip
chromium_src-b2cc9fb19dc373296efe4db346d8ec9b58af5111.tar.gz
chromium_src-b2cc9fb19dc373296efe4db346d8ec9b58af5111.tar.bz2
Use an opaque handle type to pass WebPluginDelegateImpl across dylib boundaries
This works around a wicked new clang linker optimization, but also feels cleaner in general. BUG=http://llvm.org/bugs/show_bug.cgi?id=8478 TEST=clang/mac builder stays green with newer clang version Review URL: http://codereview.chromium.org/4191003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_carbon_interpose_mac.cc')
-rw-r--r--chrome/browser/plugin_carbon_interpose_mac.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/plugin_carbon_interpose_mac.cc b/chrome/browser/plugin_carbon_interpose_mac.cc
index e0e304f..55e1405 100644
--- a/chrome/browser/plugin_carbon_interpose_mac.cc
+++ b/chrome/browser/plugin_carbon_interpose_mac.cc
@@ -20,7 +20,7 @@ static bool IsModalWindow(WindowRef window) {
return (status == noErr) && (modality != kWindowModalityNone);
}
-static bool IsContainingWindowActive(const WebPluginDelegateImpl* delegate) {
+static bool IsContainingWindowActive(const OpaquePluginRef delegate) {
return mac_plugin_interposing::GetPluginWindowHasFocus(delegate);
}
@@ -60,7 +60,7 @@ static void OnPluginWindowSelected(WindowRef window) {
#pragma mark -
static Boolean ChromePluginIsWindowActive(WindowRef window) {
- const WebPluginDelegateImpl* delegate =
+ const OpaquePluginRef delegate =
CarbonPluginWindowTracker::SharedInstance()->GetDelegateForDummyWindow(
window);
return delegate ? IsContainingWindowActive(delegate)
@@ -68,7 +68,7 @@ static Boolean ChromePluginIsWindowActive(WindowRef window) {
}
static Boolean ChromePluginIsWindowHilited(WindowRef window) {
- const WebPluginDelegateImpl* delegate =
+ const OpaquePluginRef delegate =
CarbonPluginWindowTracker::SharedInstance()->GetDelegateForDummyWindow(
window);
return delegate ? IsContainingWindowActive(delegate)
@@ -125,7 +125,7 @@ static void ChromePluginDisposeDialog(DialogRef dialog) {
}
static WindowPartCode ChromePluginFindWindow(Point point, WindowRef* window) {
- WebPluginDelegateImpl* delegate = mac_plugin_interposing::GetActiveDelegate();
+ OpaquePluginRef delegate = mac_plugin_interposing::GetActiveDelegate();
CarbonPluginWindowTracker* tracker =
CarbonPluginWindowTracker::SharedInstance();
WindowRef plugin_window = tracker->GetDummyWindowForDelegate(delegate);
@@ -146,7 +146,7 @@ static WindowPartCode ChromePluginFindWindow(Point point, WindowRef* window) {
}
static OSStatus ChromePluginSetThemeCursor(ThemeCursor cursor) {
- WebPluginDelegateImpl* delegate = mac_plugin_interposing::GetActiveDelegate();
+ OpaquePluginRef delegate = mac_plugin_interposing::GetActiveDelegate();
if (delegate) {
mac_plugin_interposing::NotifyPluginOfSetThemeCursor(delegate, cursor);
return noErr;
@@ -155,7 +155,7 @@ static OSStatus ChromePluginSetThemeCursor(ThemeCursor cursor) {
}
static void ChromePluginSetCursor(const Cursor* cursor) {
- WebPluginDelegateImpl* delegate = mac_plugin_interposing::GetActiveDelegate();
+ OpaquePluginRef delegate = mac_plugin_interposing::GetActiveDelegate();
if (delegate) {
mac_plugin_interposing::NotifyPluginOfSetCursor(delegate, cursor);
return;