/*
* $Id: BrowserWindowController.h 198 2010-01-06 23:05:30Z stuart $
*
* SafariTabs
* http://stuconnolly.com/projects/safaritabs/
*
* Copyright (c) 2010 Stuart Connolly. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "WindowController.h"
@class BarBackground,
ClosedWebViewHolder,
EtchedStringView,
FavoritesBarView,
LocationFieldEditor,
OldURLCompletionController,
OldWebSearchCompletionController,
PDFLoadingProgressController,
SlidingImageView,
TabBarEnclosureView,
TabBarView,
TextFieldEditor,
ToolbarController,
BrowserTabViewItem;
@interface BrowserWindowController : WindowController
{
FavoritesBarView *favoritesBarView;
NSButton *toggleBookmarksButton;
TabBarView *tabBarView;
TabBarEnclosureView *tabBarEnclosureView;
NSTabView *tabSwitcher;
BarBackground *statusBar;
NSTextField *statusTextField;
ToolbarController *_toolbarController;
LocationFieldEditor *_locationFieldEditor;
TextFieldEditor *_searchFieldEditor;
EtchedStringView *_statusStringView;
OldURLCompletionController *_URLCompletionController;
OldWebSearchCompletionController *_searchCompletionController;
NSMenu *_dynamicBackMenu;
NSMenu *_dynamicForwardMenu;
BOOL _isLoading;
BOOL _temporaryLocationBar;
BOOL _editedLocationField;
BOOL _editedLocationFieldWhileLoading;
BOOL _focusedLocationFieldWhileLoading;
BOOL _tabBarHiddenByJavaScript;
BOOL _readyToUpdateKeyboardLoop;
NSMutableDictionary *_viewFramesForResizing;
BOOL _favoritesBarShowing;
BOOL _tabBarShowing;
BOOL _statusBarShowing;
BOOL _acceptsGenericIcon;
NSString *_statusText;
BOOL _clearStatus;
BOOL _ellipsizeStatus;
NSString *_newStatus;
BOOL _stopAndReloadButtonWillStop;
BOOL _stopAndReloadButtonIsForTopSites;
BOOL _tabBarInTransition;
BOOL _tabBarShownForTabDrag;
BOOL _confirmUnsubmittedFormText;
BOOL _isAutoFilling;
BOOL _hideToolbarOnEndSheet;
BOOL _keepTabBarHiddenWhenCreatingTab;
NSTabView *_tabSwitcherForGoBack;
NSTabView *_tabSwitcherForGoForward;
BrowserTabViewItem *_deselectedTab;
NSUInteger _coalescedUpdateMask;
BOOL _performingCoalescedUpdates;
NSUInteger _postponedToolbarUpdateMask;
BOOL _postponeToolbarUpdates;
BOOL _RSSTransitionSlowMotion;
SlidingImageView *_RSSTransitionImageView;
NSTimer *_RSSTransitionTimer;
double _RSSTransitionStartTime;
double _RSSTransitionDuration;
BOOL _RSSTransitionInProgress;
BOOL _startRSSAnimationAfterFirstLayout;
ClosedWebViewHolder *_closedWebViewHolder;
NSTimer *_springToFrontTimer;
NSTimer *_setStatusMessageTimer;
PDFLoadingProgressController *_pdfLoadingProgressController;
}
+ (void)reopen;
+ (NSInteger)windowPolicyFromCurrentEvent;
+ (NSInteger)windowPolicyFromCurrentEventRequireCommandKey:(BOOL)arg1;
+ (NSInteger)windowPolicyFromCurrentEventRequireCommandKey:(BOOL)arg1 respectTargetedClicksPreference:(BOOL)arg2;
+ (NSInteger)windowPolicyFromCurrentEventRespectingKeyEquivalents:(BOOL)arg1;
+ (NSInteger)windowPolicyFromEventModifierFlags:(NSUInteger)arg1 isMiddleMouseButton:(BOOL)arg2;
+ (NSInteger)windowPolicyFromEventModifierFlags:(NSUInteger)arg1 isMiddleMouseButton:(BOOL)arg2 requireCommandKey:(BOOL)arg3 respectTargetedClicksPreference:(BOOL)arg4;
+ (NSInteger)windowPolicyFromEventModifierFlags:(NSUInteger)arg1 requireCommandKey:(BOOL)arg2;
+ (NSInteger)windowPolicyFromEventModifierFlags:(NSUInteger)arg1 requireCommandKey:(BOOL)arg2 respectTargetedClicksPreference:(BOOL)arg3;
- (id)_localSearchStringFromWebSearchString:(id)arg1;
- (void)_safari_windowDidEndLiveResize;
- (void)_searchForStringWithoutUpdatingRecentSearches:(id)arg1;
- (void)_tellAppControllerWindowWillClose;
- (BOOL)acceptsGenericIcon;
- (void)addBookmark:(id)arg1;
- (struct _NSRect)adjustedFrameForCascade:(struct _NSRect)arg1 fromWindow:(id)arg2;
- (struct _NSRect)adjustedFrameForSaving:(struct _NSRect)arg1;
- (BOOL)allowBookmarksChanges;
- (BOOL)anyToolbarsVisible;
- (void)autoFill:(id)arg1;
- (id)bookmarkTitleForLocationTextField:(id)arg1;
- (void)browserWebView:(id)arg1 willMoveToWindow:(id)arg2;
- (void)browserWindow:(id)arg1 shouldGoToURL:(id)arg2;
- (id)browserWindowTitleBarURL:(id)arg1;
- (BOOL)canCloseSelectedTab;
- (BOOL)canCreateNewTab;
- (BOOL)canReloadAllTabs;
- (BOOL)canReloadObeyingLocationField;
- (BOOL)canReloadTab:(id)arg1;
- (BOOL)canShowInputFields;
- (BOOL)canShowTopSitesWall;
- (void)cancel:(id)arg1;
- (void)cancelUpdateTabTitlesSoon;
- (void)changeTextEncoding:(id)arg1;
- (void)closeCurrentTab:(id)arg1;
- (void)closeInactiveTabs:(id)arg1;
- (BOOL)closeKeyEquivalentClosesTab;
- (void)closeOtherTabs:(id)arg1;
- (void)closeOtherTabsFromMenu:(id)arg1;
- (void)closeTab:(id)arg1;
- (void)closeTabFromMenu:(id)arg1;
- (void)closeTabOrWindow:(id)arg1;
- (BOOL)control:(id)arg1 textView:(id)arg2 doCommandBySelector:(SEL)arg3;
- (void)controlTextDidChange:(id)arg1;
- (void)controlTextDidEndEditing:(id)arg1;
- (id)createInactiveTab;
- (id)createInactiveTabWithFrameName:(id)arg1;
- (id)createTab;
- (id)createTabWithFrameName:(id)arg1;
- (id)createTabWithFrameName:(id)arg1 andShow:(BOOL)arg2 addToRightSide:(BOOL)arg3;
- (id)createTabWithWebView:(id)arg1 andShow:(BOOL)arg2 addToRightSide:(BOOL)arg3;
- (void)createWebClip:(id)arg1;
- (id)currentWebView;
- (void)dealloc;
- (struct _NSRect)defaultFrame;
- (void)deleteBookmark:(id)arg1;
- (void)didSelectTabViewItem;
- (void)doCommandBySelector:(SEL)arg1;
- (id)dynamicBackMenu;
- (id)dynamicForwardMenu;
- (void)editAddressOfFavorite:(id)arg1;
- (void)editContentsOfFavorite:(id)arg1;
- (void)editTitleOfBookmarksCollection:(id)arg1;
- (void)editTitleOfFavorite:(id)arg1;
- (id)favoritesBarView;
- (void)firstResponderMightHaveChanged;
- (void)goBack:(id)arg1;
- (void)goBackAndFlashToolbarButton:(id)arg1;
- (void)goBackOrForwardFromSegmentedControl:(id)arg1;
- (void)goForward:(id)arg1;
- (void)goForwardAndFlashToolbarButton:(id)arg1;
- (void)goHome:(id)arg1;
- (void)goToToolbarLocation:(id)arg1;
- (void)insertInOrderedTabViewItems:(id)arg1;
- (void)insertInOrderedTabViewItems:(id)arg1 atIndex:(NSUInteger)arg2;
- (BOOL)isAutoFilling;
- (BOOL)isAvailableForForcedLocationUsingWindowPolicy:(NSInteger)arg1;
- (BOOL)isFavoritesBarVisible;
- (BOOL)isLocationBarVisible;
- (BOOL)isStatusBarVisible;
- (BOOL)isTabBarVisible;
- (id)locationField;
- (BOOL)locationTextField:(id)arg1 mouseDownInRSSButton:(id)arg2;
- (void)locationTextField:(id)arg1 mouseUpInEVCertificateButton:(id)arg2;
- (void)locationTextField:(id)arg1 mouseUpInRSSButton:(id)arg2;
- (void)locationTextField:(id)arg1 mouseUpInStopReloadButton:(id)arg2;
- (void)locationTextFieldPerformEVCertificateButtonAction:(id)arg1;
- (void)locationTextFieldPerformRSSButtonAction:(id)arg1;
- (void)locationTextFieldPerformStopReloadButtonAction:(id)arg1;
- (void)locationTextFieldURLDropped:(id)arg1;
- (void)mainDocumentDidFirstVisuallyNonEmptyLayout;
- (BOOL)menuHasKeyEquivalent:(id)arg1 forEvent:(id)arg2 target:(id *)arg3 action:(SEL *)arg4;
- (void)menuNeedsUpdate:(id)arg1;
- (NSUInteger)morphingDragImage:(id)arg1 draggingEntered:(id)arg2;
- (void)morphingDragImage:(id)arg1 draggingExited:(id)arg2;
- (NSUInteger)morphingDragImage:(id)arg1 draggingUpdated:(id)arg2;
- (void)morphingDragImage:(id)arg1 enteredWindow:(id)arg2;
- (void)morphingDragImage:(id)arg1 exitedWindow:(id)arg2;
- (BOOL)morphingDragImage:(id)arg1 performDragOperation:(id)arg2;
- (void)moveCurrentTabToNewWindow:(id)arg1;
- (void)moveTabFromOtherWindow:(id)arg1 toIndex:(NSUInteger)arg2 andShow:(BOOL)arg3;
- (void)moveTabToNewWindowFromMenu:(id)arg1;
- (void)newBookmarkFolder:(id)arg1;
- (void)newTab:(id)arg1;
- (void)noResponderFor:(SEL)arg1;
- (NSUInteger)numberOfNonDisposableTabs;
- (id)orderedTabViewItems;
- (id)orderedTabs;
- (void)performQuickSearch:(id)arg1;
- (void)printFromToolbar:(id)arg1;
- (void)reloadAllTabs:(id)arg1;
- (void)reloadObeyingLocationField:(id)arg1;
- (void)reloadTabFromMenu:(id)arg1;
- (void)reloadTabsMatchingURLs:(id)arg1;
- (void)removeFromOrderedTabViewItemsAtIndex:(NSUInteger)arg1;
- (void)replaceEmptyTabWithTabs:(id)arg1;
- (void)replaceInOrderedTabViewItems:(id)arg1 atIndex:(NSUInteger)arg2;
- (void)replaceTabURLs:(id)arg1 usingTabLabels:(id)arg2 allowGoBack:(BOOL)arg3;
- (void)reportBugToApple:(id)arg1;
- (void)revealFavorite:(id)arg1;
- (BOOL)searchField:(id)arg1 shouldRememberSearchString:(id)arg2;
- (BOOL)searchField:(id)arg1 trackSearchButtonForEvent:(id)arg2 inRect:(struct _NSRect)arg3;
- (void)searchForString:(id)arg1;
- (void)searchProviderConfirmationDidEnd:(id)arg1 returnCode:(NSInteger)arg2 contextInfo:(void *)arg3;
- (void)selectLocationField:(id)arg1;
- (void)selectNextTab:(id)arg1;
- (void)selectPreviousTab:(id)arg1;
- (void)selectSearchField:(id)arg1;
- (void)selectTab:(id)arg1;
- (id)selectedTab;
- (NSUInteger)selectedTabIndex;
- (void)setAcceptsGenericIcon:(BOOL)arg1;
- (void)setDocument:(id)arg1;
- (void)setFavoritesBarVisible:(BOOL)arg1;
- (void)setLocationBarVisible:(BOOL)arg1;
- (void)setSearchFieldText:(id)arg1;
- (void)setStatusBarVisible:(BOOL)arg1;
- (void)setTabBarVisible:(BOOL)arg1;
- (void)setToolbarsVisible:(BOOL)arg1;
- (BOOL)shouldCloseDocument;
- (void)showBookmarksView:(id)arg1;
- (void)showHistoryInBookmarksView:(id)arg1;
- (void)showTopSitesWall:(id)arg1;
- (void)showWindow:(id)arg1;
- (void)stopLoading:(id)arg1;
- (void)stopOrReload:(id)arg1;
- (void)swipeWithEvent:(id)arg1;
- (CGFloat)tabBarHeight;
- (id)tabBarView;
- (void)tabBarViewDidRearrangeTabsWithOldSelectedTabIndex:(NSUInteger)arg1;
- (id)tabsWithUnsubmittedFormText;
- (void)toggleFavoritesBar:(id)arg1;
- (void)toggleLocationBar:(id)arg1;
- (void)toggleShowBookmarks:(id)arg1;
- (void)toggleStatusBar:(id)arg1;
- (void)toggleTabBar:(id)arg1;
- (BOOL)toolbarInputFieldsIncludeSearchField;
- (void)updateTabLabelForWebView:(id)arg1;
- (void)updateTabTitlesSoon;
- (BOOL)validateMenuItem:(id)arg1;
- (BOOL)validateUserInterfaceItem:(id)arg1;
- (void)webFrame:(id)arg1 willPerformClientRedirectToURL:(id)arg2;
- (void)webFrameLoadCommitted:(id)arg1;
- (void)webFrameLoadFinished:(id)arg1 withError:(id)arg2;
- (void)webFrameLoadStarted:(id)arg1;
- (void)webViewBannerHasChanged:(id)arg1;
- (void)webViewBlockedFromKeyViewLoopHasChanged:(id)arg1;
- (void)webViewFormEditedStatusHasChanged:(id)arg1;
- (void)webViewLoadingStatusHasChanged:(id)arg1;
- (void)webViewLocationFieldIconHasChanged:(id)arg1;
- (void)webViewLocationFieldURLHasChanged:(id)arg1;
- (void)webViewMainDocumentDidFirstLayout:(id)arg1;
- (void)webViewMainDocumentHasLoaded:(id)arg1;
- (void)webViewNameHasChanged:(id)arg1;
- (void)webViewProgressValueHasChanged:(id)arg1;
- (void)webViewReloadabilityHasChanged:(id)arg1;
- (void)webViewSheetRequestStatusHasChanged:(id)arg1;
- (void)webViewStatusMessageHasChanged:(id)arg1;
- (void)willSelectTabViewItem;
- (void)willShowCustomizeToolbarSheet;
- (BOOL)window:(id)arg1 willHandleKeyEvent:(id)arg2;
- (BOOL)window:(id)arg1 willHandleMouseDownEvent:(id)arg2;
- (struct _NSRect)window:(id)arg1 willPositionSheet:(id)arg2 usingRect:(struct _NSRect)arg3;
- (void)windowDidBecomeKey:(id)arg1;
- (void)windowDidBecomeMain:(id)arg1;
- (void)windowDidDeminiaturize:(id)arg1;
- (void)windowDidEndSheet:(id)arg1;
- (void)windowDidLoad;
- (void)windowDidMiniaturize:(id)arg1;
- (void)windowDidMove:(id)arg1;
- (void)windowDidResignKey:(id)arg1;
- (void)windowDidResignMain:(id)arg1;
- (void)windowDidResize:(id)arg1;
- (id)windowForSheet;
- (id)windowNibName;
- (BOOL)windowShouldClose:(id)arg1;
- (void)windowTitleNeedsUpdate;
- (void)windowWillClose:(id)arg1;
- (void)windowWillLoad;
- (struct _NSSize)windowWillResize:(id)arg1 toSize:(struct _NSSize)arg2;
- (id)windowWillReturnFieldEditor:(id)arg1 toObject:(id)arg2;
- (struct _NSRect)windowWillUseStandardFrame:(id)arg1 defaultFrame:(struct _NSRect)arg2;
- (void)zoomIn:(id)arg1;
- (void)zoomInOrOutFromSegmentedControl:(id)arg1;
- (void)zoomOut:(id)arg1;
- (void)zoomToStandardSize:(id)arg1;
@end