webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
WebFrame.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003, 2004, 2005, 2007 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>
31 
32 @class DOMDocument;
33 @class DOMHTMLElement;
34 @class JSContext;
35 @class NSURLRequest;
36 @class WebArchive;
37 @class WebDataSource;
38 @class WebFramePrivate;
39 @class WebFrameView;
40 @class WebScriptObject;
41 @class WebView;
42 
48 @interface WebFrame : NSObject
49 {
50 @package
51  WebFramePrivate *_private;
52 }
53 
64 - (instancetype)initWithName:(NSString *)name webFrameView:(WebFrameView *)view webView:(WebView *)webView;
65 
70 @property (nonatomic, readonly, copy) NSString *name;
71 
76 @property (nonatomic, readonly, strong) WebView *webView;
77 
82 @property (nonatomic, readonly, strong) WebFrameView *frameView;
83 
89 @property (nonatomic, readonly, strong) DOMDocument *DOMDocument;
90 
97 @property (nonatomic, readonly, strong) DOMHTMLElement *frameElement;
98 
103 - (void)loadRequest:(NSURLRequest *)request;
104 
112 - (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)encodingName baseURL:(NSURL *)URL;
113 
119 - (void)loadHTMLString:(NSString *)string baseURL:(NSURL *)URL;
120 
134 - (void)loadAlternateHTMLString:(NSString *)string baseURL:(NSURL *)baseURL forUnreachableURL:(NSURL *)unreachableURL;
135 
141 - (void)loadArchive:(WebArchive *)archive;
142 
149 @property (nonatomic, readonly, strong) WebDataSource *dataSource;
150 
158 @property (nonatomic, readonly, strong) WebDataSource *provisionalDataSource;
159 
165 - (void)stopLoading;
166 
171 - (void)reload;
172 
178 
190 - (WebFrame *)findFrameNamed:(NSString *)name;
191 
196 @property (nonatomic, readonly, strong) WebFrame *parentFrame;
197 
203 @property (nonatomic, readonly, copy) NSArray *childFrames;
204 
209 @property (nonatomic, readonly, strong) WebScriptObject *windowObject;
210 
217 
218 #if JSC_OBJC_API_ENABLED
219 
224 @property (nonatomic, readonly, strong) JSContext *javaScriptContext;
225 #endif // JSC_OBJC_API_ENABLED
226 
227 @end
WebScriptObject * windowObject
Definition: WebFrame.h:209
OBJC_CLASS WebView
Definition: BackForwardList.h:34
WebDataSource * provisionalDataSource
Definition: WebFrame.h:158
struct OpaqueJSContext * JSGlobalContextRef
Definition: JSBase.h:46
Definition: WebFrame.h:48
Definition: WebArchive.h:47
WebFrame * parentFrame
Definition: WebFrame.h:196
Definition: WebFrameView.h:47
OBJC_CLASS NSURL
Definition: WebCoreSystemInterface.h:108
void reload()
Definition: WebFrame.mm:2540
void reloadFromOrigin()
Definition: WebFrame.mm:2545
NSArray * childFrames
Definition: WebFrame.h:203
void
Definition: AVFoundationCFSoftLinking.h:81
Definition: interfaces.idl:200
Definition: DOMDocument.h:57
void stopLoading()
Definition: WebFrame.mm:2533
Definition: WebScriptObject.h:222
struct NSString NSString
Definition: WebCoreNSStringExtras.h:35
EGLImageKHR EGLint * name
Definition: eglext.h:851
Definition: WebView.h:127
OBJC_CLASS NSURLRequest
Definition: ResourceRequest.h:32
WebView * webView
Definition: WebFrame.h:76
OBJC_CLASS NSArray
Definition: DataDetection.h:33
DOMHTMLElement * frameElement
Definition: WebFrame.h:97
Definition: WebDataSource.h:47
Definition: WebFrame.mm:185
Definition: DOMHTMLElement.h:32
OBJC_CLASS NSData
Definition: WebCoreSystemInterface.h:96
JSGlobalContextRef globalContext
Definition: WebFrame.h:216
Definition: Internals.idl:28
WebDataSource * dataSource
Definition: WebFrame.h:149
WebFrameView * frameView
Definition: WebFrame.h:82