Index: webkit/plugins/npapi/webplugin_delegate_impl_mac.mm |
diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm b/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm |
index 644b089a305be3f21850cc55471e6df210b5de55..e2af15fcc282662e72bafeb5ffc325268dc9eb66 100644 |
--- a/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm |
+++ b/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm |
@@ -43,6 +43,17 @@ using WebKit::WebInputEvent; |
using WebKit::WebMouseEvent; |
using WebKit::WebMouseWheelEvent; |
+#if defined(MAC_OS_X_VERSION_10_7) |
+#ifndef NP_NO_CARBON |
+// QuickdrawAPI.h is no longer included in the 10.7 SDK, but the symbols are |
+// still exported by QD.framework (a subframework of ApplicationServices). |
+// http://developer.apple.com/legacy/mac/library/documentation/Carbon/reference/QuickDraw_Ref/QuickDraw_Ref.pdf |
+extern "C" void SetRect( |
+ Rect* r, short left, short top, short right, short bottom); |
+extern "C" void OffsetRect(Rect* r, short dh, short dv); |
Nico
2012/07/26 22:45:47
Oops, forgot the extern "C" reshuffle in this file
|
+#endif // NP_NO_CARBON |
+#endif // defined(MAC_OS_X_VERSION_10_7) |
+ |
// Important implementation notes: The Mac definition of NPAPI, particularly |
// the distinction between windowed and windowless modes, differs from the |
// Windows and Linux definitions. Most of those differences are |