platform/iphone/Classes/WebViewController.h in rhodes-1.4.2 vs platform/iphone/Classes/WebViewController.h in rhodes-1.5.0
- old
+ new
@@ -1,26 +1,26 @@
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "JSString.h"
//#include "SyncEngine.h"
-@interface WebViewController : UIViewController <UIActionSheetDelegate> {
- IBOutlet UINavigationBar* navBar;
- IBOutlet UIToolbar* toolbar;
- IBOutlet UIBarButtonItem* homeBtn;
- IBOutlet UIBarButtonItem* optionsBtn;
- IBOutlet UIBarButtonItem* backBtn;
- //IBOutlet UIBarButtonItem* syncBtn;
- IBOutlet UIBarButtonItem* forwardBtn;
- IBOutlet UILabel* activityInfo;
- IBOutlet UIWebView *webView;
- IBOutlet UIActivityIndicatorView *activity;
- //NSString *viewHomeUrl,*viewOptionsUrl;
-
+@interface WebViewController : UIViewController <UIActionSheetDelegate, UIWebViewDelegate> {
+ UINavigationBar* navBar;
+ UIToolbar* toolbar;
+ UIBarButtonItem* backBtn;
+ UIBarButtonItem* forwardBtn;
+ UIBarButtonItem* homeBtn;
+ UIBarButtonItem* refreshBtn;
+ UIBarButtonItem* optionsBtn;
+ UILabel* activityInfo;
+ UIWebView *webView;
+ UIActivityIndicatorView *activity;
+ //NSString *viewHomeUrl,*viewOptionsUrl;
+
@public
- id actionTarget;
- SEL onShowLog;
+ id actionTarget;
+ SEL onShowLog;
UIWindow *window;
}
//@property (assign) NSString *viewHomeUrl;
//@property (assign) NSString *viewOptionsUrl;
@@ -28,28 +28,26 @@
@property (assign) id actionTarget;
@property (assign) UIToolbar* toolbar;
@property (assign) UIWebView* webView;
@property (assign) SEL onShowLog;
+-(id)initWithParentWindow:(UIWindow*)w;
--(void)loadHTMLString:(NSString*)data;
+-(void)loadData:(NSData*)data mimeType:(NSString*)type;
-(void)showToolbar:(BOOL)show;
+-(void)createNewToolbar:(NSArray*)items;
-(void)navigate:(NSString*)url;
-(void)navigateRedirect:(NSString*)url;
-(void)setActivityInfo:(NSString *)labelText;
--(IBAction)goBack;
-
--(IBAction)goForward;
-
--(IBAction)goHome;
-
--(IBAction)goOptions;
-
--(IBAction)refresh;
+-(void)goBack:(id)sender;
+-(void)goForward:(id)sender;
+-(void)goHome:(id)sender;
+-(void)goOptions:(id)sender;
+-(void)refresh;
-(void)executeJs:(JSString *)js;
-(void)active;