summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-02-15 01:38:42 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2017-02-15 01:38:42 -0800
commit63755c48fd5fe4f31775e0f38857314879b93f39 (patch)
treec3018c82893e52b80a40b0795ee47001d3318da4 /CyteKit
parent09e03d2385c301e68025da688831f50dd2e3734d (diff)
Move more of sysroot's sadness into iPhonePrivate.
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/IndirectDelegate.h2
-rw-r--r--CyteKit/TabBarController.h1
-rw-r--r--CyteKit/TabBarController.mm2
-rw-r--r--CyteKit/TableViewCell.h2
-rw-r--r--CyteKit/TableViewCell.mm2
-rw-r--r--CyteKit/ViewController.h2
-rw-r--r--CyteKit/ViewController.mm4
-rw-r--r--CyteKit/WebScriptObject-Cyte.h2
-rw-r--r--CyteKit/WebScriptObject-Cyte.mm4
-rw-r--r--CyteKit/WebView.h11
-rw-r--r--CyteKit/WebView.mm2
-rw-r--r--CyteKit/WebViewController.mm23
-rw-r--r--CyteKit/WebViewTableViewCell.mm3
-rw-r--r--CyteKit/dispatchEvent.mm8
-rw-r--r--CyteKit/stringWithUTF8Bytes.mm2
15 files changed, 34 insertions, 36 deletions
diff --git a/CyteKit/IndirectDelegate.h b/CyteKit/IndirectDelegate.h
index 42bbd0a..ae698cb 100644
--- a/CyteKit/IndirectDelegate.h
+++ b/CyteKit/IndirectDelegate.h
@@ -22,6 +22,8 @@
#ifndef CyteKit_IndirectDelegate_H
#define CyteKit_IndirectDelegate_H
+#include <Foundation/Foundation.h>
+
@interface IndirectDelegate : NSObject {
_transient volatile id delegate_;
}
diff --git a/CyteKit/TabBarController.h b/CyteKit/TabBarController.h
index cea17d2..2849b4b 100644
--- a/CyteKit/TabBarController.h
+++ b/CyteKit/TabBarController.h
@@ -22,7 +22,6 @@
#ifndef CyteKit_TabBarController_H
#define CyteKit_TabBarController_H
-#include <CyteKit/UCPlatform.h>
#include <CyteKit/ViewController.h>
#include <UIKit/UIKit.h>
diff --git a/CyteKit/TabBarController.mm b/CyteKit/TabBarController.mm
index bb3d98b..27a8000 100644
--- a/CyteKit/TabBarController.mm
+++ b/CyteKit/TabBarController.mm
@@ -19,6 +19,8 @@
**/
/* }}} */
+#include "CyteKit/UCPlatform.h"
+
#include "CyteKit/TabBarController.h"
#include "iPhonePrivate.h"
diff --git a/CyteKit/TableViewCell.h b/CyteKit/TableViewCell.h
index 46333aa..f97a592 100644
--- a/CyteKit/TableViewCell.h
+++ b/CyteKit/TableViewCell.h
@@ -22,8 +22,6 @@
#ifndef CyteKit_TableViewCell_H
#define CyteKit_TableViewCell_H
-#include <CyteKit/UCPlatform.h>
-
#include <UIKit/UIKit.h>
#include <Menes/ObjectHandle.h>
diff --git a/CyteKit/TableViewCell.mm b/CyteKit/TableViewCell.mm
index b4c4a4c..ce61ad5 100644
--- a/CyteKit/TableViewCell.mm
+++ b/CyteKit/TableViewCell.mm
@@ -19,6 +19,8 @@
**/
/* }}} */
+#include "CyteKit/UCPlatform.h"
+
#include "CyteKit/TableViewCell.h"
#include "iPhonePrivate.h"
diff --git a/CyteKit/ViewController.h b/CyteKit/ViewController.h
index 7cc550e..f724837 100644
--- a/CyteKit/ViewController.h
+++ b/CyteKit/ViewController.h
@@ -22,8 +22,6 @@
#ifndef CyteKit_ViewController_H
#define CyteKit_ViewController_H
-#include <CyteKit/UCPlatform.h>
-
#include <UIKit/UIKit.h>
#include <Menes/ObjectHandle.h>
diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm
index ae7539c..3bf9c41 100644
--- a/CyteKit/ViewController.mm
+++ b/CyteKit/ViewController.mm
@@ -19,11 +19,13 @@
**/
/* }}} */
-#include "CyteKit/ViewController.h"
+#include "CyteKit/UCPlatform.h"
#include <Foundation/Foundation.h>
#include <UIKit/UIKit.h>
+#include "CyteKit/ViewController.h"
+
#include "iPhonePrivate.h"
@implementation UIViewController (Cydia)
diff --git a/CyteKit/WebScriptObject-Cyte.h b/CyteKit/WebScriptObject-Cyte.h
index a7ffa29..6a394bc 100644
--- a/CyteKit/WebScriptObject-Cyte.h
+++ b/CyteKit/WebScriptObject-Cyte.h
@@ -22,7 +22,7 @@
#ifndef CyteKit_WebScriptObject_Cyte_H
#define CyteKit_WebScriptObject_Cyte_H
-#include <WebKit/WebScriptObject.h>
+#include "iPhonePrivate.h"
@interface WebScriptObject (Cyte)
- (NSUInteger) count;
diff --git a/CyteKit/WebScriptObject-Cyte.mm b/CyteKit/WebScriptObject-Cyte.mm
index df1bfca..7fa851d 100644
--- a/CyteKit/WebScriptObject-Cyte.mm
+++ b/CyteKit/WebScriptObject-Cyte.mm
@@ -19,8 +19,12 @@
**/
/* }}} */
+#include "CyteKit/UCPlatform.h"
+
#include "CyteKit/WebScriptObject-Cyte.h"
+#include "iPhonePrivate.h"
+
@implementation WebScriptObject (Cyte)
- (NSUInteger) count {
diff --git a/CyteKit/WebView.h b/CyteKit/WebView.h
index 02fce72..ddf4391 100644
--- a/CyteKit/WebView.h
+++ b/CyteKit/WebView.h
@@ -24,13 +24,12 @@
#include <UIKit/UIKit.h>
-#include <WebKit/DOMNodeList.h>
-#include <WebKit/WebFrame.h>
-#include <WebKit/WebPolicyDelegate.h>
-#include <WebKit/WebScriptObject.h>
-#include <WebKit/WebView.h>
+@protocol WebPolicyDecisionListener;
-#include <JavaScriptCore/JavaScriptCore.h>
+@class WebDataSource;
+@class WebFrame;
+@class WebScriptObject;
+@class WebView;
enum CYWebPolicyDecision {
CYWebPolicyDecisionUnknown,
diff --git a/CyteKit/WebView.mm b/CyteKit/WebView.mm
index 09bb4c7..38f6a4f 100644
--- a/CyteKit/WebView.mm
+++ b/CyteKit/WebView.mm
@@ -19,6 +19,8 @@
**/
/* }}} */
+#include "CyteKit/UCPlatform.h"
+
#include "CyteKit/dispatchEvent.h"
#include "CyteKit/WebView.h"
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 6692c6c..18b40d9 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -1,15 +1,13 @@
#include "CyteKit/UCPlatform.h"
-#include "CyteKit/WebViewController.h"
-
-#include "CyteKit/MFMailComposeViewController-MailToURL.h"
-
-#include "iPhonePrivate.h"
#include "CyteKit/IndirectDelegate.h"
#include "CyteKit/Localize.h"
-#include "CyteKit/WebViewController.h"
+#include "CyteKit/MFMailComposeViewController-MailToURL.h"
#include "CyteKit/RegEx.hpp"
#include "CyteKit/WebThreadLocked.hpp"
+#include "CyteKit/WebViewController.h"
+
+#include "iPhonePrivate.h"
//#include <QuartzCore/CALayer.h>
// XXX: fix the minimum requirement
@@ -17,15 +15,6 @@ extern NSString * const kCAFilterNearest;
#include <WebCore/WebCoreThread.h>
-#import <WebKit/WebKitErrors.h>
-#import <WebKit/WebPreferences.h>
-
-#include <WebKit/DOMCSSPrimitiveValue.h>
-#include <WebKit/DOMCSSStyleDeclaration.h>
-#include <WebKit/DOMDocument.h>
-#include <WebKit/DOMHTMLBodyElement.h>
-#include <WebKit/DOMRGBColor.h>
-
#include <dlfcn.h>
#include <objc/runtime.h>
@@ -683,7 +672,7 @@ float CYScrollViewDecelerationRateNormal;
[alert addTextFieldWithValue:@"" label:UCLocalize("PASSWORD")];
UITextField *username([alert textFieldAtIndex:0]); {
- UITextInputTraits *traits([username textInputTraits]);
+ NSObject<UITextInputTraits> *traits([username textInputTraits]);
[traits setAutocapitalizationType:UITextAutocapitalizationTypeNone];
[traits setAutocorrectionType:UITextAutocorrectionTypeNo];
[traits setKeyboardType:UIKeyboardTypeASCIICapable];
@@ -691,7 +680,7 @@ float CYScrollViewDecelerationRateNormal;
}
UITextField *password([alert textFieldAtIndex:1]); {
- UITextInputTraits *traits([password textInputTraits]);
+ NSObject<UITextInputTraits> *traits([password textInputTraits]);
[traits setAutocapitalizationType:UITextAutocapitalizationTypeNone];
[traits setAutocorrectionType:UITextAutocorrectionTypeNo];
[traits setKeyboardType:UIKeyboardTypeASCIICapable];
diff --git a/CyteKit/WebViewTableViewCell.mm b/CyteKit/WebViewTableViewCell.mm
index ebba58a..3756a0f 100644
--- a/CyteKit/WebViewTableViewCell.mm
+++ b/CyteKit/WebViewTableViewCell.mm
@@ -19,7 +19,10 @@
**/
/* }}} */
+#include "CyteKit/UCPlatform.h"
+
#include "CyteKit/WebViewTableViewCell.h"
+
#include "iPhonePrivate.h"
@implementation CyteWebViewTableViewCell
diff --git a/CyteKit/dispatchEvent.mm b/CyteKit/dispatchEvent.mm
index 9efe1cb..f36be8c 100644
--- a/CyteKit/dispatchEvent.mm
+++ b/CyteKit/dispatchEvent.mm
@@ -19,15 +19,11 @@
**/
/* }}} */
+#include "CyteKit/UCPlatform.h"
+
#include "CyteKit/dispatchEvent.h"
#include "CyteKit/WebThreadLocked.hpp"
-#include <WebCore/WebEvent.h>
-
-#include <WebKit/WebFrame.h>
-#include <WebKit/WebScriptObject.h>
-#include <WebKit/WebView.h>
-
#include "Substrate.hpp"
@implementation UIWebDocumentView (CyteDispatchEvent)
diff --git a/CyteKit/stringWithUTF8Bytes.mm b/CyteKit/stringWithUTF8Bytes.mm
index 94fe1ed..2e94dd4 100644
--- a/CyteKit/stringWithUTF8Bytes.mm
+++ b/CyteKit/stringWithUTF8Bytes.mm
@@ -19,6 +19,8 @@
**/
/* }}} */
+#include "CyteKit/UCPlatform.h"
+
#include "CyteKit/stringWithUTF8Bytes.h"
@implementation NSString (Cyte)