summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/tracking_area.h
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-15 14:22:22 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-15 14:22:22 +0000
commit2ec807985b041c2b75c0e3021d3fa9278e0883fb (patch)
tree648d821301c9152373c6ca3d669c9f36fc6ebf57 /chrome/browser/ui/cocoa/tracking_area.h
parentfd5b9ca7ddd34a560d711121994492d01a8204ed (diff)
downloadchromium_src-2ec807985b041c2b75c0e3021d3fa9278e0883fb.zip
chromium_src-2ec807985b041c2b75c0e3021d3fa9278e0883fb.tar.gz
chromium_src-2ec807985b041c2b75c0e3021d3fa9278e0883fb.tar.bz2
[Mac] Placate Clang's (pedantic) warning about CrTrackingArea's initializer.
BUG=48709 TEST=Mac Clang compiles Review URL: http://codereview.chromium.org/6480067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/cocoa/tracking_area.h')
-rw-r--r--chrome/browser/ui/cocoa/tracking_area.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/ui/cocoa/tracking_area.h b/chrome/browser/ui/cocoa/tracking_area.h
index 26cb2ef..c12c2fd 100644
--- a/chrome/browser/ui/cocoa/tracking_area.h
+++ b/chrome/browser/ui/cocoa/tracking_area.h
@@ -20,9 +20,16 @@
// Designated initializer. Forwards all arguments to the superclass, but wraps
// |owner| in a proxy object.
+//
+// The |proxiedOwner:| paramater has been renamed due to an incompatiblity with
+// the 10.5 SDK. Since that SDK version declares |-[NSTrackingArea's init...]|'s
+// return type to be |NSTrackingArea*| rather than |id|, a more generalized type
+// can't be returned by the subclass. Until the project switches to the 10.6 SDK
+// (where Apple changed the return type to |id|), this ugly hack must exist.
+// TODO(rsesek): Remove this when feasabile.
- (id)initWithRect:(NSRect)rect
options:(NSTrackingAreaOptions)options
- owner:(id)owner
+ proxiedOwner:(id)owner // 10.5 SDK hack. Remove at some point.
userInfo:(NSDictionary*)userInfo;
// Prevents any future messages from being delivered to the |owner|.