forked from onflapp/gs-webbrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChromeWebView.h
42 lines (31 loc) · 938 Bytes
/
ChromeWebView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef _PCAPPPROJ_CHROMEWEBVIEW_H
#define _PCAPPPROJ_CHROMEWEBVIEW_H
#import <AppKit/AppKit.h>
#import "ExternalWebView.h"
#import "ChromeController.h"
@protocol ChromeWebViewDelegate
- (void) webView:(id)webView didStartLoading:(NSURL*) url;
- (void) webView:(id)webView didFinishLoading:(NSURL*) url;
- (void) webView:(id)webView didChangeTitle:(NSString*) title;
- (void) webView:(id)webView didChangeStatus:(NSString*) title;
@end
@interface ChromeWebView : ExternalWebView {
IBOutlet id delegate;
BOOL ready;
NSURL* initialURL;
NSURL* lastValidURL;
NSString* __jsretval;
CGFloat viewZoom;
NSTimeInterval lastEvent;
}
- (void) setDelegate:(id) del;
- (id) delegate;
- (void) loadURL:(NSURL*) url;
- (NSString*) executeJavaScript:(NSString*) js;
- (void) stopLoading:(id) sender;
- (void) goBack:(id) sender;
- (void) goForward:(id) sender;
- (void) performZoomAction:(id) sender;
- (void) close;
@end
#endif