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..95636912eb5acc333ecca93e8b8fa56e8c08d79d 100644 |
--- a/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm |
+++ b/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm |
@@ -43,6 +43,15 @@ using WebKit::WebInputEvent; |
using WebKit::WebMouseEvent; |
using WebKit::WebMouseWheelEvent; |
+#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); |
+#endif |
+ |
// 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 |