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

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

Issue 564953002: Add support for dark theme in Mac Notification Center (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad merge. Created 6 years, 3 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
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.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
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 - (void)publish; 257 - (void)publish;
258 - (void)unpublish; 258 - (void)unpublish;
259 259
260 @end 260 @end
261 261
262 @interface NSScreen (MavericksSDK) 262 @interface NSScreen (MavericksSDK)
263 + (BOOL)screensHaveSeparateSpaces; 263 + (BOOL)screensHaveSeparateSpaces;
264 @end 264 @end
265 265
266 // NSAppearance is a new class in the 10.9 SDK. New classes cannot be
267 // forward-declared because they also require an @implementation, which would
268 // produce conflicting linkage. Instead, just declare the necessary pieces of
269 // the interface as a protocol, and treat objects of this type as id.
270 @protocol CrNSAppearance
Robert Sesek 2014/09/15 16:36:02 To resolve the compile errors, add " <NSObject>" a
dewittj 2014/09/15 17:32:37 Done.
271 + (id<NSObject>)appearanceNamed:(NSString*)name;
272 @end
273
266 @interface NSView (MavericksSDK) 274 @interface NSView (MavericksSDK)
267 - (void)setCanDrawSubviewsIntoLayer:(BOOL)flag; 275 - (void)setCanDrawSubviewsIntoLayer:(BOOL)flag;
276 - (id<CrNSAppearance>)effectiveAppearance;
268 @end 277 @end
269 278
270 enum { 279 enum {
271 NSWindowOcclusionStateVisible = 1UL << 1, 280 NSWindowOcclusionStateVisible = 1UL << 1,
272 }; 281 };
273 typedef NSUInteger NSWindowOcclusionState; 282 typedef NSUInteger NSWindowOcclusionState;
274 283
275 @interface NSWindow (MavericksSDK) 284 @interface NSWindow (MavericksSDK)
276 - (NSWindowOcclusionState)occlusionState; 285 - (NSWindowOcclusionState)occlusionState;
277 @end 286 @end
(...skipping 25 matching lines...) Expand all
303 312
304 @interface NSUserActivity : NSObject 313 @interface NSUserActivity : NSObject
305 314
306 @property (readonly, copy) NSString* activityType; 315 @property (readonly, copy) NSString* activityType;
307 @property (copy) NSURL* webPageURL; 316 @property (copy) NSURL* webPageURL;
308 317
309 @end 318 @end
310 319
311 BASE_EXPORT extern "C" NSString* const NSUserActivityTypeBrowsingWeb; 320 BASE_EXPORT extern "C" NSString* const NSUserActivityTypeBrowsingWeb;
312 321
322 BASE_EXPORT extern "C" NSString* const NSAppearanceNameVibrantDark;
323
313 #endif // MAC_OS_X_VERSION_10_10 324 #endif // MAC_OS_X_VERSION_10_10
314 325
315 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ 326 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_
OLDNEW
« no previous file with comments | « no previous file | base/mac/sdk_forward_declarations.mm » ('j') | ui/message_center/cocoa/status_item_view.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698