]> git.saurik.com Git - cydia.git/blame - iPhonePrivate.h
Objective-C seriously didn't notice my mistake :/.
[cydia.git] / iPhonePrivate.h
CommitLineData
c21004b9 1#ifndef CYDIA_UIKITPRIVATE_H
ffbc8ef2 2#define CYDIA_UIKITPRIVATE_H
c21004b9 3
f8e0cf06 4// #include <*> {{{
63755c48 5#include <JavaScriptCore/JavaScriptCore.h>
a68d4636 6#include <UIKit/UIKit.h>
f8e0cf06 7// }}}
63755c48
JF
8// typedef GS* {{{
9typedef struct __GSEvent *GSEventRef;
5e640a64 10// }}}
63755c48
JF
11
12// enum UI* {{{
c21004b9
JF
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
e67ebdad
JF
31static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteSmall(static_cast<UIActivityIndicatorViewStyle>(3));
32static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleGraySmall(static_cast<UIActivityIndicatorViewStyle>(4));
33static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny(static_cast<UIActivityIndicatorViewStyle>(5));
f8e0cf06 34// }}}
2634b249
JF
35// #define * * {{{
36#define UIDataDetectorTypeAutomatic 0x80000000
37// }}}
63755c48
JF
38
39// @class DOM*; {{{
40@class DOMRGBColor;
41// }}}
2634b249 42// @class Web*; {{{
2634b249 43@class WebScriptObject;
63755c48 44@class WebView;
f8e0cf06 45// }}}
63755c48
JF
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
2634b249
JF
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
8c9453da 132- (void) hide;
2634b249 133- (void) setText:(NSString *)text;
8c9453da 134- (void) showInView:(UIView *)view;
2634b249
JF
135@end
136
2634b249
JF
137@interface UIScroller : UIView
138- (CGSize) contentSize;
139- (void) setDirectionalScrolling:(BOOL)directional;
140- (void) setEventMode:(NSInteger)mode;
141- (void) setOffset:(CGPoint)offset;
09e03d23
JF
142- (void) setScrollDecelerationFactor:(CGFloat)factor;
143- (void) setScrollHysteresis:(CGFloat)hysteresis;
4886cc81 144- (void) setScrollerIndicatorStyle:(UIScrollViewIndicatorStyle)style;
2634b249
JF
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
7585ce66
JF
155@interface UITransitionView : UIView
156@end
157
2634b249
JF
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;
2634b249
JF
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
d49718a1
JF
184
185@interface UIWebViewWebViewDelegate : NSObject {
186 @public UIWebView *uiWebView;
187}
0291a3a6
JF
188
189- (void) _clearUIWebView;
190
d49718a1 191@end
2634b249
JF
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// }}}
63755c48
JF
217// @interface DOM* {{{
218@interface DOMObject
4f651400
JF
219@end
220
63755c48
JF
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;
4f651400
JF
268@end
269// }}}
b1497b56 270// @interface WAK* : * {{{
63755c48
JF
271@interface WAKResponder : NSObject
272@end
273
274@interface WAKView : NSObject
275+ (BOOL) hasLandscapeOrientation;
276@end
277
b1497b56
JF
278@interface WAKWindow : NSObject
279+ (BOOL) hasLandscapeOrientation;
280@end
281// }}}
63755c48
JF
282// @interface Web* {{{
283@interface WebPreferences : NSObject
284- (void) setCacheModel:(WebCacheModel)value;
285- (void) setJavaScriptCanOpenWindowsAutomatically:(BOOL)value;
286@end
287
fd75908c
JF
288@interface WebDataSource : NSObject
289- (NSURLRequest *) request;
290- (NSURLResponse *) response;
291@end
292
63755c48
JF
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// }}}
c21004b9 333
f8e0cf06 334// @interface NS* (*) {{{
4825f34a
JF
335@interface NSMutableURLRequest (Apple)
336- (void) setHTTPShouldUsePipelining:(BOOL)pipelining;
337@end
338
63755c48
JF
339@interface NSObject (Apple)
340+ (BOOL) isKeyExcludedFromWebScript:(const char *)name;
c2493c4e 341- (NSArray *) attributeKeys;
63755c48
JF
342@end
343
c21004b9 344@interface NSString (Apple)
c21004b9
JF
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
5a652738
JF
359@interface NSURLRequest (Apple)
360+ (BOOL) allowsAnyHTTPSCertificateForHost:(NSString *)host;
361+ (void) setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString *)host;
362@end
363
c21004b9
JF
364@interface NSValue (Apple)
365+ (NSValue *) valueWithSize:(CGSize)size;
366@end
f8e0cf06
JF
367// }}}
368// @interface UI* (*) {{{
c21004b9 369@interface UIActionSheet (Apple)
9daa7f25 370- (void) setContext:(NSString *)context;
c21004b9
JF
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)
216f3dc6
JF
387- (void) suspendReturningToLastApp:(BOOL)returning;
388- (void) suspend;
389- (void) applicationSuspend;
c21004b9
JF
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;
8ea72491 396- (void) openURL:(NSURL *)url asPanel:(BOOL)panel;
c21004b9
JF
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
4985045e
JF
406@interface UIColor (Apple)
407+ (UIColor *) pinStripeColor;
408@end
409
c21004b9
JF
410@interface UIControl (Apple)
411- (void) addTarget:(id)target action:(SEL)action forEvents:(NSInteger)events;
412@end
413
3e5a9f5d
JF
414@interface UIDevice (Apple)
415- (NSString *) uniqueIdentifier;
416@end
417
c21004b9 418@interface UIImage (Apple)
c21004b9
JF
419+ (UIImage *) imageAtPath:(NSString *)path;
420@end
421
aeeb755b
JF
422@interface UILocalizedIndexedCollation (Apple)
423- (id) initWithDictionary:(NSDictionary *)dictionary;
424- (NSString *) transformedCollationStringForString:(NSString *)string;
425@end
426
c21004b9
JF
427@interface UINavigationBar (Apple)
428+ (CGSize) defaultSize;
429- (UIBarStyle) _barStyle:(BOOL)style;
430@end
431
2634b249
JF
432@interface UIScrollView (Apple)
433- (void) setScrollingEnabled:(BOOL)enabled;
434- (void) setShowBackgroundShadow:(BOOL)show;
435@end
436
c21004b9
JF
437@interface UISearchBar (Apple)
438- (UITextField *) searchField;
439@end
440
7585ce66
JF
441@interface UITabBarController (Apple)
442- (UITransitionView *) _transitionView;
92860339
GP
443- (void) concealTabBarSelection;
444- (void) revealTabBarSelection;
7585ce66
JF
445@end
446
c21004b9
JF
447@interface UITabBarItem (Apple)
448- (void) setAnimatedBadge:(BOOL)animated;
e67ebdad 449- (UIView *) view;
c21004b9
JF
450@end
451
452@interface UITableViewCell (Apple)
453- (float) selectionPercent;
555aaf71 454- (void) _updateHighlightColorsForView:(id)view highlighted:(BOOL)highlighted;
c21004b9
JF
455@end
456
457@interface UITextField (Apple)
63755c48 458- (NSObject<UITextInputTraits> *) textInputTraits;
c21004b9
JF
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)
2634b249
JF
470- (UIScroller *) _scroller;
471- (void) setClipsSubviews:(BOOL)clips;
c21004b9 472- (void) setEnabledGestures:(NSInteger)gestures;
2634b249 473- (void) setFixedBackgroundPattern:(BOOL)fixed;
c21004b9
JF
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;
e67ebdad 479- (void) setOrigin:(CGPoint)origin;
c21004b9
JF
480@end
481
482@interface UIViewController (Apple)
483- (void) _updateLayoutForStatusBarAndInterfaceOrientation;
2fcb1d49 484- (void) unloadView;
c21004b9
JF
485@end
486
487@interface UIWindow (Apple)
488- (UIResponder *) firstResponder;
489- (void) makeKey:(UIApplication *)application;
490- (void) orderFront:(UIApplication *)application;
491@end
c21004b9 492
2634b249
JF
493@interface UIWebView (Apple)
494- (UIWebDocumentView *) _documentView;
495- (UIScrollView *) _scrollView;
c21004b9 496- (UIScroller *) _scroller;
7e37a676 497- (void) _updateViewSettings;
72bdb258 498- (void) webView:(WebView *)view addMessageToConsole:(NSDictionary *)message;
2634b249
JF
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;
64ffa332 503- (void) webView:(WebView *)view didCommitLoadForFrame:(WebFrame *)frame;
2634b249
JF
504- (void) webView:(WebView *)view didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame;
505- (void) webView:(WebView *)view didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)frame;
c21004b9 506- (void) webView:(WebView *)view didFinishLoadForFrame:(WebFrame *)frame;
2634b249
JF
507- (void) webView:(WebView *)view didReceiveTitle:(id)title forFrame:(id)frame;
508- (void) webView:(WebView *)view didStartProvisionalLoadForFrame:(WebFrame *)frame;
754456f5
JF
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;
2634b249 511- (NSURLRequest *) webView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source;
92de61aa 512- (NSURLRequest *) webThreadWebView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source;
2634b249
JF
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;
c21004b9 517@end
f8e0cf06 518// }}}
5e640a64 519// @interface Web* (*) {{{
3cf38067
JF
520@interface WebFrame (Apple)
521- (void) setNeedsLayout;
522@end
523
5e640a64
JF
524@interface WebPreferences (Apple)
525+ (void) _setInitialDefaultTextEncodingToSystemEncoding;
526- (void) _setLayoutInterval:(NSInteger)interval;
527- (void) setOfflineWebApplicationCacheEnabled:(BOOL)enabled;
528@end
6da09548
JF
529
530@interface WebView (Apple)
d331bfc3
JF
531- (void) _preferencesChanged:(WebPreferences *)preferences;
532- (void) _preferencesChangedNotification:(NSNotification *)notification;
6da09548
JF
533- (void) _setLayoutInterval:(float)interval;
534- (void) _setAllowsMessaging:(BOOL)allows;
535@end
5e640a64 536// }}}
c21004b9 537
89b0ea4a
JF
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
670fdb01 541// XXX: this is a random jumble of garbage
89b0ea4a
JF
542
543typedef enum {
544 UIModalPresentationFullScreen,
545 UIModalPresentationPageSheet,
546 UIModalPresentationFormSheet,
547 UIModalPresentationCurrentContext,
548} UIModalPresentationStyle;
c21004b9 549
1f984572 550#define kSCNetworkReachabilityFlagsConnectionOnTraffic kSCNetworkReachabilityFlagsConnectionAutomatic
1f984572 551
ad5271ca
JF
552#define UIBarStyleBlack UIBarStyleBlackOpaque
553
89b0ea4a
JF
554@class NSUndoManager;
555@class UIPasteboard;
556
b2a77283
JF
557@interface UIActionSheet (iPad)
558- (void) showFromBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated;
559@end
560
89b0ea4a
JF
561@interface UIViewController (iPad)
562- (void) setModalPresentationStyle:(UIModalPresentationStyle)style;
563@end
564
b971f083
JF
565@interface UIApplication (iOS_3_0)
566@property(nonatomic) BOOL applicationSupportsShakeToEdit;
567@end
568
9c1605e2 569@interface UIScrollView (iOS_3_0)
09e03d23 570@property(assign,nonatomic) CGFloat decelerationRate;
9c1605e2
JF
571@end
572
635c55b4 573@interface UIWebView (iOS_3_0)
df19d370 574@property(assign,nonatomic) NSUInteger dataDetectorTypes;
635c55b4
JF
575@end
576
09e03d23 577extern CGFloat const UIScrollViewDecelerationRateNormal;
9c1605e2 578
89b0ea4a
JF
579#endif//AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
580// }}}
670fdb01
JF
581// #if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000 {{{
582#if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000
583
584#define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5)
7154cb90 585#define kCFCoreFoundationVersionNumber_iPhoneOS_3_0 478.47
670fdb01
JF
586
587#endif
588// }}}
89b0ea4a 589
c6bcc0c1
JF
590#ifndef kCFCoreFoundationVersionNumber_iPhoneOS_4_0
591#define kCFCoreFoundationVersionNumber_iPhoneOS_4_0 550.32
592#endif
593
6445279b
JF
594@interface UITabBarItem (iOS_7_0)
595- (id) initWithTitle:(NSString *)title image:(UIImage *)image selectedImage:(UIImage *)selectedImage;
596@end
597
57e8b225
JF
598@interface UIScreen (iOS_4_0)
599@property(nonatomic,readonly) CGFloat scale;
600@end
601
aa1e1906
JF
602@interface DOMHTMLIFrameElement (IDL)
603- (WebFrame *) contentFrame;
604@end
605
89b0ea4a
JF
606// extern *; {{{
607extern CFStringRef const kGSDisplayIdentifiersCapability;
608extern float const UIWebViewGrowsAndShrinksToFitHeight;
609extern float const UIWebViewScalesToFitScale;
63755c48 610extern NSString *WebKitErrorDomain;
f8e0cf06
JF
611// }}}
612// extern "C" *(); {{{
bb0fe3c9 613extern "C" void *reboot2(uint64_t flags);
0e371502 614extern "C" mach_port_t SBSSpringBoardServerPort();
8c5b623f 615extern "C" int SBBundlePathForDisplayIdentifier(mach_port_t port, const char *identifier, char *path);
8bd55062 616extern "C" NSArray *SBSCopyApplicationDisplayIdentifiers(bool active, bool debuggable);
375a4481 617extern "C" NSString *SBSCopyLocalizedApplicationNameForDisplayIdentifier(NSString *);
c7e78d5f 618extern "C" NSString *SBSCopyIconImagePathForDisplayIdentifier(NSString *);
c21004b9
JF
619extern "C" UIImage *_UIImageWithName(NSString *name);
620extern "C" void UISetColor(CGColorRef color);
f8e0cf06 621// }}}
c21004b9
JF
622
623#endif//CYDIA_UIKITPRIVATE_H