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

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

Issue 2695493002: [Mac] Touch Bar support for default browser window state (Closed)
Patch Set: Rebased 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 | chrome/app/generated_resources.grd » ('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
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 @interface NSWindow (YosemiteSDK) 115 @interface NSWindow (YosemiteSDK)
116 - (void)setTitlebarAppearsTransparent:(BOOL)flag; 116 - (void)setTitlebarAppearsTransparent:(BOOL)flag;
117 @end 117 @end
118 118
119 @interface NSProcessInfo (YosemiteSDK) 119 @interface NSProcessInfo (YosemiteSDK)
120 @property(readonly) NSOperatingSystemVersion operatingSystemVersion; 120 @property(readonly) NSOperatingSystemVersion operatingSystemVersion;
121 @end 121 @end
122 122
123 @interface NSLayoutConstraint (YosemiteSDK) 123 @interface NSLayoutConstraint (YosemiteSDK)
124 @property(getter=isActive) BOOL active; 124 @property(getter=isActive) BOOL active;
125 + (void)activateConstraints:(NSArray*)constraints;
125 @end 126 @end
126 127
127 @interface NSVisualEffectView (YosemiteSDK) 128 @interface NSVisualEffectView (YosemiteSDK)
128 - (void)setState:(NSVisualEffectState)state; 129 - (void)setState:(NSVisualEffectState)state;
129 @end 130 @end
130 131
131 @class NSVisualEffectView; 132 @class NSVisualEffectView;
132 133
133 @interface CIQRCodeFeature (YosemiteSDK) 134 @interface CIQRCodeFeature (YosemiteSDK)
134 @property(readonly) CGRect bounds; 135 @property(readonly) CGRect bounds;
(...skipping 21 matching lines...) Expand all
156 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration; 157 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration;
157 @end 158 @end
158 159
159 #endif // MAC_OS_X_VERSION_10_10 160 #endif // MAC_OS_X_VERSION_10_10
160 161
161 // Once Chrome no longer supports OSX 10.10, everything within this 162 // Once Chrome no longer supports OSX 10.10, everything within this
162 // preprocessor block can be removed. 163 // preprocessor block can be removed.
163 #if !defined(MAC_OS_X_VERSION_10_11) || \ 164 #if !defined(MAC_OS_X_VERSION_10_11) || \
164 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11 165 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11
165 166
167 @class NSLayoutDimension;
166 @class NSLayoutXAxisAnchor; 168 @class NSLayoutXAxisAnchor;
167 @class NSLayoutYAxisAnchor; 169 @class NSLayoutYAxisAnchor;
168 170
171 @interface NSObject (ElCapitanSDK)
172 - (NSLayoutConstraint*)constraintEqualToConstant:(CGFloat)c;
173 @end
174
169 @interface NSView (ElCapitanSDK) 175 @interface NSView (ElCapitanSDK)
170 @property(readonly, strong) NSLayoutXAxisAnchor* leftAnchor; 176 @property(readonly, strong) NSLayoutXAxisAnchor* leftAnchor;
171 @property(readonly, strong) NSLayoutXAxisAnchor* rightAnchor; 177 @property(readonly, strong) NSLayoutXAxisAnchor* rightAnchor;
172 @property(readonly, strong) NSLayoutYAxisAnchor* bottomAnchor; 178 @property(readonly, strong) NSLayoutYAxisAnchor* bottomAnchor;
179 @property(readonly, strong) NSLayoutDimension* widthAnchor;
173 @end 180 @end
174 181
175 @interface NSWindow (ElCapitanSDK) 182 @interface NSWindow (ElCapitanSDK)
176 - (void)performWindowDragWithEvent:(NSEvent*)event; 183 - (void)performWindowDragWithEvent:(NSEvent*)event;
177 @end 184 @end
178 185
179 #endif // MAC_OS_X_VERSION_10_11 186 #endif // MAC_OS_X_VERSION_10_11
180 187
181 // Once Chrome no longer supports OSX 10.11, everything within this 188 // Once Chrome no longer supports OSX 10.11, everything within this
182 // preprocessor block can be removed. 189 // preprocessor block can be removed.
183 #if !defined(MAC_OS_X_VERSION_10_12) || \ 190 #if !defined(MAC_OS_X_VERSION_10_12) || \
184 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 191 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
185 192
186 @interface NSWindow (SierraSDK) 193 @interface NSWindow (SierraSDK)
187 @property(class) BOOL allowsAutomaticWindowTabbing; 194 @property(class) BOOL allowsAutomaticWindowTabbing;
188 @end 195 @end
189 196
190 #endif // MAC_OS_X_VERSION_10_12 197 #endif // MAC_OS_X_VERSION_10_12
191 198
192 // Once Chrome no longer supports OSX 10.12.0, everything within this 199 // Once Chrome no longer supports OSX 10.12.0, everything within this
193 // preprocessor block can be removed. 200 // preprocessor block can be removed.
194 #if !defined(MAC_OS_X_VERSION_10_12_1) || \ 201 #if !defined(MAC_OS_X_VERSION_10_12_1) || \
195 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12_1 202 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12_1
196 203
197 @interface NSButton (SierraPointOneSDK) 204 @interface NSButton (SierraPointOneSDK)
198 @property(copy) NSColor* bezelColor; 205 @property(copy) NSColor* bezelColor;
206 @property BOOL imageHugsTitle;
199 + (instancetype)buttonWithTitle:(NSString*)title 207 + (instancetype)buttonWithTitle:(NSString*)title
200 target:(id)target 208 target:(id)target
201 action:(SEL)action; 209 action:(SEL)action;
210 + (instancetype)buttonWithImage:(NSImage*)image
211 target:(id)target
212 action:(SEL)action;
213 + (instancetype)buttonWithTitle:(NSString*)title
214 image:(NSImage*)image
215 target:(id)target
216 action:(SEL)action;
202 @end 217 @end
203 218
219 @interface NSSegmentedControl (SierraPointOneSDK)
220 + (instancetype)segmentedControlWithImages:(NSArray*)images
221 trackingMode:(NSSegmentSwitchTracking)trackingMode
222 target:(id)target
223 action:(SEL)action;
224 @end
225
204 #endif // MAC_OS_X_VERSION_10_12_1 226 #endif // MAC_OS_X_VERSION_10_12_1
205 227
206 // ---------------------------------------------------------------------------- 228 // ----------------------------------------------------------------------------
207 // The symbol for kCWSSIDDidChangeNotification is available in the 229 // The symbol for kCWSSIDDidChangeNotification is available in the
208 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not 230 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not
209 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, 231 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK,
210 // declare the symbol. 232 // declare the symbol.
211 // ---------------------------------------------------------------------------- 233 // ----------------------------------------------------------------------------
212 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; 234 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification;
213 235
214 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ 236 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698