mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 00:18:13 -05:00
55 lines
1.4 KiB
Objective-C
55 lines
1.4 KiB
Objective-C
//
|
|
// ChildBrowserViewController.h
|
|
//
|
|
// Created by Jesse MacFadyen on 21/07/09.
|
|
// Copyright 2009 Nitobi. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@protocol ChildBrowserDelegate<NSObject>
|
|
|
|
|
|
|
|
/*
|
|
* onChildLocationChanging:newLoc
|
|
*
|
|
* Discussion:
|
|
* Invoked when a new page has loaded
|
|
*/
|
|
-(void) onChildLocationChange:(NSString*)newLoc;
|
|
-(void) onOpenInSafari;
|
|
-(void) onClose;
|
|
@end
|
|
|
|
|
|
@interface ChildBrowserViewController : UIViewController < UIWebViewDelegate > {
|
|
IBOutlet UIWebView* webView;
|
|
IBOutlet UIBarButtonItem* closeBtn;
|
|
IBOutlet UIBarButtonItem* refreshBtn;
|
|
IBOutlet UILabel* addressLabel;
|
|
IBOutlet UIBarButtonItem* backBtn;
|
|
IBOutlet UIBarButtonItem* fwdBtn;
|
|
IBOutlet UIBarButtonItem* safariBtn;
|
|
IBOutlet UIActivityIndicatorView* spinner;
|
|
BOOL scaleEnabled;
|
|
BOOL isImage;
|
|
NSString* imageURL;
|
|
NSArray* supportedOrientations;
|
|
id <ChildBrowserDelegate> delegate;
|
|
}
|
|
|
|
@property (nonatomic, retain)id <ChildBrowserDelegate> delegate;
|
|
@property (nonatomic, retain) NSArray* supportedOrientations;
|
|
@property(retain) NSString* imageURL;
|
|
@property(assign) BOOL isImage;
|
|
|
|
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation;
|
|
- (ChildBrowserViewController*)initWithScale:(BOOL)enabled;
|
|
- (IBAction)onDoneButtonPress:(id)sender;
|
|
- (IBAction)onSafariButtonPress:(id)sender;
|
|
- (void)loadURL:(NSString*)url;
|
|
-(void)closeBrowser;
|
|
|
|
@end
|