webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
WebHTMLRepresentation.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of Apple Inc. ("Apple") nor the names of
14  * its contributors may be used to endorse or promote products derived
15  * from this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #import <Foundation/Foundation.h>
30 
31 #import <WebKitLegacy/WebDocumentPrivate.h>
32 
34 @class NSView;
35 
36 @class DOMNode;
37 @class DOMElement;
38 
39 @protocol WebDocumentMarkup;
41 @protocol WebDocumentSourceRepresentation;
42 
47 {
49 }
50 
56 
57 #if !TARGET_OS_IPHONE
58 - (NSAttributedString *)attributedStringFrom:(DOMNode *)startNode startOffset:(int)startOffset to:(DOMNode *)endNode endOffset:(int)endOffset;
59 #endif
60 
61 - (DOMElement *)elementWithName:(NSString *)name inForm:(DOMElement *)form;
63 - (BOOL)elementIsPassword:(DOMElement *)element;
64 - (DOMElement *)formForElement:(DOMElement *)element;
66 - (NSArray *)controlsInForm:(DOMElement *)form;
67 - (NSString *)searchForLabels:(NSArray *)labels beforeElement:(DOMElement *)element resultDistance:(NSUInteger*)outDistance resultIsInCellAbove:(BOOL*)outIsInCellAbove;
68 - (NSString *)matchLabels:(NSArray *)labels againstElement:(DOMElement *)element;
69 
70 // Deprecated SPI
71 - (NSString *)searchForLabels:(NSArray *)labels beforeElement:(DOMElement *)element; // Use -searchForLabels:beforeElement:resultDistance:resultIsInCellAbove:
72 
73 @end
BOOL
Definition: PlatformScreenIOS.mm:46
OBJC_CLASS NSView
Definition: TextIndicatorWindow.h:34
NSArray * supportedImageMIMETypes()
Definition: WebHTMLRepresentation.mm:117
NSArray * supportedMediaMIMETypes()
Definition: WebHTMLRepresentation.mm:105
Definition: DOMNode.h:58
NSArray * unsupportedTextMIMETypes()
Definition: WebHTMLRepresentation.mm:123
virtual HRESULT STDMETHODCALLTYPE searchForLabels(__inout_ecount_full(cLabels) BSTR *labels, unsigned cLabels, _In_opt_ IDOMElement *beforeElement, _Out_ unsigned *resultDistance, _Out_ BOOL *resultIsInCellAbove, __deref_opt_out BSTR *result)
Definition: WebHTMLRepresentation.cpp:203
NSArray * supportedMIMETypes()
Definition: WebHTMLRepresentation.mm:97
Definition: WebHTMLRepresentation.mm:73
Definition: DOMElement.h:39
virtual HRESULT STDMETHODCALLTYPE controlsInForm(_In_opt_ IDOMElement *form, __deref_inout_opt IDOMElement **controls, _Out_ int *cControls)
Definition: WebHTMLRepresentation.cpp:186
virtual HRESULT STDMETHODCALLTYPE elementIsPassword(_In_opt_ IDOMElement *, _Out_ BOOL *result)
Definition: WebHTMLRepresentation.cpp:154
virtual HRESULT STDMETHODCALLTYPE formForElement(_In_opt_ IDOMElement *, _COM_Outptr_opt_ IDOMElement **form)
Definition: WebHTMLRepresentation.cpp:164
WebHTMLRepresentationPrivate * _private
Definition: WebHTMLRepresentation.h:49
struct NSString NSString
Definition: WebCoreNSStringExtras.h:35
virtual HRESULT STDMETHODCALLTYPE elementDoesAutoComplete(_In_opt_ IDOMElement *, _Out_ BOOL *result)
Definition: WebHTMLRepresentation.cpp:144
virtual HRESULT STDMETHODCALLTYPE matchLabels(__inout_ecount_full(cLabels) BSTR *labels, int cLabels, _In_opt_ IDOMElement *againstElement, __deref_opt_out BSTR *result)
Definition: WebHTMLRepresentation.cpp:197
OBJC_CLASS NSArray
Definition: DataDetection.h:33
Definition: WebHTMLRepresentation.h:46
OBJC_CLASS NSAttributedString
Definition: DictionaryPopupInfo.h:32
virtual HRESULT STDMETHODCALLTYPE elementWithName(_In_ BSTR name, _In_opt_ IDOMElement *form, _COM_Outptr_opt_ IDOMElement **)
Definition: WebHTMLRepresentation.cpp:133
DOMElement * currentForm()
Definition: WebHTMLRepresentation.mm:322
NSArray * supportedNonImageMIMETypes()
Definition: WebHTMLRepresentation.mm:111