2010-11-13 18:32:43 -05:00
|
|
|
//
|
|
|
|
// OriginalStoryViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 11/13/10.
|
|
|
|
// Copyright 2010 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2011-10-27 09:44:58 -07:00
|
|
|
#import "BaseViewController.h"
|
2015-09-17 13:15:10 -07:00
|
|
|
#import <WebKit/WebKit.h>
|
2010-11-13 18:32:43 -05:00
|
|
|
|
|
|
|
@class NewsBlurAppDelegate;
|
|
|
|
|
2011-10-27 09:44:58 -07:00
|
|
|
@interface OriginalStoryViewController : BaseViewController
|
2015-11-29 18:08:44 -08:00
|
|
|
<UITextFieldDelegate, WKNavigationDelegate, WKUIDelegate,
|
2015-09-17 13:15:10 -07:00
|
|
|
UIGestureRecognizerDelegate> {
|
2010-11-13 18:32:43 -05:00
|
|
|
|
|
|
|
NewsBlurAppDelegate *appDelegate;
|
2014-01-08 13:38:18 -08:00
|
|
|
NSString *activeUrl;
|
|
|
|
NSMutableArray *visitedUrls;
|
2015-09-17 13:15:10 -07:00
|
|
|
WKWebView *webView;
|
2014-01-08 13:38:18 -08:00
|
|
|
UIBarButtonItem *backBarButton;
|
2014-02-03 16:59:08 -08:00
|
|
|
UILabel *titleView;
|
2014-03-21 15:27:40 -07:00
|
|
|
UIBarButtonItem *closeButton;
|
2020-03-28 19:39:35 -07:00
|
|
|
UIProgressView *progressView;
|
2014-10-23 16:49:05 -07:00
|
|
|
BOOL finishedLoading;
|
2010-11-13 18:32:43 -05:00
|
|
|
}
|
|
|
|
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
|
2015-09-17 13:15:10 -07:00
|
|
|
@property (nonatomic) IBOutlet WKWebView *webView;
|
2014-10-23 15:15:06 -07:00
|
|
|
//@property (strong, nonatomic) SloppySwiper *swiper;
|
2020-03-28 19:39:35 -07:00
|
|
|
@property (nonatomic) UIProgressView *progressView;
|
2020-01-28 16:10:16 -08:00
|
|
|
@property (nonatomic, strong) NSString *customPageTitle;
|
2010-11-13 18:32:43 -05:00
|
|
|
|
2014-10-23 16:40:49 -07:00
|
|
|
- (void)resetProgressBar;
|
2014-01-16 17:15:29 -08:00
|
|
|
- (void)loadInitialStory;
|
2013-09-07 02:35:47 -05:00
|
|
|
- (IBAction) doOpenActionSheet:(id)sender;
|
2011-08-16 19:55:44 -07:00
|
|
|
- (IBAction)loadAddress:(id)sender;
|
2013-03-04 15:09:09 -08:00
|
|
|
- (IBAction)webViewGoBack:(id)sender;
|
|
|
|
- (IBAction)webViewGoForward:(id)sender;
|
|
|
|
- (IBAction)webViewRefresh:(id)sender;
|
2015-09-17 15:56:09 -07:00
|
|
|
- (void)updateTitle:(WKWebView*)aWebView;
|
2014-03-21 15:27:40 -07:00
|
|
|
- (void)closeOriginalView;
|
2011-07-14 19:57:49 -07:00
|
|
|
|
2010-11-13 18:32:43 -05:00
|
|
|
@end
|