summaryrefslogtreecommitdiff
path: root/CyteKit/WebViewController.mm
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/WebViewController.mm
parent09e03d2385c301e68025da688831f50dd2e3734d (diff)
Move more of sysroot's sadness into iPhonePrivate.
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r--CyteKit/WebViewController.mm23
1 files changed, 6 insertions, 17 deletions
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];