dev.stuconnolly.com / svn / safaritabs

  1. /*
  2.  *  $Id: BrowserWebView.h 198 2010-01-06 23:05:30Z stuart $
  3.  *
  4.  *  SafariTabs
  5.  *  http://stuconnolly.com/projects/safaritabs/
  6.  *
  7.  *  Copyright (c) 2010 Stuart Connolly. All rights reserved.
  8.  *
  9.  *  This program is free software: you can redistribute it and/or modify
  10.  *  it under the terms of the GNU General Public License as published by
  11.  *  the Free Software Foundation, either version 3 of the License, or
  12.  *  (at your option) any later version.
  13.  *
  14.  *  This program is distributed in the hope that it will be useful,
  15.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17.  *  GNU General Public License for more details.
  18.  *
  19.  *  You should have received a copy of the GNU General Public License
  20.  *  along with this program. If not, see <http://www.gnu.org/licenses/>.
  21.  */
  22.  
  23. #import "SearchableWebView.h"
  24.  
  25. @class BarBackground,
  26.        BookmarksViewController,
  27.        BrowserDocument,
  28.        FormDelegate,
  29.        LoadProgressMonitor,
  30.        LocationChangeHandler,
  31.        Overlay,
  32.        PageLoad,
  33.        SecurityInfo,
  34.        SheetRequest,
  35.        TopSitesView,
  36.        WebClipBanner,
  37.        WebHistoryItem;
  38.  
  39. @interface BrowserWebView : SearchableWebView
  40. {
  41.     BrowserDocument *_document;
  42.     LoadProgressMonitor *_loadMonitor;
  43.     NSURLRequest *_initialRequest;
  44.     BOOL _shouldStartEmpty;
  45.     WebHistoryItem *_searchResultsForSnapBack;
  46.     BookmarksViewController *bookmarksViewController;
  47.     BarBackground *bookmarksViewContents;
  48.     NSString *_statusText;
  49.     NSString *_progressStatus;
  50.     id _progressStatusOwner;
  51.     BOOL _ellipsizeProgressStatus;
  52.     NSString *_generalStatus;
  53.     id _generalStatusOwner;
  54.     BOOL _ellipsizeGeneralStatus;
  55.     NSString *_userDrivenStatus;
  56.     id _userStatusOwner;
  57.     BOOL _ellipsizeUserStatus;
  58.     NSString *_provisionalOriginalURLString;
  59.     NSString *_originalURLString;
  60.     NSString *_pendingRSSFeedURLString;
  61.     WebHistoryItem *_pendingRSSFeedReferrer;
  62.     NSArray *_counterpartURLsForRSS;
  63.     NSString *_requestedTabLabel;
  64.     NSString *_provisionalTabLabel;
  65.     NSString *_committedTabLabel;
  66.     NSArray *_fallbackURLs;
  67.     LocationChangeHandler *_locationChangeDelegate;
  68.     SheetRequest *_sheetRequest;
  69.     FormDelegate *_formDelegate;
  70.     double _redirectDelay;
  71.     CGFloat _cumulativeMagnifyDelta;
  72.     short _stickyTextMagnifyGestureDirection;
  73.     CGFloat _textSizeMultiplierAtGestureStart;
  74.     BOOL _isLoadingIgnoringQueue;
  75.     BOOL _isLoadingConsideringQueue;
  76.     BOOL _mainDocumentHasLoaded;
  77.     BOOL _mainDocumentDidFirstLayout;
  78.     BOOL _mainDocumentDidFirstVisuallyNonEmptyLayout;
  79.     BOOL _mainFrameLoadEndedInError;
  80.     BOOL _isWindowFocusDisabled;
  81.     BOOL _downloadNextPage;
  82.     NSInteger _cachedPageType;
  83.     NSInteger _oldPageType;
  84.     BOOL _isShowingRSS;
  85.     BOOL _hasDisplayedValidURL;
  86.     BOOL _registeredForNetworkConfigurationChanges;
  87.     BOOL _isMovingToAnotherWindow;
  88.     BOOL _isSwitchingToBackgroundTab;
  89.     BOOL _restoringTabForUndoClose;
  90.     BOOL _blockedFromKeyViewLoop;
  91.     NSURLRequest *_requestWaitingInQueue;
  92.     NSMutableArray *_iPhotoFileWrappers;
  93.     struct ProcessSerialNumber iPhotoPSN;
  94.     BOOL isObservingAppLaunches;
  95.     NSDictionary *_parentalControlledElement;
  96.     TopSitesView *_animatingTopSitesView;
  97.     Overlay *_topSitesZoomToPageFadeOutOverlay;
  98.     NSViewAnimation *_topSitesZoomToPageFadeOutAnimation;
  99.     WebClipBanner *_webClipBanner;
  100.     BOOL _showingSecurityWarningPage;
  101.     BOOL _loadingSecurityWarningPage;
  102.     SecurityInfo *_provisionalSecurityInfo;
  103.     WebHistoryItem *_historyItemForTabCloseUndo;
  104.     PageLoad *_currentPageLoad;
  105. }
  106.  
  107. + (void)closeAllPendingWebViews;
  108. + (void)closeWebViewSoon:(id)arg1;
  109. + (void)initialize;
  110. - (id)URLForNewBookmark;
  111. - (void)_confirmFetchWebpagePreviews:(id)arg1 returnCode:(NSInteger)arg2 contextInfo:(id)arg3;
  112. - (void)_fetchSnapshots;
  113. - (BOOL)_handleErrorPageLink:(id)arg1 fromFrame:(id)arg2;
  114. - (BOOL)_performSpecialReloadActions;
  115. - (void)_promptToFetchRecentHistoryPreviews;
  116. - (BOOL)_runJavaScriptPanelWithMessage:(id)arg1 initiatedByFrame:(id)arg2 hasCancelButton:(BOOL)arg3 allowAppTermination:(BOOL)arg4;
  117. - (void)animationDidEnd:(id)arg1;
  118. - (void)bannerDidInstall:(id)arg1;
  119. - (void)bannerDidUninstall:(id)arg1;
  120. - (void)beginGestureWithEvent:(id)arg1;
  121. - (id)bookmarksViewContents;
  122. - (id)bookmarksViewController;
  123. - (id)browserWindow;
  124. - (BOOL)canMakeTextLarger;
  125. - (BOOL)canMakeTextSmaller;
  126. - (BOOL)canMakeTextStandardSize;
  127. - (BOOL)canReload;
  128. - (BOOL)canResetPageZoom;
  129. - (BOOL)canShowTopSitesWall;
  130. - (BOOL)canSnapBackToSearchResults;
  131. - (BOOL)canZoomIn;
  132. - (BOOL)canZoomOut;
  133. - (BOOL)canZoomPageIn;
  134. - (BOOL)canZoomPageOut;
  135. - (BOOL)canZoomToStandardSize;
  136. - (void)cancelPendingRedirect;
  137. - (void)clearAllStatus;
  138. - (void)clearFallbackURLs;
  139. - (void)clearPageCache;
  140. - (void)clearSearchResultsForSnapBack;
  141. - (void)close;
  142. - (void)commitProvisionalSecurityInfo;
  143. - (id)committedTabLabel;
  144. - (BOOL)containsEditedForm;
  145. - (id)counterpartURLsForRSS;
  146. - (BOOL)currentPageIsSearchable;
  147. - (id)currentPageLoad;
  148. - (id)currentTitle;
  149. - (id)currentTopSitesView;
  150. - (id)currentURL;
  151. - (void)currentURLHasChanged;
  152. - (void)dataSourceHasChanged:(id)arg1 forFrame:(id)arg2;
  153. - (void)dealloc;
  154. - (void)didMoveToDocument:(id)arg1;
  155. - (void)didReopenWithUndo;
  156. - (BOOL)disallowCachingSnapshot;
  157. - (BOOL)disallowCachingText;
  158. - (void)displayInitialContents;
  159. - (id)displayName;
  160. - (id)document;
  161. - (NSUInteger)draggingUpdated:(id)arg1;
  162. - (BOOL)ellipsizeStatusMessage;
  163. - (id)expectedOrCurrentOriginalURLString;
  164. - (id)expectedOrCurrentURL;
  165. - (id)failedOrCurrentURL;
  166. - (id)fallbackURLs;
  167. - (struct CGImage *)generateSnapshot;
  168. - (void)goBack:(id)arg1;
  169. - (void)goForward:(id)arg1;
  170. - (void)goNowIfInQueue;
  171. - (void)goToNextFallbackURL;
  172. - (void)goToRequest:(id)arg1 withTabLabel:(id)arg2 allowJavaScript:(BOOL)arg3 waitInQueue:(BOOL)arg4;
  173. - (void)goToURL:(id)arg1;
  174. - (BOOL)hasInitialContents;
  175. - (void)hideBookmarks;
  176. - (void)hideSecurityWarningPage;
  177. - (void)hideWebClipBannerAllowingAnimation:(BOOL)arg1;
  178. - (id)initWithDocument:(id)arg1 request:(id)arg2 frameName:(id)arg3;
  179. - (BOOL)isBlockedFromKeyViewLoop;
  180. - (BOOL)isDisplayingCompleteNonRSSPage;
  181. - (BOOL)isDisplayingNonRSSPage;
  182. - (BOOL)isDisposable;
  183. - (BOOL)isLoading;
  184. - (BOOL)isMovingToAnotherWindow;
  185. - (BOOL)isShowingBookmarks;
  186. - (BOOL)isShowingFullWindowCoverFlow;
  187. - (BOOL)isShowingLoadErrorPage;
  188. - (BOOL)isShowingRSS;
  189. - (BOOL)isShowingSecurePage;
  190. - (BOOL)isShowingSecurityWarningPage;
  191. - (BOOL)isShowingTopSites;
  192. - (BOOL)isShowingTopSitesWall;
  193. - (BOOL)isShowingWebClipBanner;
  194. - (BOOL)isSwitchingToBackgroundTab;
  195. - (BOOL)isWindowFocusDisabled;
  196. - (id)loadMonitor;
  197. - (BOOL)locationFieldShouldDisplayProgressIndicator;
  198. - (id)locationFieldURL;
  199. - (void)locationFieldURLHasChanged;
  200. - (void)magnifyWithEvent:(id)arg1;
  201. - (void)mainDataSourceHasChanged;
  202. - (BOOL)mainDocumentDidFirstLayout;
  203. - (BOOL)mainDocumentDidFirstVisuallyNonEmptyLayout;
  204. - (BOOL)mainDocumentHasLoaded;
  205. - (BOOL)mainFrameLoadEndedInError;
  206. - (BOOL)maintainsInactiveSelection;
  207. - (void)nameHasChanged;
  208. - (void)networkConfigurationDidChange:(id)arg1;
  209. - (void)newBookmarkSheetDidEnd:(BOOL)arg1;
  210. - (void)openPanelDidEnd:(id)arg1 returnCode:(NSInteger)arg2 contextInfo:(void *)arg3;
  211. - (id)originalURLString;
  212. - (void)pageLoadingStatusHasChanged;
  213. - (id)pageName;
  214. - (id)pageNameURL;
  215. - (void)pageTitleHasChanged;
  216. - (id)pendingRSSFeedReferrer;
  217. - (id)pendingRSSFeedURLString;
  218. - (double)pendingRedirectDelay;
  219. - (void)prepareForRSSAnimation;
  220. - (void)progressChanged:(id)arg1;
  221. - (id)proposedBookmarkTitleForElement:(id)arg1;
  222. - (void)provisionalDataSourceLoadDidFail;
  223. - (id)provisionalOriginalURLString;
  224. - (id)provisionalSecurityInfo;
  225. - (id)provisionalTabLabel;
  226. - (id)provisionalURL;
  227. - (void)provisionalURLHasChanged;
  228. - (void)reload:(id)arg1;
  229. - (void)reloadFromOrigin:(id)arg1;
  230. - (void)reportErrorForBadFileWrapper:(id)arg1;
  231. - (id)requestedTabLabel;
  232. - (void)saveFileWrapperToDownloadsFolder:(id)arg1 originatingURL:(id)arg2;
  233. - (id)searchResultsForSnapBack;
  234. - (id)securityInfo;
  235. - (void)securityWarningPageBackButtonPressed;
  236. - (void)securityWarningPageClosePageButtonPressed;
  237. - (void)securityWarningPageIgnoreWarningButtonPressed;
  238. - (void)securityWarningPageLoaded;
  239. - (id)securityWarningPageLocalizedStringsURLString;
  240. - (void)setAcceptsGenericIcon:(BOOL)arg1;
  241. - (void)setBlockedFromKeyViewLoop:(BOOL)arg1;
  242. - (void)setCommittedTabLabel:(id)arg1;
  243. - (void)setCurrentPageLoad:(id)arg1;
  244. - (void)setHoverFeedbackSuspended:(BOOL)arg1;
  245. - (void)setMainDocumentDidFirstLayout:(BOOL)arg1;
  246. - (void)setMainDocumentDidFirstVisuallyNonEmptyLayout:(BOOL)arg1;
  247. - (void)setMainDocumentHasLoaded:(BOOL)arg1;
  248. - (void)setMainFrameLoadEndedInError:(BOOL)arg1;
  249. - (void)setMovingToAnotherWindow:(BOOL)arg1;
  250. - (void)setOriginalURLString:(id)arg1;
  251. - (void)setPendingRSSFeedURLString:(id)arg1 withReferrer:(id)arg2;
  252. - (void)setPendingRedirectDelay:(double)arg1;
  253. - (void)setProvisionalOriginalURLString:(id)arg1;
  254. - (void)setProvisionalSecurityInfo:(id)arg1;
  255. - (void)setProvisionalTabLabel:(id)arg1;
  256. - (void)setRequestedTabLabel:(id)arg1;
  257. - (void)setSearchResultsForSnapBack:(id)arg1;
  258. - (void)setSearchResultsForSnapBackToCurrentPage;
  259. - (void)setSecurityInfo:(id)arg1;
  260. - (void)setSheetRequest:(id)arg1;
  261. - (void)setShouldStartEmpty;
  262. - (void)setStatus:(id)arg1 withPriority:(NSInteger)arg2 ellipsize:(BOOL)arg3 owner:(id)arg4;
  263. - (void)setSwitchingToBackgroundTab:(BOOL)arg1;
  264. - (void)setUpSecurityWarningPage;
  265. - (void)setUpSecurityWarningPageController;
  266. - (void)setWindowFocusDisabled:(BOOL)arg1;
  267. - (void)setZoomMultiplier:(CGFloat)arg1;
  268. - (id)sheetRequest;
  269. - (BOOL)shouldStartEmpty;
  270. - (void)showBookmarks;
  271. - (void)showCertificateSheet:(id)arg1;
  272. - (void)showErrorPageForURL:(id)arg1 withTitle:(id)arg2 message:(id)arg3 errorPageTemplate:(NSInteger)arg4;
  273. - (void)showFindInPageBannerAllowingAnimation:(BOOL)arg1;
  274. - (void)showSecurityWarningPageWithSecurityInfo:(id)arg1;
  275. - (void)showTopSitesWall:(id)arg1;
  276. - (void)showWebClipBannerAllowingAnimation:(BOOL)arg1;
  277. - (void)snapBackTo:(id)arg1;
  278. - (void)snapBackToSearchResults:(id)arg1;
  279. - (id)statusMessage;
  280. - (void)stopLoading:(id)arg1;
  281. - (id)stringByEvaluatingJavaScriptFromString:(id)arg1;
  282. - (id)tabLabel;
  283. - (BOOL)tabShouldDisplayProgressIndicator;
  284. - (id)titleForLocationFieldURL;
  285. - (id)titleForNewBookmark;
  286. - (void)topSitesModeHasChanged;
  287. - (void)topSitesSnapshotFetchingStatusHasChanged;
  288. - (struct TopSitesViewController *)topSitesViewController;
  289. - (void)topSitesViewWillBecomeSubview:(id)arg1;
  290. - (void)topSitesZoomToPageAnimationDidEnd;
  291. - (void)topSitesZoomToPageAnimationWillStart;
  292. - (void)tryDownloadWithMultipleURLs:(id)arg1;
  293. - (void)tryMultipleURLs:(id)arg1;
  294. - (id)undoManagerForWebView:(id)arg1;
  295. - (void)updateCounterpartURLsForRSS;
  296. - (void)updateIcon;
  297. - (void)updateSecurityWarningPageWithSecurityInfo:(id)arg1;
  298. - (BOOL)validateMenuItem:(id)arg1;
  299. - (BOOL)validateUserInterfaceItem:(id)arg1;
  300. - (void)viewDidMoveToWindow;
  301. - (void)viewWillMoveToWindow:(id)arg1;
  302. - (id)webClipBanner;
  303. - (id)webContentView;
  304. - (id)webView:(id)arg1 createWebViewWithRequest:(id)arg2 windowFeatures:(id)arg3;
  305. - (void)webView:(id)arg1 decidePolicyForMIMEType:(id)arg2 request:(id)arg3 frame:(id)arg4 decisionListener:(id)arg5;
  306. - (void)webView:(id)arg1 decidePolicyForNavigationAction:(id)arg2 request:(id)arg3 frame:(id)arg4 decisionListener:(id)arg5;
  307. - (void)webView:(id)arg1 decidePolicyForNewWindowAction:(id)arg2 request:(id)arg3 newFrameName:(id)arg4 decisionListener:(id)arg5;
  308. - (void)webView:(id)arg1 didScrollDocumentInFrameView:(id)arg2;
  309. - (void)webView:(id)arg1 frame:(id)arg2 exceededDatabaseQuotaForSecurityOrigin:(id)arg3 database:(id)arg4;
  310. - (void)webView:(id)arg1 makeFirstResponder:(id)arg2;
  311. - (void)webView:(id)arg1 mouseDidMoveOverElement:(id)arg2 modifierFlags:(NSUInteger)arg3;
  312. - (BOOL)webView:(id)arg1 runBeforeUnloadConfirmPanelWithMessage:(id)arg2 initiatedByFrame:(id)arg3;
  313. - (void)webView:(id)arg1 runJavaScriptAlertPanelWithMessage:(id)arg2 initiatedByFrame:(id)arg3;
  314. - (BOOL)webView:(id)arg1 runJavaScriptConfirmPanelWithMessage:(id)arg2 initiatedByFrame:(id)arg3;
  315. - (id)webView:(id)arg1 runJavaScriptTextInputPanelWithPrompt:(id)arg2 defaultText:(id)arg3 initiatedByFrame:(id)arg4;
  316. - (void)webView:(id)arg1 runOpenPanelForFileButtonWithResultListener:(id)arg2 allowMultipleFiles:(BOOL)arg3;
  317. - (void)webView:(id)arg1 saveFrameView:(id)arg2 showingPanel:(BOOL)arg3;
  318. - (void)webView:(id)arg1 setContentRect:(struct _NSRect)arg2;
  319. - (void)webView:(id)arg1 setFrame:(struct _NSRect)arg2;
  320. - (void)webView:(id)arg1 setResizable:(BOOL)arg2;
  321. - (void)webView:(id)arg1 setStatusBarVisible:(BOOL)arg2;
  322. - (void)webView:(id)arg1 setStatusText:(id)arg2;
  323. - (void)webView:(id)arg1 setToolbarsVisible:(BOOL)arg2;
  324. - (BOOL)webView:(id)arg1 shouldGoToHistoryItem:(id)arg2;
  325. - (void)webView:(id)arg1 unableToImplementPolicyWithError:(id)arg2 frame:(id)arg3;
  326. - (BOOL)webViewAreToolbarsVisible:(id)arg1;
  327. - (void)webViewClose:(id)arg1;
  328. - (struct _NSRect)webViewContentRect:(id)arg1;
  329. - (id)webViewFirstResponder:(id)arg1;
  330. - (void)webViewFocus:(id)arg1;
  331. - (struct _NSRect)webViewFrame:(id)arg1;
  332. - (BOOL)webViewIsResizable:(id)arg1;
  333. - (BOOL)webViewIsStatusBarVisible:(id)arg1;
  334. - (void)webViewRunModal:(id)arg1;
  335. - (BOOL)webViewShouldInterruptJavaScript:(id)arg1;
  336. - (void)webViewShow:(id)arg1;
  337. - (id)webViewStatusText:(id)arg1;
  338. - (void)willCloseWithUndo;
  339. - (id)windowController;
  340. - (void)zoomIn:(id)arg1;
  341. - (CGFloat)zoomMultiplier;
  342. - (void)zoomOut:(id)arg1;
  343. - (void)zoomToStandardSize:(id)arg1;
  344.  
  345. @end
  346.