#import <WebCore/DOM.h>
#if TARGET_OS_IPHONE
#import <WebCore/WebAutocapitalize.h>
#import <CoreText/CoreText.h>
#endif
@interface DOMNode (DOMNodeExtensionsPendingPublic)
#if !TARGET_OS_IPHONE
- (NSImage *)renderedImage;
#endif
- (NSArray *)textRects;
@end
@interface DOMNode (WebPrivate)
+ (id)_nodeFromJSWrapper:(JSObjectRef)jsWrapper;
- (void)getPreviewSnapshotImage:(CGImageRef*)cgImage andRects:(NSArray **)rects;
@end
@interface DOMRGBColor (WebPrivate)
#if !TARGET_OS_IPHONE
- (NSColor *)_color;
#endif
@end
@interface DOMRange (WebPrivate)
- (NSString *)_text;
@end
@interface DOMRange (DOMRangeExtensions)
#if TARGET_OS_IPHONE
- (CGRect)boundingBox;
#else
- (NSRect)boundingBox;
#endif
#if !TARGET_OS_IPHONE
- (NSImage *)renderedImageForcingBlackText:(BOOL)forceBlackText;
#else
- (CGImageRef)renderedImageForcingBlackText:(BOOL)forceBlackText;
#endif
- (NSArray *)lineBoxRects; - (NSArray *)textRects;
@end
@interface DOMElement (WebPrivate)
#if !TARGET_OS_IPHONE
- (NSFont *)_font;
- (NSData *)_imageTIFFRepresentation;
#else
- (CTFontRef)_font;
#endif
- (NSURL *)_getURLAttribute:(NSString *)name;
- (BOOL)isFocused;
@end
@interface DOMCSSStyleDeclaration (WebPrivate)
- (NSString *)_fontSizeDelta;
- (void)_setFontSizeDelta:(NSString *)fontSizeDelta;
@end
@interface DOMHTMLDocument (WebPrivate)
- (DOMDocumentFragment *)_createDocumentFragmentWithMarkupString:(NSString *)markupString baseURLString:(NSString *)baseURLString;
- (DOMDocumentFragment *)_createDocumentFragmentWithText:(NSString *)text;
@end
@interface DOMHTMLTableCellElement (WebPrivate)
- (DOMHTMLTableCellElement *)_cellAbove;
@end
@interface DOMHTMLInputElement (FormAutoFillTransition)
- (BOOL)_isTextField;
#if TARGET_OS_IPHONE
- (BOOL)_isAutofilled;
- (void)_setAutofilled:(BOOL)filled;
#endif
@end
#if TARGET_OS_IPHONE
@interface DOMHTMLInputElement (FormPromptAdditions)
- (BOOL)_isEdited;
@end
@interface DOMHTMLTextAreaElement (FormPromptAdditions)
- (BOOL)_isEdited;
@end
#endif // TARGET_OS_IPHONE
@interface DOMHTMLSelectElement (FormAutoFillTransition)
- (void)_activateItemAtIndex:(int)index;
- (void)_activateItemAtIndex:(int)index allowMultipleSelection:(BOOL)allowMultipleSelection;
@end
#if TARGET_OS_IPHONE
enum { WebMediaQueryOrientationCurrent, WebMediaQueryOrientationPortrait, WebMediaQueryOrientationLandscape };
@interface DOMHTMLLinkElement (WebPrivate)
- (BOOL)_mediaQueryMatchesForOrientation:(int)orientation;
- (BOOL)_mediaQueryMatches;
@end
@interface DOMHTMLInputElement (AutocapitalizeAdditions)
- (WebAutocapitalizeType)_autocapitalizeType;
@end
@interface DOMHTMLTextAreaElement (AutocapitalizeAdditions)
- (WebAutocapitalizeType)_autocapitalizeType;
@end
@interface DOMHTMLInputElement (WebInputChangeEventAdditions)
- (void)setValueWithChangeEvent:(NSString *)newValue;
- (void)setValueAsNumberWithChangeEvent:(double)newValueAsNumber;
@end
#endif // TARGET_OS_IPHONE