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