iOS web browser with a focus on security and privacy
1/*
2 * Endless
3 * Copyright (c) 2014-2015 joshua stein <jcs@jcs.org>
4 *
5 * See LICENSE file for redistribution terms.
6 */
7
8#import <UIKit/UIKit.h>
9#import "IASKAppSettingsViewController.h"
10#import "WebViewTab.h"
11#import "WYPopoverController.h"
12
13#define TOOLBAR_HEIGHT 47
14#define TOOLBAR_PADDING 6
15#define TOOLBAR_BUTTON_SIZE 30
16
17@interface WebViewController : UIViewController <UITableViewDelegate, UITextFieldDelegate, UIGestureRecognizerDelegate, UIScrollViewDelegate, IASKSettingsDelegate, WYPopoverControllerDelegate>
18
19@property BOOL toolbarOnBottom;
20@property BOOL darkInterface;
21
22- (void)focusUrlField;
23
24- (NSMutableArray *)webViewTabs;
25- (__strong WebViewTab *)curWebViewTab;
26
27- (UIButton *)settingsButton;
28
29- (void)viewIsVisible;
30- (void)viewIsNoLongerVisible;
31
32- (WebViewTab *)addNewTabForURL:(NSURL *)url;
33- (WebViewTab *)addNewTabForURL:(NSURL *)url forRestoration:(BOOL)restoration withCompletionBlock:(void(^)(BOOL))block;
34- (void)switchToTab:(NSNumber *)tabNumber;
35- (void)removeTab:(NSNumber *)tabNumber andFocusTab:(NSNumber *)toFocus;
36- (void)removeTab:(NSNumber *)tabNumber;
37- (void)removeAllTabs;
38
39- (void)webViewTouched;
40- (void)updateProgress;
41- (void)updateSearchBarDetails;
42- (void)refresh;
43- (void)forceRefresh;
44- (void)dismissPopover;
45- (void)prepareForNewURLFromString:(NSString *)url;
46- (void)showBookmarksForEditing:(BOOL)editing;
47- (void)hideBookmarks;
48
49@end