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

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

Issue 2193153002: MacViews: Send Mac scrollWheel NSEvents as ui::ET_SCROLL (ui::ScrollEvent). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-ScrollLayers
Patch Set: NSDictionary subscripting Created 4 years, 2 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 | content/browser/renderer_host/input/web_input_event_builders_mac_unittest.mm » ('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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 @interface NSControl (MountainLionSDK) 111 @interface NSControl (MountainLionSDK)
112 @property BOOL allowsExpansionToolTips; 112 @property BOOL allowsExpansionToolTips;
113 @end 113 @end
114 114
115 @interface NSNib (MountainLionSDK) 115 @interface NSNib (MountainLionSDK)
116 - (BOOL)instantiateWithOwner:(id)owner 116 - (BOOL)instantiateWithOwner:(id)owner
117 topLevelObjects:(NSArray**)topLevelObjects; 117 topLevelObjects:(NSArray**)topLevelObjects;
118 @end 118 @end
119 119
120 @interface NSArray (MountainLionSDK)
121 - (id)objectAtIndexedSubscript:(NSUInteger)idx;
122 @end
123
124 @interface NSDictionary (MountainLionSDK)
125 - (id)objectForKeyedSubscript:(id)key;
126 @end
127
128 @interface NSMutableDictionary (MountainLionSDK)
129 - (void)setObject:(id)obj forKeyedSubscript:(id<NSCopying>)key;
130 @end
131
120 #endif // MAC_OS_X_VERSION_10_8 132 #endif // MAC_OS_X_VERSION_10_8
121 133
122 // Once Chrome no longer supports OSX 10.8, everything within this preprocessor 134 // Once Chrome no longer supports OSX 10.8, everything within this preprocessor
123 // block can be removed. 135 // block can be removed.
124 #if !defined(MAC_OS_X_VERSION_10_9) || \ 136 #if !defined(MAC_OS_X_VERSION_10_9) || \
125 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9 137 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9
126 138
127 // NSProgress is public API in 10.9, but a version of it exists and is usable 139 // NSProgress is public API in 10.9, but a version of it exists and is usable
128 // in 10.8. 140 // in 10.8.
129 @class NSProgress; 141 @class NSProgress;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 265
254 // ---------------------------------------------------------------------------- 266 // ----------------------------------------------------------------------------
255 // The symbol for kCWSSIDDidChangeNotification is available in the 267 // The symbol for kCWSSIDDidChangeNotification is available in the
256 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not 268 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not
257 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, 269 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK,
258 // declare the symbol. 270 // declare the symbol.
259 // ---------------------------------------------------------------------------- 271 // ----------------------------------------------------------------------------
260 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; 272 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification;
261 273
262 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ 274 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/web_input_event_builders_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698