]> git.saurik.com Git - cydia.git/blob - iPhonePrivate.h
Add the date to the binary symbol sidestored copy.
[cydia.git] / iPhonePrivate.h
1 #ifndef CYDIA_UIKITPRIVATE_H
2 #define CYDIA_UIKITPRIVATE_H
3
4 // #include <*> {{{
5 #include <JavaScriptCore/JavaScriptCore.h>
6 #include <UIKit/UIKit.h>
7 // }}}
8 // typedef GS* {{{
9 typedef struct __GSEvent *GSEventRef;
10 // }}}
11
12 // enum UI* {{{
13 typedef enum {
14 UIGestureAttributeMinDegrees, /*float*/
15 UIGestureAttributeMaxDegrees, /*float*/
16 UIGestureAttributeMinScale, /*float*/
17 UIGestureAttributeMaxScale, /*float*/
18 UIGestureAttributeIsZoomRubberBandEnabled, /*BOOL*/
19 UIGestureAttributeZoomsFromCurrentToMinOrMax, /*BOOL*/
20 UIGestureAttributeVisibleSize, /*CGSize*/
21 UIGestureAttributeUpdatesScroller, /*BOOL*/
22 } UIGestureAttribute;
23
24 typedef enum {
25 UINavigationButtonStyleNormal,
26 UINavigationButtonStyleBack,
27 UINavigationButtonStyleHighlighted,
28 UINavigationButtonStyleDestructive
29 } UINavigationButtonStyle;
30
31 static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteSmall(static_cast<UIActivityIndicatorViewStyle>(3));
32 static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleGraySmall(static_cast<UIActivityIndicatorViewStyle>(4));
33 static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny(static_cast<UIActivityIndicatorViewStyle>(5));
34 // }}}
35 // #define * * {{{
36 #define UIDataDetectorTypeAutomatic 0x80000000
37 // }}}
38
39 // @class DOM*; {{{
40 @class DOMRGBColor;
41 // }}}
42 // @class Web*; {{{
43 @class WebDataSource;
44 @class WebScriptObject;
45 @class WebView;
46 // }}}
47
48 // enum DOM_* {{{
49 enum {
50 DOM_CSS_UNKNOWN = 0,
51 DOM_CSS_NUMBER = 1,
52 DOM_CSS_PERCENTAGE = 2,
53 DOM_CSS_EMS = 3,
54 DOM_CSS_EXS = 4,
55 DOM_CSS_PX = 5,
56 DOM_CSS_CM = 6,
57 DOM_CSS_MM = 7,
58 DOM_CSS_IN = 8,
59 DOM_CSS_PT = 9,
60 DOM_CSS_PC = 10,
61 DOM_CSS_DEG = 11,
62 DOM_CSS_RAD = 12,
63 DOM_CSS_GRAD = 13,
64 DOM_CSS_MS = 14,
65 DOM_CSS_S = 15,
66 DOM_CSS_HZ = 16,
67 DOM_CSS_KHZ = 17,
68 DOM_CSS_DIMENSION = 18,
69 DOM_CSS_STRING = 19,
70 DOM_CSS_URI = 20,
71 DOM_CSS_IDENT = 21,
72 DOM_CSS_ATTR = 22,
73 DOM_CSS_COUNTER = 23,
74 DOM_CSS_RECT = 24,
75 DOM_CSS_RGBCOLOR = 25,
76 DOM_CSS_VW = 26,
77 DOM_CSS_VH = 27,
78 DOM_CSS_VMIN = 28,
79 DOM_CSS_VMAX = 29
80 };
81 // }}}
82 // enum Web* {{{
83 typedef NS_ENUM(NSUInteger, WebCacheModel) {
84 WebCacheModelDocumentViewer = 0,
85 WebCacheModelDocumentBrowser = 1,
86 WebCacheModelPrimaryWebBrowser = 2
87 };
88
89 typedef enum {
90 WebEventMouseDown,
91 WebEventMouseUp,
92 WebEventMouseMoved,
93 WebEventScrollWheel,
94 WebEventKeyDown,
95 WebEventKeyUp,
96 WebEventTouchBegin,
97 WebEventTouchChange,
98 WebEventTouchEnd,
99 WebEventTouchCancel
100 } WebEventType;
101
102 enum {
103 WebKitErrorCannotShowMIMEType = 100,
104 WebKitErrorCannotShowURL = 101,
105 WebKitErrorFrameLoadInterruptedByPolicyChange = 102,
106 };
107 // }}}
108 // @protocol Web*; {{{
109 @protocol WebPolicyDecisionListener <NSObject>
110 - (void) use;
111 - (void) download;
112 - (void) ignore;
113 @end
114 // }}}
115
116 // @interface * : UIView {{{
117 @interface UIFormAssistant : UIView
118 + (UIFormAssistant *) sharedFormAssistant;
119 - (CGRect) peripheralFrame;
120 @end
121
122 @interface UIKeyboard : UIView
123 + (void) initImplementationNow;
124 @end
125
126 @interface UIProgressBar : UIView
127 + (CGSize) defaultSize;
128 - (void) setProgress:(float)progress;
129 - (void) setStyle:(NSInteger)style;
130 @end
131
132 @interface UIProgressHUD : UIView
133 - (void) hide;
134 - (void) setText:(NSString *)text;
135 - (void) showInView:(UIView *)view;
136 @end
137
138 @interface UIScroller : UIView
139 - (CGSize) contentSize;
140 - (void) setDirectionalScrolling:(BOOL)directional;
141 - (void) setEventMode:(NSInteger)mode;
142 - (void) setOffset:(CGPoint)offset;
143 - (void) setScrollDecelerationFactor:(CGFloat)factor;
144 - (void) setScrollHysteresis:(CGFloat)hysteresis;
145 - (void) setScrollerIndicatorStyle:(UIScrollViewIndicatorStyle)style;
146 - (void) setThumbDetectionEnabled:(BOOL)enabled;
147 @end
148
149 @interface UITextLabel : UIView
150 - (void) setCentersHorizontally:(BOOL)centers;
151 - (void) setColor:(UIColor *)color;
152 - (void) setFont:(UIFont *)font;
153 - (void) setText:(NSString *)text;
154 @end
155
156 @interface UITransitionView : UIView
157 @end
158
159 @interface UIWebDocumentView : UIView
160 - (CGRect) documentBounds;
161 - (void) enableReachability;
162 - (void) loadRequest:(NSURLRequest *)request;
163 - (void) redrawScaledDocument;
164 - (void) setAllowsImageSheet:(BOOL)allows;
165 - (void) setAllowsMessaging:(BOOL)allows;
166 - (void) setAutoresizes:(BOOL)autoresizes;
167 - (void) setContentsPosition:(NSInteger)position;
168 - (void) setDrawsBackground:(BOOL)draws;
169 - (void) _setDocumentType:(NSInteger)type;
170 - (void) setDrawsGrid:(BOOL)draws;
171 - (void) setInitialScale:(float)scale forDocumentTypes:(NSInteger)types;
172 - (void) setLogsTilingChanges:(BOOL)logs;
173 - (void) setMinimumScale:(float)scale forDocumentTypes:(NSInteger)types;
174 - (void) setMinimumSize:(CGSize)size;
175 - (void) setMaximumScale:(float)scale forDocumentTypes:(NSInteger)tpyes;
176 - (void) setSmoothsFonts:(BOOL)smooths;
177 - (void) setTileMinificationFilter:(NSString *)filter;
178 - (void) setTileSize:(CGSize)size;
179 - (void) setTilingEnabled:(BOOL)enabled;
180 - (void) setViewportSize:(CGSize)size forDocumentTypes:(NSInteger)types;
181 - (void) setZoomsFocusedFormControl:(BOOL)zooms;
182 - (void) useSelectionAssistantWithMode:(NSInteger)mode;
183 - (WebView *) webView;
184 @end
185
186 @interface UIWebViewWebViewDelegate : NSObject {
187 @public UIWebView *uiWebView;
188 }
189
190 - (void) _clearUIWebView;
191
192 @end
193 // }}}
194 // @interface *Button : * {{{
195 @interface UINavigationButton : UIButton
196 - (id) initWithTitle:(NSString *)title style:(UINavigationButtonStyle)style;
197 - (void) setBarStyle:(UIBarStyle)style;
198 @end
199
200 @interface UIPushButton : UIControl
201 - (id) backgroundForState:(NSUInteger)state;
202 - (void) setAutosizesToFit:(BOOL)autosizes;
203 - (void) setBackground:(id)background forState:(NSUInteger)state;
204 - (void) setDrawsShadow:(BOOL)draws;
205 - (void) setStretchBackground:(BOOL)stretch;
206 - (void) setTitle:(NSString *)title;
207 - (void) setTitleFont:(UIFont *)font;
208 @end
209
210 @interface UIThreePartButton : UIPushButton
211 @end
212 // }}}
213 // @interface * : NS* {{{
214 @interface WebDefaultUIKitDelegate : NSObject
215 + (WebDefaultUIKitDelegate *) sharedUIKitDelegate;
216 @end
217 // }}}
218 // @interface DOM* {{{
219 @interface DOMObject
220 @end
221
222 @interface DOMCSSValue : DOMObject
223 @end
224
225 @interface DOMCSSPrimitiveValue : DOMCSSValue
226 @property (readonly) unsigned short primitiveType;
227 - (DOMRGBColor *) getRGBColorValue;
228 - (float) getFloatValue:(unsigned short)unit;
229 @end
230
231 @interface DOMRGBColor : DOMObject
232 @property (readonly, strong) DOMCSSPrimitiveValue *red;
233 @property (readonly, strong) DOMCSSPrimitiveValue *green;
234 @property (readonly, strong) DOMCSSPrimitiveValue *blue;
235 @property (readonly, strong) DOMCSSPrimitiveValue *alpha;
236 @end
237
238 @interface DOMCSSStyleDeclaration : DOMObject
239 - (DOMCSSValue *) getPropertyCSSValue:(NSString *)name;
240 - (void) setProperty:(NSString *)name value:(NSString *)value priority:(NSString *)priority;
241 @end
242
243 @interface DOMNode : DOMObject
244 @end
245
246 @interface DOMNodeList : DOMObject
247 @property (readonly) unsigned length;
248 - (DOMNode *) item:(unsigned)index;
249 @end
250
251 @interface DOMElement : DOMNode
252 @property (readonly) int scrollHeight;
253 @end
254
255 @interface DOMHTMLElement : DOMElement
256 @property (readonly, strong) DOMCSSStyleDeclaration *style;
257 @end
258
259 @interface DOMHTMLBodyElement : DOMHTMLElement
260 @end
261
262 @interface DOMHTMLIFrameElement : DOMHTMLElement
263 @end
264
265 @interface DOMDocument : DOMNode
266 @property (strong) DOMHTMLElement *body;
267 - (DOMCSSStyleDeclaration *) getComputedStyle:(DOMElement *)element pseudoElement:(NSString *)pseudo;
268 - (DOMNodeList *) getElementsByTagName:(NSString *)name;
269 @end
270 // }}}
271 // @interface WAK* : * {{{
272 @interface WAKResponder : NSObject
273 @end
274
275 @interface WAKView : NSObject
276 + (BOOL) hasLandscapeOrientation;
277 @end
278
279 @interface WAKWindow : NSObject
280 + (BOOL) hasLandscapeOrientation;
281 @end
282 // }}}
283 // @interface Web* {{{
284 @interface WebPreferences : NSObject
285 - (void) setCacheModel:(WebCacheModel)value;
286 - (void) setJavaScriptCanOpenWindowsAutomatically:(BOOL)value;
287 @end
288
289 @interface WebFrame : NSObject
290 @property (nonatomic, readonly, copy) NSArray *childFrames;
291 @property (nonatomic, readonly, strong) WebDataSource *dataSource;
292 @property (nonatomic, readonly, strong) DOMDocument *DOMDocument;
293 @property (nonatomic, readonly, strong) DOMHTMLElement *frameElement;
294 @property (nonatomic, readonly) JSGlobalContextRef globalContext;
295 @property (nonatomic, readonly, strong) WebFrame *parentFrame;
296 @property (nonatomic, readonly, strong) WebDataSource *provisionalDataSource;
297 @property (nonatomic, readonly, strong) WebScriptObject *windowObject;
298 @end
299
300 @interface WebView : WAKView
301 @property (nonatomic, readonly, strong) WebFrame *mainFrame;
302 @property (nonatomic, strong) WebPreferences *preferences;
303 - (IBAction) reloadFromOrigin:(id)sender;
304 - (void) setApplicationNameForUserAgent:(NSString *)value;
305 - (void) setShouldUpdateWhileOffscreen:(BOOL)value;
306 @end
307
308 @interface WebScriptObject : NSObject
309 - (id) evaluateWebScript:(NSString *)script;
310 + (BOOL) isKeyExcludedFromWebScript:(const char *)name;
311 - (JSObjectRef) JSObject;
312 - (void) setWebScriptValueAtIndex:(unsigned)index value:(id)value;
313 - (id) webScriptValueAtIndex:(unsigned)index;
314 @end
315
316 @interface WebUndefined : NSObject
317 + (WebUndefined *) undefined;
318 @end
319 // }}}
320 // @interface UIWeb* : * {{{
321 @interface UIWebBrowserView : UIWebDocumentView
322 @end
323
324 @interface UIWebTouchEventsGestureRecognizer : UIGestureRecognizer
325 - (int) type;
326 - (NSString *) _typeDescription;
327 @end
328 // }}}
329
330 // @interface NS* (*) {{{
331 @interface NSMutableURLRequest (Apple)
332 - (void) setHTTPShouldUsePipelining:(BOOL)pipelining;
333 @end
334
335 @interface NSObject (Apple)
336 + (BOOL) isKeyExcludedFromWebScript:(const char *)name;
337 @end
338
339 @interface NSString (Apple)
340 - (NSString *) stringByAddingPercentEscapes;
341 - (NSString *) stringByReplacingCharacter:(UniChar)from withCharacter:(UniChar)to;
342 @end
343
344 @interface NSURL (Apple)
345 - (BOOL) isGoogleMapsURL;
346 - (BOOL) isSpringboardHandledURL;
347 // XXX: make this an enum
348 - (NSURL *) itmsURL:(NSInteger *)store;
349 - (NSURL *) mapsURL;
350 - (NSURL *) phobosURL;
351 - (NSURL *) youTubeURL;
352 @end
353
354 @interface NSURLRequest (Apple)
355 + (BOOL) allowsAnyHTTPSCertificateForHost:(NSString *)host;
356 + (void) setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString *)host;
357 @end
358
359 @interface NSValue (Apple)
360 + (NSValue *) valueWithSize:(CGSize)size;
361 @end
362 // }}}
363 // @interface UI* (*) {{{
364 @interface UIActionSheet (Apple)
365 - (void) setContext:(NSString *)context;
366 - (NSString *) context;
367 @end
368
369 @interface UIAlertView (Apple)
370 - (void) addTextFieldWithValue:(NSString *)value label:(NSString *)label;
371 - (id) buttons;
372 - (NSString *) context;
373 - (void) setContext:(NSString *)context;
374 - (void) setNumberOfRows:(int)rows;
375 - (void) setRunsModal:(BOOL)modal;
376 - (UITextField *) textField;
377 - (UITextField *) textFieldAtIndex:(NSUInteger)index;
378 - (void) _updateFrameForDisplay;
379 @end
380
381 @interface UIApplication (Apple)
382 - (void) suspendReturningToLastApp:(BOOL)returning;
383 - (void) suspend;
384 - (void) applicationSuspend;
385 - (void) applicationSuspend:(GSEventRef)event;
386 - (void) _animateSuspension:(BOOL)suspend duration:(double)duration startTime:(double)start scale:(float)scale;
387 - (void) applicationOpenURL:(NSURL *)url;
388 - (void) applicationWillResignActive:(UIApplication *)application;
389 - (void) applicationWillSuspend;
390 - (void) launchApplicationWithIdentifier:(NSString *)identifier suspended:(BOOL)suspended;
391 - (void) openURL:(NSURL *)url asPanel:(BOOL)panel;
392 - (void) setStatusBarShowsProgress:(BOOL)shows;
393 - (void) _setSuspended:(BOOL)suspended;
394 - (void) terminateWithSuccess;
395 @end
396
397 @interface UIBarButtonItem (Apple)
398 - (UIView *) view;
399 @end
400
401 @interface UIColor (Apple)
402 + (UIColor *) pinStripeColor;
403 @end
404
405 @interface UIControl (Apple)
406 - (void) addTarget:(id)target action:(SEL)action forEvents:(NSInteger)events;
407 @end
408
409 @interface UIDevice (Apple)
410 - (NSString *) uniqueIdentifier;
411 @end
412
413 @interface UIImage (Apple)
414 + (UIImage *) imageAtPath:(NSString *)path;
415 @end
416
417 @interface UILocalizedIndexedCollation (Apple)
418 - (id) initWithDictionary:(NSDictionary *)dictionary;
419 - (NSString *) transformedCollationStringForString:(NSString *)string;
420 @end
421
422 @interface UINavigationBar (Apple)
423 + (CGSize) defaultSize;
424 - (UIBarStyle) _barStyle:(BOOL)style;
425 @end
426
427 @interface UIScrollView (Apple)
428 - (void) setScrollingEnabled:(BOOL)enabled;
429 - (void) setShowBackgroundShadow:(BOOL)show;
430 @end
431
432 @interface UISearchBar (Apple)
433 - (UITextField *) searchField;
434 @end
435
436 @interface UITabBarController (Apple)
437 - (UITransitionView *) _transitionView;
438 - (void) concealTabBarSelection;
439 - (void) revealTabBarSelection;
440 @end
441
442 @interface UITabBarItem (Apple)
443 - (void) setAnimatedBadge:(BOOL)animated;
444 - (UIView *) view;
445 @end
446
447 @interface UITableViewCell (Apple)
448 - (float) selectionPercent;
449 - (void) _updateHighlightColorsForView:(id)view highlighted:(BOOL)highlighted;
450 @end
451
452 @interface UITextField (Apple)
453 - (NSObject<UITextInputTraits> *) textInputTraits;
454 @end
455
456 @interface UITextView (Apple)
457 - (UIFont *) font;
458 - (void) setAllowsRubberBanding:(BOOL)rubberbanding;
459 - (void) setFont:(UIFont *)font;
460 - (void) setMarginTop:(int)margin;
461 - (void) setTextColor:(UIColor *)color;
462 @end
463
464 @interface UIView (Apple)
465 - (UIScroller *) _scroller;
466 - (void) setClipsSubviews:(BOOL)clips;
467 - (void) setEnabledGestures:(NSInteger)gestures;
468 - (void) setFixedBackgroundPattern:(BOOL)fixed;
469 - (void) setGestureDelegate:(id)delegate;
470 - (void) setNeedsDisplayOnBoundsChange:(BOOL)needs;
471 - (void) setValue:(NSValue *)value forGestureAttribute:(NSInteger)attribute;
472 - (void) setZoomScale:(float)scale duration:(double)duration;
473 - (void) _setZoomScale:(float)scale duration:(double)duration;
474 - (void) setOrigin:(CGPoint)origin;
475 @end
476
477 @interface UIViewController (Apple)
478 - (void) _updateLayoutForStatusBarAndInterfaceOrientation;
479 - (void) unloadView;
480 @end
481
482 @interface UIWindow (Apple)
483 - (UIResponder *) firstResponder;
484 - (void) makeKey:(UIApplication *)application;
485 - (void) orderFront:(UIApplication *)application;
486 @end
487
488 @interface UIWebView (Apple)
489 - (UIWebDocumentView *) _documentView;
490 - (UIScrollView *) _scrollView;
491 - (UIScroller *) _scroller;
492 - (void) _updateViewSettings;
493 - (void) webView:(WebView *)view addMessageToConsole:(NSDictionary *)message;
494 //- (WebView *) webView:(WebView *)view createWebViewWithRequest:(NSURLRequest *)request;
495 - (void) webView:(WebView *)view decidePolicyForNavigationAction:(NSDictionary *)action request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener;
496 - (void) webView:(WebView *)view decidePolicyForNewWindowAction:(NSDictionary *)action request:(NSURLRequest *)request newFrameName:(NSString *)name decisionListener:(id<WebPolicyDecisionListener>)listener;
497 - (void) webView:(WebView *)view didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame;
498 - (void) webView:(WebView *)view didCommitLoadForFrame:(WebFrame *)frame;
499 - (void) webView:(WebView *)view didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame;
500 - (void) webView:(WebView *)view didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)frame;
501 - (void) webView:(WebView *)view didFinishLoadForFrame:(WebFrame *)frame;
502 - (void) webView:(WebView *)view didReceiveTitle:(id)title forFrame:(id)frame;
503 - (void) webView:(WebView *)view didStartProvisionalLoadForFrame:(WebFrame *)frame;
504 - (void) webView:(WebView *)view resource:(id)identifier didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)source;
505 - (void) webView:(WebView *)view resource:(id)identifier didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)source;
506 - (NSURLRequest *) webView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source;
507 - (NSURLRequest *) webThreadWebView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source;
508 - (void) webView:(WebView *)view runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame;
509 - (BOOL) webView:(WebView *)view runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame;
510 - (NSString *) webView:(WebView *)view runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(NSString *)text initiatedByFrame:(WebFrame *)frame;
511 - (void) webViewClose:(WebView *)view;
512 @end
513 // }}}
514 // @interface Web* (*) {{{
515 @interface WebFrame (Apple)
516 - (void) setNeedsLayout;
517 @end
518
519 @interface WebPreferences (Apple)
520 + (void) _setInitialDefaultTextEncodingToSystemEncoding;
521 - (void) _setLayoutInterval:(NSInteger)interval;
522 - (void) setOfflineWebApplicationCacheEnabled:(BOOL)enabled;
523 @end
524
525 @interface WebView (Apple)
526 - (void) _preferencesChanged:(WebPreferences *)preferences;
527 - (void) _preferencesChangedNotification:(NSNotification *)notification;
528 - (void) _setLayoutInterval:(float)interval;
529 - (void) _setAllowsMessaging:(BOOL)allows;
530 @end
531 // }}}
532
533 // #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER {{{
534 #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
535 #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
536 // XXX: this is a random jumble of garbage
537
538 typedef enum {
539 UIModalPresentationFullScreen,
540 UIModalPresentationPageSheet,
541 UIModalPresentationFormSheet,
542 UIModalPresentationCurrentContext,
543 } UIModalPresentationStyle;
544
545 #define kSCNetworkReachabilityFlagsConnectionOnTraffic kSCNetworkReachabilityFlagsConnectionAutomatic
546
547 #define UIBarStyleBlack UIBarStyleBlackOpaque
548
549 @class NSUndoManager;
550 @class UIPasteboard;
551
552 @interface UIActionSheet (iPad)
553 - (void) showFromBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated;
554 @end
555
556 @interface UIViewController (iPad)
557 - (void) setModalPresentationStyle:(UIModalPresentationStyle)style;
558 @end
559
560 @interface UIApplication (iOS_3_0)
561 @property(nonatomic) BOOL applicationSupportsShakeToEdit;
562 @end
563
564 @interface UIScrollView (iOS_3_0)
565 @property(assign,nonatomic) CGFloat decelerationRate;
566 @end
567
568 @interface UIWebView (iOS_3_0)
569 @property(assign,nonatomic) NSUInteger dataDetectorTypes;
570 @end
571
572 extern CGFloat const UIScrollViewDecelerationRateNormal;
573
574 #endif//AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
575 // }}}
576 // #if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000 {{{
577 #if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000
578
579 #define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5)
580 #define kCFCoreFoundationVersionNumber_iPhoneOS_3_0 478.47
581
582 #endif
583 // }}}
584
585 #ifndef kCFCoreFoundationVersionNumber_iPhoneOS_4_0
586 #define kCFCoreFoundationVersionNumber_iPhoneOS_4_0 550.32
587 #endif
588
589 @interface UITabBarItem (iOS_7_0)
590 - (id) initWithTitle:(NSString *)title image:(UIImage *)image selectedImage:(UIImage *)selectedImage;
591 @end
592
593 @interface UIScreen (iOS_4_0)
594 @property(nonatomic,readonly) CGFloat scale;
595 @end
596
597 @interface DOMHTMLIFrameElement (IDL)
598 - (WebFrame *) contentFrame;
599 @end
600
601 // extern *; {{{
602 extern CFStringRef const kGSDisplayIdentifiersCapability;
603 extern float const UIWebViewGrowsAndShrinksToFitHeight;
604 extern float const UIWebViewScalesToFitScale;
605 extern NSString *WebKitErrorDomain;
606 // }}}
607 // extern "C" *(); {{{
608 extern "C" void *reboot2(uint64_t flags);
609 extern "C" mach_port_t SBSSpringBoardServerPort();
610 extern "C" int SBBundlePathForDisplayIdentifier(mach_port_t port, const char *identifier, char *path);
611 extern "C" NSArray *SBSCopyApplicationDisplayIdentifiers(bool active, bool debuggable);
612 extern "C" NSString *SBSCopyLocalizedApplicationNameForDisplayIdentifier(NSString *);
613 extern "C" NSString *SBSCopyIconImagePathForDisplayIdentifier(NSString *);
614 extern "C" UIImage *_UIImageWithName(NSString *name);
615 extern "C" void UISetColor(CGColorRef color);
616 // }}}
617
618 #endif//CYDIA_UIKITPRIVATE_H