]> git.saurik.com Git - cydia.git/blob - iPhonePrivate.h
Try to abstract CydiaURLProtocol as CyteKit class.
[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 - (NSArray *) attributeKeys;
338 @end
339
340 @interface NSString (Apple)
341 - (NSString *) stringByAddingPercentEscapes;
342 - (NSString *) stringByReplacingCharacter:(UniChar)from withCharacter:(UniChar)to;
343 @end
344
345 @interface NSURL (Apple)
346 - (BOOL) isGoogleMapsURL;
347 - (BOOL) isSpringboardHandledURL;
348 // XXX: make this an enum
349 - (NSURL *) itmsURL:(NSInteger *)store;
350 - (NSURL *) mapsURL;
351 - (NSURL *) phobosURL;
352 - (NSURL *) youTubeURL;
353 @end
354
355 @interface NSURLRequest (Apple)
356 + (BOOL) allowsAnyHTTPSCertificateForHost:(NSString *)host;
357 + (void) setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString *)host;
358 @end
359
360 @interface NSValue (Apple)
361 + (NSValue *) valueWithSize:(CGSize)size;
362 @end
363 // }}}
364 // @interface UI* (*) {{{
365 @interface UIActionSheet (Apple)
366 - (void) setContext:(NSString *)context;
367 - (NSString *) context;
368 @end
369
370 @interface UIAlertView (Apple)
371 - (void) addTextFieldWithValue:(NSString *)value label:(NSString *)label;
372 - (id) buttons;
373 - (NSString *) context;
374 - (void) setContext:(NSString *)context;
375 - (void) setNumberOfRows:(int)rows;
376 - (void) setRunsModal:(BOOL)modal;
377 - (UITextField *) textField;
378 - (UITextField *) textFieldAtIndex:(NSUInteger)index;
379 - (void) _updateFrameForDisplay;
380 @end
381
382 @interface UIApplication (Apple)
383 - (void) suspendReturningToLastApp:(BOOL)returning;
384 - (void) suspend;
385 - (void) applicationSuspend;
386 - (void) applicationSuspend:(GSEventRef)event;
387 - (void) _animateSuspension:(BOOL)suspend duration:(double)duration startTime:(double)start scale:(float)scale;
388 - (void) applicationOpenURL:(NSURL *)url;
389 - (void) applicationWillResignActive:(UIApplication *)application;
390 - (void) applicationWillSuspend;
391 - (void) launchApplicationWithIdentifier:(NSString *)identifier suspended:(BOOL)suspended;
392 - (void) openURL:(NSURL *)url asPanel:(BOOL)panel;
393 - (void) setStatusBarShowsProgress:(BOOL)shows;
394 - (void) _setSuspended:(BOOL)suspended;
395 - (void) terminateWithSuccess;
396 @end
397
398 @interface UIBarButtonItem (Apple)
399 - (UIView *) view;
400 @end
401
402 @interface UIColor (Apple)
403 + (UIColor *) pinStripeColor;
404 @end
405
406 @interface UIControl (Apple)
407 - (void) addTarget:(id)target action:(SEL)action forEvents:(NSInteger)events;
408 @end
409
410 @interface UIDevice (Apple)
411 - (NSString *) uniqueIdentifier;
412 @end
413
414 @interface UIImage (Apple)
415 + (UIImage *) imageAtPath:(NSString *)path;
416 @end
417
418 @interface UILocalizedIndexedCollation (Apple)
419 - (id) initWithDictionary:(NSDictionary *)dictionary;
420 - (NSString *) transformedCollationStringForString:(NSString *)string;
421 @end
422
423 @interface UINavigationBar (Apple)
424 + (CGSize) defaultSize;
425 - (UIBarStyle) _barStyle:(BOOL)style;
426 @end
427
428 @interface UIScrollView (Apple)
429 - (void) setScrollingEnabled:(BOOL)enabled;
430 - (void) setShowBackgroundShadow:(BOOL)show;
431 @end
432
433 @interface UISearchBar (Apple)
434 - (UITextField *) searchField;
435 @end
436
437 @interface UITabBarController (Apple)
438 - (UITransitionView *) _transitionView;
439 - (void) concealTabBarSelection;
440 - (void) revealTabBarSelection;
441 @end
442
443 @interface UITabBarItem (Apple)
444 - (void) setAnimatedBadge:(BOOL)animated;
445 - (UIView *) view;
446 @end
447
448 @interface UITableViewCell (Apple)
449 - (float) selectionPercent;
450 - (void) _updateHighlightColorsForView:(id)view highlighted:(BOOL)highlighted;
451 @end
452
453 @interface UITextField (Apple)
454 - (NSObject<UITextInputTraits> *) textInputTraits;
455 @end
456
457 @interface UITextView (Apple)
458 - (UIFont *) font;
459 - (void) setAllowsRubberBanding:(BOOL)rubberbanding;
460 - (void) setFont:(UIFont *)font;
461 - (void) setMarginTop:(int)margin;
462 - (void) setTextColor:(UIColor *)color;
463 @end
464
465 @interface UIView (Apple)
466 - (UIScroller *) _scroller;
467 - (void) setClipsSubviews:(BOOL)clips;
468 - (void) setEnabledGestures:(NSInteger)gestures;
469 - (void) setFixedBackgroundPattern:(BOOL)fixed;
470 - (void) setGestureDelegate:(id)delegate;
471 - (void) setNeedsDisplayOnBoundsChange:(BOOL)needs;
472 - (void) setValue:(NSValue *)value forGestureAttribute:(NSInteger)attribute;
473 - (void) setZoomScale:(float)scale duration:(double)duration;
474 - (void) _setZoomScale:(float)scale duration:(double)duration;
475 - (void) setOrigin:(CGPoint)origin;
476 @end
477
478 @interface UIViewController (Apple)
479 - (void) _updateLayoutForStatusBarAndInterfaceOrientation;
480 - (void) unloadView;
481 @end
482
483 @interface UIWindow (Apple)
484 - (UIResponder *) firstResponder;
485 - (void) makeKey:(UIApplication *)application;
486 - (void) orderFront:(UIApplication *)application;
487 @end
488
489 @interface UIWebView (Apple)
490 - (UIWebDocumentView *) _documentView;
491 - (UIScrollView *) _scrollView;
492 - (UIScroller *) _scroller;
493 - (void) _updateViewSettings;
494 - (void) webView:(WebView *)view addMessageToConsole:(NSDictionary *)message;
495 //- (WebView *) webView:(WebView *)view createWebViewWithRequest:(NSURLRequest *)request;
496 - (void) webView:(WebView *)view decidePolicyForNavigationAction:(NSDictionary *)action request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener;
497 - (void) webView:(WebView *)view decidePolicyForNewWindowAction:(NSDictionary *)action request:(NSURLRequest *)request newFrameName:(NSString *)name decisionListener:(id<WebPolicyDecisionListener>)listener;
498 - (void) webView:(WebView *)view didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame;
499 - (void) webView:(WebView *)view didCommitLoadForFrame:(WebFrame *)frame;
500 - (void) webView:(WebView *)view didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame;
501 - (void) webView:(WebView *)view didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)frame;
502 - (void) webView:(WebView *)view didFinishLoadForFrame:(WebFrame *)frame;
503 - (void) webView:(WebView *)view didReceiveTitle:(id)title forFrame:(id)frame;
504 - (void) webView:(WebView *)view didStartProvisionalLoadForFrame:(WebFrame *)frame;
505 - (void) webView:(WebView *)view resource:(id)identifier didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)source;
506 - (void) webView:(WebView *)view resource:(id)identifier didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)source;
507 - (NSURLRequest *) webView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source;
508 - (NSURLRequest *) webThreadWebView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source;
509 - (void) webView:(WebView *)view runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame;
510 - (BOOL) webView:(WebView *)view runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame;
511 - (NSString *) webView:(WebView *)view runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(NSString *)text initiatedByFrame:(WebFrame *)frame;
512 - (void) webViewClose:(WebView *)view;
513 @end
514 // }}}
515 // @interface Web* (*) {{{
516 @interface WebFrame (Apple)
517 - (void) setNeedsLayout;
518 @end
519
520 @interface WebPreferences (Apple)
521 + (void) _setInitialDefaultTextEncodingToSystemEncoding;
522 - (void) _setLayoutInterval:(NSInteger)interval;
523 - (void) setOfflineWebApplicationCacheEnabled:(BOOL)enabled;
524 @end
525
526 @interface WebView (Apple)
527 - (void) _preferencesChanged:(WebPreferences *)preferences;
528 - (void) _preferencesChangedNotification:(NSNotification *)notification;
529 - (void) _setLayoutInterval:(float)interval;
530 - (void) _setAllowsMessaging:(BOOL)allows;
531 @end
532 // }}}
533
534 // #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER {{{
535 #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
536 #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
537 // XXX: this is a random jumble of garbage
538
539 typedef enum {
540 UIModalPresentationFullScreen,
541 UIModalPresentationPageSheet,
542 UIModalPresentationFormSheet,
543 UIModalPresentationCurrentContext,
544 } UIModalPresentationStyle;
545
546 #define kSCNetworkReachabilityFlagsConnectionOnTraffic kSCNetworkReachabilityFlagsConnectionAutomatic
547
548 #define UIBarStyleBlack UIBarStyleBlackOpaque
549
550 @class NSUndoManager;
551 @class UIPasteboard;
552
553 @interface UIActionSheet (iPad)
554 - (void) showFromBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated;
555 @end
556
557 @interface UIViewController (iPad)
558 - (void) setModalPresentationStyle:(UIModalPresentationStyle)style;
559 @end
560
561 @interface UIApplication (iOS_3_0)
562 @property(nonatomic) BOOL applicationSupportsShakeToEdit;
563 @end
564
565 @interface UIScrollView (iOS_3_0)
566 @property(assign,nonatomic) CGFloat decelerationRate;
567 @end
568
569 @interface UIWebView (iOS_3_0)
570 @property(assign,nonatomic) NSUInteger dataDetectorTypes;
571 @end
572
573 extern CGFloat const UIScrollViewDecelerationRateNormal;
574
575 #endif//AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
576 // }}}
577 // #if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000 {{{
578 #if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000
579
580 #define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5)
581 #define kCFCoreFoundationVersionNumber_iPhoneOS_3_0 478.47
582
583 #endif
584 // }}}
585
586 #ifndef kCFCoreFoundationVersionNumber_iPhoneOS_4_0
587 #define kCFCoreFoundationVersionNumber_iPhoneOS_4_0 550.32
588 #endif
589
590 @interface UITabBarItem (iOS_7_0)
591 - (id) initWithTitle:(NSString *)title image:(UIImage *)image selectedImage:(UIImage *)selectedImage;
592 @end
593
594 @interface UIScreen (iOS_4_0)
595 @property(nonatomic,readonly) CGFloat scale;
596 @end
597
598 @interface DOMHTMLIFrameElement (IDL)
599 - (WebFrame *) contentFrame;
600 @end
601
602 // extern *; {{{
603 extern CFStringRef const kGSDisplayIdentifiersCapability;
604 extern float const UIWebViewGrowsAndShrinksToFitHeight;
605 extern float const UIWebViewScalesToFitScale;
606 extern NSString *WebKitErrorDomain;
607 // }}}
608 // extern "C" *(); {{{
609 extern "C" void *reboot2(uint64_t flags);
610 extern "C" mach_port_t SBSSpringBoardServerPort();
611 extern "C" int SBBundlePathForDisplayIdentifier(mach_port_t port, const char *identifier, char *path);
612 extern "C" NSArray *SBSCopyApplicationDisplayIdentifiers(bool active, bool debuggable);
613 extern "C" NSString *SBSCopyLocalizedApplicationNameForDisplayIdentifier(NSString *);
614 extern "C" NSString *SBSCopyIconImagePathForDisplayIdentifier(NSString *);
615 extern "C" UIImage *_UIImageWithName(NSString *name);
616 extern "C" void UISetColor(CGColorRef color);
617 // }}}
618
619 #endif//CYDIA_UIKITPRIVATE_H