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

Side by Side Diff: base/mac/sdk_forward_declarations.h

Issue 2667283006: Mac QICRCodeFeature: forward declare in base/mac/sdk_forward_declarations.h (Closed)
Patch Set: Small mods after repro'ing locally Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | services/shape_detection/barcode_detection_impl_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.10). 6 // default one with which Chromium is built (currently 10.10).
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 <CoreBluetooth/CoreBluetooth.h> 15 #import <CoreBluetooth/CoreBluetooth.h>
16 #import <CoreWLAN/CoreWLAN.h> 16 #import <CoreWLAN/CoreWLAN.h>
17 #import <IOBluetooth/IOBluetooth.h>
17 #import <ImageCaptureCore/ImageCaptureCore.h> 18 #import <ImageCaptureCore/ImageCaptureCore.h>
18 #import <IOBluetooth/IOBluetooth.h> 19 #import <QuartzCore/QuartzCore.h>
19 #include <stdint.h> 20 #include <stdint.h>
20 21
21 #include "base/base_export.h" 22 #include "base/base_export.h"
22 23
23 // ---------------------------------------------------------------------------- 24 // ----------------------------------------------------------------------------
24 // Define typedefs, enums, and protocols not available in the version of the 25 // Define typedefs, enums, and protocols not available in the version of the
25 // OSX SDK being compiled against. 26 // OSX SDK being compiled against.
26 // ---------------------------------------------------------------------------- 27 // ----------------------------------------------------------------------------
27 28
28 #if !defined(MAC_OS_X_VERSION_10_11) || \ 29 #if !defined(MAC_OS_X_VERSION_10_11) || \
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 @interface NSLayoutConstraint (YosemiteSDK) 123 @interface NSLayoutConstraint (YosemiteSDK)
123 @property(getter=isActive) BOOL active; 124 @property(getter=isActive) BOOL active;
124 @end 125 @end
125 126
126 @interface NSVisualEffectView (YosemiteSDK) 127 @interface NSVisualEffectView (YosemiteSDK)
127 - (void)setState:(NSVisualEffectState)state; 128 - (void)setState:(NSVisualEffectState)state;
128 @end 129 @end
129 130
130 @class NSVisualEffectView; 131 @class NSVisualEffectView;
131 132
133 @interface CIQRCodeFeature (YosemiteSDK)
134 @property(readonly) CGRect bounds;
135 @property(readonly) CGPoint topLeft;
136 @property(readonly) CGPoint topRight;
137 @property(readonly) CGPoint bottomLeft;
138 @property(readonly) CGPoint bottomRight;
139 @property(readonly, copy) NSString* messageString;
140 @end
141
142 @class CIQRCodeFeature;
143
132 #endif // MAC_OS_X_VERSION_10_10 144 #endif // MAC_OS_X_VERSION_10_10
133 145
134 // Once Chrome no longer supports OSX 10.10.2, everything within this 146 // Once Chrome no longer supports OSX 10.10.2, everything within this
135 // preprocessor block can be removed. 147 // preprocessor block can be removed.
136 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ 148 #if !defined(MAC_OS_X_VERSION_10_10_3) || \
137 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 149 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3
138 150
139 @interface NSEvent (YosemiteSDK) 151 @interface NSEvent (YosemiteSDK)
140 @property(readonly) NSInteger stage; 152 @property(readonly) NSInteger stage;
141 @end 153 @end
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 205
194 // ---------------------------------------------------------------------------- 206 // ----------------------------------------------------------------------------
195 // The symbol for kCWSSIDDidChangeNotification is available in the 207 // The symbol for kCWSSIDDidChangeNotification is available in the
196 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not 208 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not
197 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, 209 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK,
198 // declare the symbol. 210 // declare the symbol.
199 // ---------------------------------------------------------------------------- 211 // ----------------------------------------------------------------------------
200 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; 212 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification;
201 213
202 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ 214 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_
OLDNEW
« no previous file with comments | « no previous file | services/shape_detection/barcode_detection_impl_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698