NewsBlur/clients/ios/Classes/OriginalStoryViewController.h
David Sinclair 6b25a697a7 #1270 (replacing UIWebView with WKWebView)
- Replaced NJKWebViewProgress with a WKWebView-compatible progress bar in the Original view.
2020-03-28 19:39:35 -07:00

46 lines
1.3 KiB
Objective-C

//
// OriginalStoryViewController.h
// NewsBlur
//
// Created by Samuel Clay on 11/13/10.
// Copyright 2010 NewsBlur. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BaseViewController.h"
#import <WebKit/WebKit.h>
@class NewsBlurAppDelegate;
@interface OriginalStoryViewController : BaseViewController
<UITextFieldDelegate, WKNavigationDelegate, WKUIDelegate,
UIGestureRecognizerDelegate> {
NewsBlurAppDelegate *appDelegate;
NSString *activeUrl;
NSMutableArray *visitedUrls;
WKWebView *webView;
UIBarButtonItem *backBarButton;
UILabel *titleView;
UIBarButtonItem *closeButton;
UIProgressView *progressView;
BOOL finishedLoading;
}
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
@property (nonatomic) IBOutlet WKWebView *webView;
//@property (strong, nonatomic) SloppySwiper *swiper;
@property (nonatomic) UIProgressView *progressView;
@property (nonatomic, strong) NSString *customPageTitle;
- (void)resetProgressBar;
- (void)loadInitialStory;
- (IBAction) doOpenActionSheet:(id)sender;
- (IBAction)loadAddress:(id)sender;
- (IBAction)webViewGoBack:(id)sender;
- (IBAction)webViewGoForward:(id)sender;
- (IBAction)webViewRefresh:(id)sender;
- (void)updateTitle:(WKWebView*)aWebView;
- (void)closeOriginalView;
@end