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

Unified Diff: content/plugin/plugin_carbon_interpose_mac.cc

Issue 10826036: mac: Let Carbon plugin stuff buid with the 10.7 SDK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 years, 5 months 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 | content/plugin/plugin_interpose_util_mac.h » ('j') | webkit/glue/webcursor_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/plugin_carbon_interpose_mac.cc
diff --git a/content/plugin/plugin_carbon_interpose_mac.cc b/content/plugin/plugin_carbon_interpose_mac.cc
index 20a7d543aee12ee364f7b2b74bdb2832d10d89cf..67190d283cc42aef9a0831dacf1dde06fd179482 100644
--- a/content/plugin/plugin_carbon_interpose_mac.cc
+++ b/content/plugin/plugin_carbon_interpose_mac.cc
@@ -12,6 +12,16 @@
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#if defined(MAC_OS_X_VERSION_10_7)
Mark Mentovai 2012/07/26 22:49:00 Since we can’t be sure there aren’t “fixed” versio
Nico 2012/07/26 22:53:46 Done.
+// 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" {
+Boolean PtInRect(Point pt, const Rect* r);
+void SetCursor(const Cursor* crsr);
+}
+#endif // defined(MAC_OS_X_VERSION_10_7)
+
// Returns true if the given window is modal.
static bool IsModalWindow(WindowRef window) {
WindowModality modality = kWindowModalityNone;
« no previous file with comments | « no previous file | content/plugin/plugin_interpose_util_mac.h » ('j') | webkit/glue/webcursor_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698