dbates@webkit.org | 8261c7e | 2014-12-20 00:17:37 +0000 | [diff] [blame] | 1 | /* |
| 2 | * WebKitSystemInterfaceIOS.h |
| 3 | * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #import <CoreGraphics/CoreGraphics.h> |
| 7 | |
| 8 | #ifdef __OBJC__ |
| 9 | @class UIScreen; |
dbates@webkit.org | 15269dc | 2015-07-03 00:53:10 +0000 | [diff] [blame] | 10 | @class UIViewController; |
dbates@webkit.org | 8261c7e | 2014-12-20 00:17:37 +0000 | [diff] [blame] | 11 | #else |
| 12 | class UIScreen; |
| 13 | #endif |
| 14 | |
| 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif |
| 18 | |
| 19 | bool WKExecutableWasLinkedOnOrAfterIOSVersion(int); |
| 20 | |
| 21 | bool WKIsGB18030ComplianceRequired(void); |
| 22 | |
| 23 | typedef enum { |
| 24 | WKDeviceClassInvalid = -1, |
| 25 | WKDeviceClassiPad, |
| 26 | WKDeviceClassiPhone, |
| 27 | WKDeviceClassiPod, |
| 28 | } WKDeviceClass; |
| 29 | int WKGetDeviceClass(void); |
| 30 | |
| 31 | CFStringRef WKGetUserAgent(void); |
| 32 | CFStringRef WKGetOSNameForUserAgent(void); |
| 33 | CFStringRef WKGetDeviceName(void); |
| 34 | CFStringRef WKGetPlatformNameForNavigator(void); |
| 35 | CFStringRef WKGetVendorNameForNavigator(void); |
| 36 | |
| 37 | CGSize WKGetScreenSize(void); |
| 38 | CGSize WKGetAvailableScreenSize(void); |
| 39 | |
| 40 | float WKGetMinimumZoomFontSize(void); |
| 41 | |
| 42 | float WKGetScreenScaleFactor(void); |
| 43 | float WKGetScaleFactorForScreen(UIScreen *); |
| 44 | |
| 45 | #ifdef __OBJC__ |
| 46 | NSData *WKAXRemoteToken(CFUUIDRef); |
| 47 | void WKAXStoreRemoteConnectionInformation(id, pid_t, mach_port_t, CFUUIDRef); |
| 48 | void WKAXRegisterRemoteApp(void); |
| 49 | #endif |
| 50 | |
| 51 | bool WKIsOptimizedFullscreenSupported(void); |
dbates@webkit.org | 8261c7e | 2014-12-20 00:17:37 +0000 | [diff] [blame] | 52 | |
| 53 | #ifdef __cplusplus |
| 54 | } |
| 55 | #endif |