OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file contains forward declarations for items in later SDKs than the | 5 // This file contains forward declarations for items in later SDKs than the |
6 // default one with which Chromium is built (currently 10.6). | 6 // default one with which Chromium is built (currently 10.6). |
7 // If you call any function from this header, be sure to check at runtime for | 7 // If you call any function from this header, be sure to check at runtime for |
8 // respondsToSelector: before calling these functions (else your code will crash | 8 // respondsToSelector: before calling these functions (else your code will crash |
9 // on older OS X versions that chrome still supports). | 9 // on older OS X versions that chrome still supports). |
10 | 10 |
11 #ifndef BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 11 #ifndef BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
12 #define BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 12 #define BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
13 | 13 |
14 #import <AppKit/AppKit.h> | 14 #import <AppKit/AppKit.h> |
15 #import <CoreWLAN/CoreWLAN.h> | 15 #import <CoreWLAN/CoreWLAN.h> |
16 #import <ImageCaptureCore/ImageCaptureCore.h> | 16 #import <ImageCaptureCore/ImageCaptureCore.h> |
17 #import <IOBluetooth/IOBluetooth.h> | 17 #import <IOBluetooth/IOBluetooth.h> |
18 | 18 |
| 19 #include "base/base_export.h" |
| 20 |
19 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 21 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
20 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | 22 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
21 | 23 |
22 enum { | 24 enum { |
23 NSEventPhaseNone = 0, // event not associated with a phase. | 25 NSEventPhaseNone = 0, // event not associated with a phase. |
24 NSEventPhaseBegan = 0x1 << 0, | 26 NSEventPhaseBegan = 0x1 << 0, |
25 NSEventPhaseStationary = 0x1 << 1, | 27 NSEventPhaseStationary = 0x1 << 1, |
26 NSEventPhaseChanged = 0x1 << 2, | 28 NSEventPhaseChanged = 0x1 << 2, |
27 NSEventPhaseEnded = 0x1 << 3, | 29 NSEventPhaseEnded = 0x1 << 3, |
28 NSEventPhaseCancelled = 0x1 << 4 | 30 NSEventPhaseCancelled = 0x1 << 4 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 175 |
174 @interface IOBluetoothDevice (LionSDK) | 176 @interface IOBluetoothDevice (LionSDK) |
175 - (NSString*)addressString; | 177 - (NSString*)addressString; |
176 - (unsigned int)classOfDevice; | 178 - (unsigned int)classOfDevice; |
177 - (BluetoothConnectionHandle)connectionHandle; | 179 - (BluetoothConnectionHandle)connectionHandle; |
178 - (BluetoothHCIRSSIValue)rawRSSI; | 180 - (BluetoothHCIRSSIValue)rawRSSI; |
179 - (NSArray*)services; | 181 - (NSArray*)services; |
180 - (IOReturn)performSDPQuery:(id)target uuids:(NSArray*)uuids; | 182 - (IOReturn)performSDPQuery:(id)target uuids:(NSArray*)uuids; |
181 @end | 183 @end |
182 | 184 |
| 185 BASE_EXPORT extern "C" NSString* const NSWindowWillEnterFullScreenNotification; |
| 186 |
183 #endif // MAC_OS_X_VERSION_10_7 | 187 #endif // MAC_OS_X_VERSION_10_7 |
184 | 188 |
185 | |
186 #if !defined(MAC_OS_X_VERSION_10_8) || \ | 189 #if !defined(MAC_OS_X_VERSION_10_8) || \ |
187 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 | 190 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 |
188 | 191 |
189 enum { | 192 enum { |
190 NSEventPhaseMayBegin = 0x1 << 5 | 193 NSEventPhaseMayBegin = 0x1 << 5 |
191 }; | 194 }; |
192 | 195 |
193 #endif // MAC_OS_X_VERSION_10_8 | 196 #endif // MAC_OS_X_VERSION_10_8 |
194 | 197 |
195 | 198 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 259 |
257 @interface NSWindow (YosemiteSDK) | 260 @interface NSWindow (YosemiteSDK) |
258 | 261 |
259 @property NSWindowTitleVisibility titleVisibility; | 262 @property NSWindowTitleVisibility titleVisibility; |
260 | 263 |
261 @end | 264 @end |
262 | 265 |
263 #endif // MAC_OS_X_VERSION_10_10 | 266 #endif // MAC_OS_X_VERSION_10_10 |
264 | 267 |
265 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 268 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
OLD | NEW |