LuxChat  2.0
Instant messenger for iOS
TOWebViewController.h
1 //
2 // TOWebViewController.h
3 //
4 // Copyright 2013-2015 Timothy Oliver. All rights reserved.
5 //
6 // Features logic designed by Satoshi Asano (ninjinkun) for NJKWebViewProgress,
7 // also licensed under the MIT License. Re-implemented by Timothy Oliver.
8 // https://github.com/ninjinkun/NJKWebViewProgress
9 //
10 // Permission is hereby granted, free of charge, to any person obtaining a copy
11 // of this software and associated documentation files (the "Software"), to
12 // deal in the Software without restriction, including without limitation the
13 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
14 // sell copies of the Software, and to permit persons to whom the Software is
15 // furnished to do so, subject to the following conditions:
16 //
17 // The above copyright notice and this permission notice shall be included in
18 // all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
24 // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
25 // IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 
27 #import <UIKit/UIKit.h>
28 
29 @interface TOWebViewController : UIViewController <UIWebViewDelegate>
30 
38 - (instancetype)initWithURL:(NSURL *)url;
39 
47 - (instancetype)initWithURLString:(NSString *)urlString;
48 
52 @property (nonatomic,strong) NSURL *url;
53 
57 @property (nonatomic,strong) NSMutableURLRequest *urlRequest;
58 
65 @property (nonatomic,readonly) UIWebView *webView;
66 
72 @property (nonatomic,assign) BOOL showLoadingBar;
73 
79 @property (nonatomic,assign) BOOL showUrlWhileLoading;
80 
88 @property (nonatomic,copy) UIColor *loadingBarTintColor;
89 
95 @property (nonatomic,assign) BOOL navigationButtonsHidden;
96 
103 @property (nonatomic,assign) BOOL showActionButton;
104 
110 @property (nonatomic,assign) BOOL showDoneButton;
111 
118 @property (nonatomic,assign) BOOL showPageTitles;
119 
125 @property (nonatomic,assign) BOOL disableContextualPopupMenu;
126 
133 @property (nonatomic,assign) BOOL hideWebViewBoundaries;
134 
139 @property (nonatomic,copy) void (^modalCompletionHandler)(void);
140 
145 @property (nonatomic,copy) BOOL (^shouldStartLoadRequestHandler)(NSURLRequest *request, UIWebViewNavigationType navigationType);
146 
150 @property (nonatomic,strong) UIColor *buttonTintColor;
151 
155 @property (nonatomic,assign) CGFloat buttonBevelOpacity;
156 
157 @end
CGFloat buttonBevelOpacity
Definition: TOWebViewController.h:155
BOOL showLoadingBar
Definition: TOWebViewController.h:72
BOOL navigationButtonsHidden
Definition: TOWebViewController.h:95
BOOL showPageTitles
Definition: TOWebViewController.h:118
BOOL showUrlWhileLoading
Definition: TOWebViewController.h:79
BOOL disableContextualPopupMenu
Definition: TOWebViewController.h:125
NSMutableURLRequest * urlRequest
Definition: TOWebViewController.h:57
UIColor * loadingBarTintColor
Definition: TOWebViewController.h:88
BOOL showDoneButton
Definition: TOWebViewController.h:110
UIColor * buttonTintColor
Definition: TOWebViewController.h:150
NSURL * url
Definition: TOWebViewController.h:52
Definition: TOWebViewController.h:29
BOOL hideWebViewBoundaries
Definition: TOWebViewController.h:133
UIWebView * webView
Definition: TOWebViewController.h:65
void(^ modalCompletionHandler)(void)
BOOL(^ shouldStartLoadRequestHandler)(NSURLRequest *request, UIWebViewNavigationType navigationType)
BOOL showActionButton
Definition: TOWebViewController.h:103