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