diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/plugin/plugin_carbon_interpose_mac.cc | 13 | ||||
-rw-r--r-- | content/plugin/plugin_interpose_util_mac.h | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/content/plugin/plugin_carbon_interpose_mac.cc b/content/plugin/plugin_carbon_interpose_mac.cc index 20a7d54..6b71916 100644 --- a/content/plugin/plugin_carbon_interpose_mac.cc +++ b/content/plugin/plugin_carbon_interpose_mac.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -12,6 +12,17 @@ #pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#if defined(MAC_OS_X_VERSION_10_7) && \ + MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 +// 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 // 10.7+ SDK + // Returns true if the given window is modal. static bool IsModalWindow(WindowRef window) { WindowModality modality = kWindowModalityNone; diff --git a/content/plugin/plugin_interpose_util_mac.h b/content/plugin/plugin_interpose_util_mac.h index b98ed5c..3f9912c 100644 --- a/content/plugin/plugin_interpose_util_mac.h +++ b/content/plugin/plugin_interpose_util_mac.h @@ -9,6 +9,8 @@ #import "base/basictypes.h" +typedef struct Cursor Cursor; + // This is really a WebPluginDelegateImpl, but that class is private to the // framework, and these functions are called from a dylib. typedef void* OpaquePluginRef; |