/*
 *     Generated by class-dump 3.1.2.
 *
 *     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
 */

struct CGColor;

struct CGImage;

struct CGPoint {
    float x;
    float y;
};

struct CGRect {
    struct CGPoint origin;
    struct CGSize size;
};

struct CGSize {
    float width;
    float height;
};

struct _NSRange {
    unsigned int _field1;
    unsigned int _field2;
};

struct _NSZone;

struct _TreeCursor {
    struct _TreeNode *_field1;
    char _field2;
    char _field3;
};

struct _TreeNode;

struct __CFArray;

struct __CFDateFormatter;

struct __CFDictionary;

struct __CFRunLoopObserver;

struct __GSEvent;

struct __GSFont;

typedef struct {
    struct CGRect left;
    struct CGRect middle;
    struct CGRect right;
} CDAnonymousStruct3;

typedef struct {
    CDAnonymousStruct3 top;
    struct {
        struct CGRect _field1;
        struct CGRect _field2;
        struct CGRect _field3;
    } middle;
    struct {
        struct CGRect _field1;
        struct CGRect _field2;
        struct CGRect _field3;
    } bottom;
} CDAnonymousStruct1;

typedef struct {
    int nodes;
    int bytes;
} CDAnonymousStruct2;

/*
 * File: Applications/MobileSafari.app/MobileSafari
 */

@protocol BookmarksSource
- (id)titleStringForContentItem:(id)fp8;
- (id)addressStringForContentItem:(id)fp8;
- (struct CGImage *)imageForContentItem:(id)fp8;
- (id)parentOfContentItem:(id)fp8;
- (BOOL)contentItemCanHaveChildren:(id)fp8;
- (BOOL)contentItemIsEditable:(id)fp8;
- (unsigned int)numberOfChildrenOfContentItem:(id)fp8;
- (id)child:(unsigned int)fp8 ofContentItem:(id)fp12;
- (void)moveChildOfContentItem:(id)fp8 fromIndex:(unsigned int)fp12 toIndex:(unsigned int)fp16;
@end

@protocol BrowserPanel <NSObject>
- (int)panelType;
- (int)panelState;
- (BOOL)allowsRotation;
- (BOOL)pausesPages;
@end

@protocol NSCopying
- (id)copyWithZone:(struct _NSZone *)fp8;
@end

@protocol NSObject
- (BOOL)isEqual:(id)fp8;
- (unsigned int)hash;
- (Class)superclass;
- (Class)class;
- (id)self;
- (struct _NSZone *)zone;
- (id)performSelector:(SEL)fp8;
- (id)performSelector:(SEL)fp8 withObject:(id)fp12;
- (id)performSelector:(SEL)fp8 withObject:(id)fp12 withObject:(id)fp16;
- (BOOL)isProxy;
- (BOOL)isKindOfClass:(Class)fp8;
- (BOOL)isMemberOfClass:(Class)fp8;
- (BOOL)conformsToProtocol:(id)fp8;
- (BOOL)respondsToSelector:(SEL)fp8;
- (id)retain;
- (oneway void)release;
- (id)autorelease;
- (unsigned int)retainCount;
- (id)description;
@end

@protocol WebDocumentRepresentation <NSObject>
- (void)setDataSource:(id)fp8;
- (void)receivedData:(id)fp8 withDataSource:(id)fp12;
- (void)receivedError:(id)fp8 withDataSource:(id)fp12;
- (void)finishedLoadingWithDataSource:(id)fp8;
- (BOOL)canProvideDocumentSource;
- (id)documentSource;
- (id)title;
@end

@protocol WebDocumentView <NSObject>
- (void)setDataSource:(id)fp8;
- (void)dataSourceUpdated:(id)fp8;
- (void)setNeedsLayout:(BOOL)fp8;
- (void)layout;
- (void)viewWillMoveToHostWindow:(id)fp8;
- (void)viewDidMoveToHostWindow;
@end

@interface Application : UIApplication
{
    BrowserController *_controller;
    BOOL _needsToReportLaunchFinished;
    BOOL _isSuspended;
    BOOL _priorityLowered;
    BOOL _finishedLaunching;
    BOOL _suppressSaveStateOnExit;
    BOOL _isHidingBrowserPanelForSuspend;
    float _rotationDegrees;
    PageLoadTestRunner *_purplePLT;
    PageLoadTestRunner *_commandLinePLT;
    NSString *_purpleTestName;
    BOOL _testIsRunning;
}

- (BOOL)handleEvent:(struct __GSEvent *)fp8;
- (BOOL)suspendRemainInMemory;
- (void)_changePriority:(int)fp8;
- (void)applicationWillSuspend;
- (id)nameOfDefaultImageToUpdateAtSuspension;
- (BOOL)_suspendForEventsOnly:(BOOL)fp8;
- (void)_readAppPrefs;
- (void)_resume;
- (void)applicationSuspend:(struct __GSEvent *)fp8;
- (void)applicationResume:(struct __GSEvent *)fp8;
- (void)applicationWillSuspendForEventsOnly;
- (void)applicationDidResumeForEventsOnly;
- (void)applicationOpenURL:(id)fp8;
- (void)setRotationDegrees:(float)fp8;
- (float)rotationDegrees;
- (void)_updateRotation:(int)fp8;
- (void)updateRotation;
- (void)deviceOrientationChanged:(struct __GSEvent *)fp8;
- (void)userDefaultsDidChange:(id)fp8;
- (BOOL)multiThreadingEnabled;
- (void)_applicationWillSuspend;
- (void)applicationDidFinishLaunching:(id)fp8;
- (void)didReceiveMemoryWarning;
- (void)_urgentMemoryExitSavingState:(BOOL)fp8;
- (void)applicationWillTerminate;
- (void)didReceiveUrgentMemoryWarning;
- (BOOL)runTest:(id)fp8 options:(id)fp12;
- (void)startedPurpleTest;
- (void)finishedPurpleTest;
- (BOOL)isTestRunning;
- (id)currrentTestName;
- (BOOL)isCommandLinePLTRunning;
- (void)pageLoadTestRunnerStartedTest:(id)fp8;
- (void)pageLoadTestRunnerFinishedTest:(id)fp8;
- (struct CGColor *)defaultBackgroundColor;
- (void)statusBarMouseUp:(struct __GSEvent *)fp8;
- (id)window;
- (BOOL)isHidingBrowserPanelForSuspend;
- (BOOL)isSuspended;

@end

@interface Application (ScriptingAdditions)
- (id)isLoading;
- (id)isAtEndOfPage;
- (void)scrollDocumentDown;
- (void)stopLoading;
- (id)loadURL:(id)fp8;
- (id)loadURLInNewWindow:(id)fp8;
- (id)activeURL;
- (id)linksOnActivePage;
@end

@interface BrowserController : NSObject <BrowserPanel>
{
    UIWindow *_window;
    UIKeyboard *_keyboard;
    BOOL _isShowingKeyboard;
    TabController *_tabController;
    BrowserButtonBar *_buttonBar;
    int _pushedRunLoops;
    UIView *_contentLayer;
    AddressView *_addressView;
    UICheckeredPatternView *_checkeredPatternView;
    UIScroller *_scrollLayer;
    UIView *_documentView;
    UITransitionView *_browserLayer;
    UIView *_pageView;
    NavigationPrompt *_navigationPrompt;
    UIAlertSheet *_modalAlertSheet;
    UIAlertSheet *_mailComposeViewErrorSheet;
    ConsoleView *_consoleView;
    BannerView *_bannerView;
    BOOL _debuggingEnabled;
    BOOL _isDisplayingConsoleView;
    SEL _scrollToTopDidEndSelector;
    BOOL _isAnimatingAddressView;
    id <BrowserPanel> _browserPanel;
    id <BrowserPanel> _nextBrowserPanel;
    BOOL _isShowingCurrentPanel;
    AddBookmarkController *_addBookmarkController;
    BookmarksController *_bookmarksController;
    NSURL *_bookmarkURLToLoad;
    AuthenticationView *_authenticationView;
    SheetController *_sheetController;
    BrowserMailComposeView *_mailComposeView;
    BOOL _isShowingMailComposeView;
    NSMutableArray *_documentsPendingClose;
    ActionPanel *_actionPanel;
    WebClipPanel *_webClipPanel;
    BOOL _isUserScrolling;
    NSTimer *_gestureCompletionTimer;
    UIView *_rotationBarsView;
    UIView *_rotationStatusBarView;
    struct CGRect _startButtonBarFrame;
    struct CGRect _startRotationStatusBar;
    struct CGRect _rotationRect;
    unsigned int _rotationEdgePin;
    BOOL _orientationTransition;
    struct CGSize _browserStartSize;
    struct CGSize _browserEndSize;
    float _startDegrees;
    float _endDegrees;
    float _startScale;
    float _endScale;
    struct CGPoint _startPosition;
    struct CGPoint _endPosition;
    BOOL _isHandlingGestures;
    BOOL _isAccelerometerDisabled;
    BOOL _isProgressEnabled;
    float _progress;
    BOOL _resourcesLoading;
    BOOL _showingProgressIndicator;
    BOOL _addressViewIsInFixedPosition;
    NSTimer *_hideSpinnerTimer;
    NSTimer *_hideAddressViewTimer;
    double _idleTimerDuration;
    int _currentlyLoadingResourcesCount;
    unsigned int _coalescedUpdateMask;
    NSTimer *_zoomTimer;
    unsigned int _zoomTestCount;
    BOOL _isZoomingIn;
    BOOL _isRunningZoomTest;
    BOOL _isRunningTabExposeTest;
    unsigned int _tabExposeTestLoadCount;
    unsigned int _tabExposeTestIterationsRemaining;
    BOOL _isEditingForms;
    NSString *_currentLocaleIdentifier;
}

+ (id)sharedBrowserController;
+ (void)releaseSharedBrowserController;
+ (struct CGColor *)contentBackgroundColor;
- (BOOL)inPortrait;
- (int)orientation;
- (int)buttonBarSize;
- (void)setCheckerColor:(struct CGColor *)fp8;
- (id)window;
- (void)setupWindowAndViews;
- (void)willSuspend;
- (void)suspendForEventsOnly:(BOOL)fp8;
- (int)nonBlankDocumentCount;
- (BOOL)isAnyPageLoaded;
- (void)resume;
- (void)freeCaches;
- (void)_setIdleTimerDuration:(double)fp8;
- (void)updateIdleTimerDuration;
- (void)dealloc;
- (void)loadURL:(id)fp8 userDriven:(BOOL)fp12;
- (Class)buttonBarClass;
- (void)webView:(id)fp8 runJavaScriptAlertPanelWithMessage:(id)fp12 initiatedByFrame:(id)fp16;
- (BOOL)webView:(id)fp8 runJavaScriptConfirmPanelWithMessage:(id)fp12 initiatedByFrame:(id)fp16;
- (id)webView:(id)fp8 runJavaScriptTextInputPanelWithPrompt:(id)fp12 defaultText:(id)fp16 initiatedByFrame:(id)fp20;
- (BOOL)webViewShouldInterruptJavaScript:(id)fp8;
- (id)documentView;
- (void)setDocumentView:(id)fp8;
- (void)document:(id)fp8 changedView:(id)fp12;
- (id)tabController;
- (struct CGRect)_addressViewFrameScrollerCoords;
- (struct CGRect)_addressViewFrame;
- (void)updateAddressViewFrame;
- (void)updateKeyboardFrame;
- (void)updateButtonBarFrame;
- (struct CGRect)defaultWebLayerFrame;
- (void)_updateWebViewSizeAttributes:(id)fp8;
- (void)updateWebViewSizeAttributes;
- (void)updateCheckeredPatternFrame;
- (void)updateScrollerIndicatorSubrect;
- (void)updateScrollerFrame;
- (void)updateScrollerContentSize;
- (void)updateMailComposeViewFrame;
- (void)view:(id)fp8 didSetFrame:(struct CGRect)fp12 oldFrame:(struct CGRect)fp28;
- (void)view:(id)fp8 didDrawInRect:(struct CGRect)fp12 duration:(double)fp28;
- (void)webView:(id)fp8 didDrawRect:(struct CGRect)fp12;
- (void)webView:(id)fp8 willClickElement:(id)fp12;
- (void)webViewDidClick:(id)fp8;
- (void)webViewWillHideFullScreenPlugInUI:(id)fp8;
- (void)_initSubviews;
- (id)recentSearches;
- (id)recentSearchesMatchingPrefix:(id)fp8;
- (void)addRecentSearch:(id)fp8;
- (void)clearRecentSearches;
- (void)setupWithURL:(id)fp8;
- (void)didReadDefaults;
- (void)updateButtons;
- (void)updateSecurityButton;
- (void)setTileDrawingEnabled:(BOOL)fp8;
- (void)scrollerWillStartDragging:(id)fp8;
- (void)didCompleteGesturesOrScrolling;
- (void)scrollerDidEndDragging:(id)fp8 willSmoothScroll:(BOOL)fp12;
- (void)scrollerWillStartSmoothScrolling:(id)fp8;
- (void)scrollerDidEndSmoothScrolling:(id)fp8;
- (BOOL)isScrolledNearTop;
- (void)scrollerDidScroll:(id)fp8;
- (id)_navigationPrompt;
- (void)_showNavigationPromptWithImage:(struct CGImage *)fp8 title:(id)fp12;
- (void)goBack;
- (void)backFromButtonBar;
- (void)_goForward;
- (void)forwardFromButtonBar;
- (void)goToAddress:(id)fp8 fromAddressView:(id)fp12;
- (void)setProgressEnabled:(BOOL)fp8;
- (void)updateAddress:(BOOL)fp8 forTabDocument:(id)fp12;
- (void)updateTitle:(BOOL)fp8 forTabDocument:(id)fp12;
- (void)updateProgress:(BOOL)fp8 forTabDocument:(id)fp12;
- (void)updateInterface:(BOOL)fp8;
- (id)keyboardSuperview;
- (struct CGRect)frameForDisplayingAddressView:(id)fp8;
- (struct CGRect)frameForAddressViewEditing;
- (void)addressFieldClicked:(id)fp8;
- (void)addressViewDidResignFirstResponder:(id)fp8;
- (id)scrollLayer;
- (id)buttonBar;
- (int)panelType;
- (int)panelState;
- (BOOL)allowsRotation;
- (BOOL)pausesPages;
- (struct CGPoint)defaultKeyboardOrigin;
- (void)_showKeyboardForSheet:(BOOL)fp8;
- (void)_hideKeyboardForSheet:(BOOL)fp8;
- (void)showKeyboard;
- (void)hideKeyboard;
- (void)showKeyboardForSheet;
- (void)hideKeyboardForSheet;
- (void)scrollToTopWithDidEndSelector:(SEL)fp8;
- (void)statusBarPressed;
- (void)scrollDown;
- (BOOL)isAtEndOfPage;
- (id)screenShotContainer;
- (id)snapshotsForTabDocument:(id)fp8;
- (id)tabController:(id)fp8 updateBrowserThumbnailForTabDocument:(id)fp12;
- (id)keyboard;
- (void)animateLayer:(id)fp8 fromPoint:(struct CGPoint)fp12 toPoint:(struct CGPoint)fp20 inLayer:(id)fp28 belowLayer:(id)fp32 currentAnimation:(int)fp36;
- (void)showKeyboard:(BOOL)fp8 atPoint:(struct CGPoint)fp12 inLayer:(id)fp20 belowLayer:(id)fp24 forSheet:(BOOL)fp28;
- (BOOL)isShowingKeyboard;

@end

@interface MobileSafariWindow : UIWindow
{
}

+ (struct CGRect)constrainFrameToScreen:(struct CGRect)fp8;
- (void)handleStatusBarHeightChange;

@end

@interface UIView (SafariGraphicsExtras)
- (void)drawImage:(struct CGImage *)fp8 toRect:(struct CGRect)fp12 alpha:(float)fp28 rotated:(BOOL)fp32;
- (void)drawImage:(struct CGImage *)fp8 toRect:(struct CGRect)fp12 alpha:(float)fp28;
- (void)drawImage:(struct CGImage *)fp8 toRect:(struct CGRect)fp12;
- (void)drawImage:(struct CGImage *)fp8 toRect:(struct CGRect)fp12 rotated:(BOOL)fp28;
@end

@interface NSString (NSStringExtras)
- (id)possibleURLsForUserTypedString;
- (id)bestURLForUserTypedString;
- (id)stringBySubstitutingHTMLEntitiesForAmpersandAndAngleBrackets;
- (BOOL)isSyndicationScheme;
- (BOOL)isSyndicationURLString;
- (BOOL)isFeedURLString;
- (int)compareDomain:(id)fp8;
- (id)canonicalQueryValue;
@end

@interface NSError (TabDocumentExtras)
- (id)failingURL;
@end

@interface NSString (TabDocumentExtras)
- (id)URLScheme;
@end

@interface TabDocument (TabDocumentErrors)
- (id)_failingURLFromError:(id)fp8 andDataSource:(id)fp12;
- (id)_specializedMessageForError:(id)fp8 dataSource:(id)fp12;
- (id)_genericMessageForError:(id)fp8 dataSource:(id)fp12;
- (void)performAction:(int)fp8 forAlert:(id)fp12;
- (id)alert;
- (void)_addAlert:(id)fp8;
- (void)addFormAlertWithTitle:(id)fp8 listener:(id)fp12;
- (void)addAlertWithTitle:(id)fp8;
- (void)addConfirmCallAlertWithURL:(id)fp8;
- (BOOL)_handleCertificateError:(id)fp8 forDataSource:(id)fp12;
- (void)reachabilityManager:(id)fp8 hostname:(id)fp12 isReachable:(BOOL)fp16;
- (void)_setFailedRequest:(id)fp8;
- (void)handleFrameLoadError:(id)fp8 forDataSource:(id)fp12;
- (void)handlePolicyError:(id)fp8 forFrame:(id)fp12;
- (void)handleErrorForMIMEType:(id)fp8;
- (void)clearFailedRequest;
- (void)reloadAfterError;
@end

@interface BookmarksTableDataSource : NSObject
{
    id _contentItem;
    id _delegate;
}

- (void)dealloc;
- (void)setContentItem:(id)fp8;
- (id)contentItem;
- (void)setDelegate:(id)fp8;
- (int)numberOfRowsInTable:(id)fp8;
- (id)table:(id)fp8 cellForRow:(int)fp12 column:(id)fp16;
- (BOOL)table:(id)fp8 canDeleteRow:(int)fp12;
- (BOOL)table:(id)fp8 shouldIndentRow:(int)fp12;
- (BOOL)table:(id)fp8 canSelectRow:(int)fp12;
- (void)table:(id)fp8 deleteRow:(int)fp12;
- (BOOL)table:(id)fp8 showDisclosureForRow:(int)fp12;

@end

@interface BookmarksController : NSObject <BrowserPanel>
{
    UITransitionView *_transitionLayer;
    UIView *_collectionLayer;
    UINavigationBar *_navigationBar;
    UITable *_currentTable;
    UITable *_nextTable;
    BookmarkInfoLayer *_bookmarkInfoLayer;
    FolderPickerSheet *_folderPickerSheet;
    WebBookmark *_currentCollection;
    BookmarksTableDataSource *_currentTableDataSource;
    BookmarksTableDataSource *_nextTableDataSource;
    BOOL _isDismissible;
    BOOL _isVisible;
    int _orientation;
    BOOL _addingBookmarkFolder;
    BOOL _editedFolderIsNew;
    BOOL _restoringPlaceInBookmarks;
    id _delegate;
    int _panelState;
    UIAlertSheet *_deleteRowAlertSheet;
    UIAlertSheet *_clearHistoryAlertSheet;
}

- (id)_createTableWithFrame:(struct CGRect)fp8;
- (id)layer;
- (id)navigationBar;
- (void)_pushNavigationItemWithTitle:(id)fp8;
- (void)_popNavigationItem;
- (void)_setCurrentCollection:(id)fp8;
- (BOOL)_isEditingPanelState:(int)fp8;
- (BOOL)_inEditMode;
- (void)updateNavigationBarButtons;
- (void)navigationBar:(id)fp8 buttonClicked:(int)fp12;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)bookmarksWereReloaded;
- (void)tileInFrame:(struct CGRect)fp8;
- (void)setOrientation:(int)fp8 withFrame:(struct CGRect)fp12;
- (void)dealloc;
- (void)setDelegate:(id)fp8;
- (void)clearSelection;
- (void)setPanelState:(int)fp8;
- (int)_defaultPanelState;
- (void)_prepareForVisible;
- (void)setVisible:(BOOL)fp8;
- (void)_appendBookmark:(id)fp8 toBookmark:(id)fp12;
- (void)cancel;
- (void)close;
- (void)done;
- (void)edit;
- (void)_presentAlertSheet:(id)fp8;
- (void)removeAllHistoryItems;
- (void)_showInfoForBookmark:(id)fp8;
- (void)createNewFolder;
- (BOOL)isDismissible;
- (BOOL)showsBookmarkTables;
- (void)_updateClearHistoryButton;
- (void)bookmarkSourceContentsChanged:(id)fp8;
- (void)_transition:(int)fp8 toContentItem:(id)fp12;
- (void)_savePlaceInBookmarks;
- (void)_restorePlaceInBookmarks;
- (void)_saveStateForCurrentTable:(id)fp8;
- (void)tableSelectionDidChange:(id)fp8;
- (void)transitionViewDidComplete:(id)fp8;
- (void)navigationBar:(id)fp8 poppedItem:(id)fp12;
- (unsigned int)numberOfChildrenForDataSource:(id)fp8;
- (id)titleForItemAtRow:(unsigned int)fp8 inDataSource:(id)fp12;
- (struct CGImage *)imageForItemAtRow:(unsigned int)fp8 inDataSource:(id)fp12;
- (struct CGImage *)selectedImageForItemAtRow:(unsigned int)fp8 inDataSource:(id)fp12;
- (BOOL)shouldShowDisclosureForItemAtRow:(unsigned int)fp8 inDataSource:(id)fp12;
- (BOOL)shouldAllowEditingForItemAtRow:(unsigned int)fp8 inDataSource:(id)fp12;
- (BOOL)shouldIdentItemAtRow:(unsigned int)fp8 inDataSource:(id)fp12;
- (BOOL)shouldAllowSelectionForItemAtRow:(unsigned int)fp8 inDataSource:(id)fp12;
- (void)deleteItemAtRow:(unsigned int)fp8 inDataSource:(id)fp12;
- (BOOL)canDeleteItemAtRow:(unsigned int)fp8 inDataSource:(id)fp12;
- (BOOL)table:(id)fp8 canMoveRow:(int)fp12;
- (void)table:(id)fp8 movedRow:(int)fp12 toRow:(int)fp16;
- (int)table:(id)fp8 moveDestinationForRow:(int)fp12 withSuggestedDestinationRow:(int)fp16;
- (void)alertSheet:(id)fp8 buttonClicked:(int)fp12;
- (int)panelType;
- (int)panelState;
- (BOOL)allowsRotation;
- (BOOL)pausesPages;
- (BOOL)shouldShowButtonBar;
- (void)didHideBrowserPanel;
- (id)folderPickerSuperviewForBookmarkInfoLayer:(id)fp8;
- (void)bookmarkInfoLayer:(id)fp8 willStartEditingField:(int)fp12;
- (void)endEditingFieldForBookmarkInfoLayer:(id)fp8;

@end

@interface BookmarksTable : UITable
{
}

- (BOOL)canSelectRow:(int)fp8;

@end

@interface CollectionNavigationContext : NSObject
{
    struct CGPoint _scrollPoint;
}

- (void)setScrollPoint:(struct CGPoint)fp8;
- (struct CGPoint)scrollPoint;

@end

@interface BookmarkTableCell : UIImageAndTextTableCell
{
    UIImage *_image;
    UIImage *_selectedImage;
}

- (void)dealloc;
- (void)setImage:(id)fp8;
- (void)setSelectedImage:(id)fp8;
- (void)updateHighlightColors;

@end

@interface WebBookmark : NSObject <NSCopying>
{
    WebBookmark *_parent;
    WebBookmarkGroup *_group;
    NSString *_identifier;
    NSString *_UUID;
    int _RSSState;
}

+ (id)bookmarkOfType:(int)fp8;
+ (id)_bookmarkFromDictionaryRepresentation:(id)fp8 topLevelOnly:(BOOL)fp12 onlyAllowGenerationsLargerThan:(id)fp16 withGroup:(id)fp20;
+ (id)bookmarkFromDictionaryRepresentation:(id)fp8 onlyAllowGenerationsLargerThan:(id)fp12 withGroup:(id)fp16;
+ (id)bookmarkFromDictionaryRepresentation:(id)fp8 topLevelOnly:(BOOL)fp12 withGroup:(id)fp16;
- (void)dealloc;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (id)title;
- (void)setTitle:(id)fp8;
- (int)bookmarkType;
- (id)description;
- (id)URLString;
- (void)setURLString:(id)fp8;
- (id)identifier;
- (void)setIdentifier:(id)fp8;
- (id)children;
- (id)rawChildren;
- (unsigned int)numberOfChildren;
- (unsigned int)_numberOfDescendants;
- (void)insertChild:(id)fp8 atIndex:(unsigned int)fp12;
- (void)removeChild:(id)fp8;
- (void)moveChildFromIndex:(unsigned int)fp8 toIndex:(unsigned int)fp12;
- (id)parent;
- (void)_setParent:(id)fp8;
- (void)_setUUID:(id)fp8;
- (id)UUID;
- (BOOL)_hasUUID;
- (id)group;
- (void)_setGroup:(id)fp8;
- (id)initWithIdentifier:(id)fp8 UUID:(id)fp12 group:(id)fp16;
- (id)init;
- (id)initFromDictionaryRepresentation:(id)fp8 topLevelOnly:(BOOL)fp12 withGroup:(id)fp16;
- (id)initFromDictionaryRepresentation:(id)fp8 withGroup:(id)fp12;
- (id)dictionaryRepresentation;
- (BOOL)contentMatches:(id)fp8;
- (int)_RSSBookmarkState;
- (BOOL)_computeIsRSSBookmark;
- (void)_resetRSSBookmarkState;
- (BOOL)isRSSBookmark;

@end

@interface WebBookmarkGroup : NSObject
{
    NSString *_versionString;
    NSString *_file;
    NSString *_generationLimit;
    WebBookmark *_topBookmark;
    NSMutableDictionary *_bookmarksByUUID;
    NSMutableDictionary *_bookmarksByURLString;
    BOOL _notificationsSuppressed;
    BOOL _loading;
}

+ (id)bookmarkGroupWithFile:(id)fp8 generationLimit:(id)fp12;
- (id)initWithFile:(id)fp8 generationLimit:(id)fp12;
- (void)dealloc;
- (id)_keyForURLStringDictionaryForBookmark:(id)fp8;
- (void)_removeBookmarkFromURLStringDictionary:(id)fp8;
- (void)_addBookmarkToURLStringDictionary:(id)fp8;
- (void)_addChildrenOfBookmarkToURLStringDictionary:(id)fp8;
- (id)bookmarksForURLString:(id)fp8;
- (id)bookmarkForUUID:(id)fp8;
- (void)transferUUIDFrom:(id)fp8 to:(id)fp12;
- (void)_addBookmark:(id)fp8;
- (void)_bookmark:(id)fp8 changedUUIDFrom:(id)fp12 to:(id)fp16;
- (void)removeBookmark:(id)fp8;
- (id)versionString;
- (id)topBookmark;
- (void)_sendNotification:(id)fp8 forBookmark:(id)fp12 children:(id)fp16;
- (void)_setTopBookmark:(id)fp8;
- (void)_bookmarkWillChange:(id)fp8;
- (void)_bookmarkDidChange:(id)fp8;
- (void)_bookmarkURLStringWillChange:(id)fp8;
- (void)_bookmarkURLStringDidChange:(id)fp8;
- (void)_bookmarkChild:(id)fp8 wasAddedToParent:(id)fp12;
- (void)_bookmarkChildren:(id)fp8 wereAddedToParent:(id)fp12;
- (void)_bookmarkChild:(id)fp8 wasRemovedFromParent:(id)fp12;
- (void)_bookmarkChildren:(id)fp8 wereRemovedFromParent:(id)fp12;
- (void)_bookmarksWillBeReloaded;
- (void)_bookmarksWereReloaded;
- (id)addNewBookmarkToBookmark:(id)fp8 withTitle:(id)fp12 URLString:(id)fp16 type:(int)fp20;
- (id)insertNewBookmarkAtIndex:(unsigned int)fp8 ofBookmark:(id)fp12 withTitle:(id)fp16 URLString:(id)fp20 type:(int)fp24;
- (id)file;
- (BOOL)_loadBookmarkGroupGuts;
- (BOOL)loadBookmarkGroup;
- (BOOL)_bookmarksForURLStringsDictionaryExists;
- (BOOL)_saveBookmarkGroupGuts;
- (BOOL)saveBookmarkGroup;
- (void)suppressNotifications;
- (void)resumeNotifications;

@end

@interface WebBookmarkLeaf : WebBookmark
{
    NSString *_URLString;
    NSString *_title;
}

- (id)initWithURLString:(id)fp8 title:(id)fp12 group:(id)fp16;
- (id)initFromDictionaryRepresentation:(id)fp8 topLevelOnly:(BOOL)fp12 withGroup:(id)fp16;
- (id)dictionaryRepresentation;
- (void)dealloc;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (id)title;
- (void)setTitle:(id)fp8;
- (int)bookmarkType;
- (id)URLString;
- (void)setURLString:(id)fp8;
- (BOOL)_computeIsRSSBookmark;
- (id)description;

@end

@interface WebBookmarkList : WebBookmark
{
    NSString *_title;
    NSMutableArray *_list;
    BOOL _autoTab;
}

- (id)initWithIdentifier:(id)fp8 UUID:(id)fp12 group:(id)fp16;
- (id)initWithTitle:(id)fp8 group:(id)fp12;
- (id)initFromDictionaryRepresentation:(id)fp8 topLevelOnly:(BOOL)fp12 onlyAllowGenerationsLargerThan:(id)fp16 withGroup:(id)fp20;
- (id)initFromDictionaryRepresentation:(id)fp8 topLevelOnly:(BOOL)fp12 withGroup:(id)fp16;
- (id)dictionaryRepresentation;
- (void)dealloc;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (id)title;
- (void)setTitle:(id)fp8;
- (int)bookmarkType;
- (id)children;
- (id)rawChildren;
- (unsigned int)numberOfChildren;
- (unsigned int)_numberOfDescendants;
- (void)removeChild:(id)fp8;
- (void)moveChildFromIndex:(unsigned int)fp8 toIndex:(unsigned int)fp12;
- (void)insertChild:(id)fp8 atIndex:(unsigned int)fp12;
- (BOOL)automaticallyOpensInTabs;
- (void)setAutomaticallyOpensInTabs:(BOOL)fp8;
- (BOOL)_computeIsRSSBookmark;

@end

@interface WebBookmarkProxy : WebBookmark
{
    NSString *_title;
}

- (id)initWithTitle:(id)fp8 group:(id)fp12;
- (id)initFromDictionaryRepresentation:(id)fp8 topLevelOnly:(BOOL)fp12 withGroup:(id)fp16;
- (void)dealloc;
- (id)dictionaryRepresentation;
- (int)bookmarkType;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (id)title;
- (void)setTitle:(id)fp8;

@end

@interface PageLoadTestLogger : NSObject
{
}

- (void)_printPageLoadStatistics:(id)fp8 forURL:(id)fp12 maxURLLength:(unsigned int)fp16;
- (void)pageLoadTestRunnerFinishedTest:(id)fp8;

@end

@interface PageLoadTestRunner : NSObject
{
    NSObject *delegate;
    PageLoadTestLogger *testLogger;
    PageLoadStatistics *statistics;
    BOOL running;
    NSMutableArray *commands;
    NSMutableArray *pageLoadArray;
    int repetitions;
    unsigned int currentPage;
    int currentRepetition;
    BOOL goingBack;
    int pagesTimed;
    double totalSquareRootsOfTime;
    int cacheClearDirective;
    int profilingDirective;
    int windowType;
    BOOL checkForWorldLeaks;
    double savedDefaultTimeoutInterval;
}

+ (BOOL)shouldPerformAutomatedPageLoadTest;
+ (void)performAutomatedPageLoadTest;
+ (void)addLeakToArray:(id)fp8 count:(int)fp12 name:(id)fp16;
+ (BOOL)closingBrowserWindowsForWorldLeakTest;
+ (id)worldLeaksString;
+ (CDAnonymousStruct2)heapStatistics;
- (void)setTestLogger:(id)fp8;
- (void)setSingleTestURL:(id)fp8;
- (void)runOneCommand;
- (void)runTestCommands:(id)fp8;
- (_Bool)loadTestSuite:(id)fp8;
- (_Bool)loadBundleTestSuiteFile:(id)fp8;
- (_Bool)loadTestSuiteFile:(id)fp8;
- (id)init;
- (id)statistics;
- (void)dealloc;
- (id)delegate;
- (void)setDelegate:(id)fp8;
- (id)pageLoadArray;
- (id)currentPageLoad;
- (BOOL)running;
- (void)clearCacheWithURL:(id)fp8;
- (void)goToPage;
- (void)closeBrowserWindows;
- (BOOL)finishCheckingForWorldLeaks;
- (void)closeBrowserWindowsAndFinishCheckingForWorldLeaks;
- (void)checkForWorldLeaksSoon;
- (BOOL)checkForWorldLeaksNow;
- (void)testDone;
- (void)repetitionDone;
- (void)goBack;
- (void)goToNextPage;
- (void)goToPreviousPage;
- (BOOL)canGoToNextPage;
- (BOOL)canGoToPreviousPage;
- (void)setProfilingDirective:(int)fp8;
- (void)resetPageLoads;
- (void)startTest;
- (void)start;
- (void)startGoBackTest;
- (void)stop;
- (void)addPageLoadTotals:(id)fp8;
- (double)meanTime;
- (double)squareMeanRootTime;
- (void)setCacheClearDirective:(int)fp8;
- (int)cacheClearDirective;
- (void)pageLoadStarted;
- (void)pageLoadDone:(id)fp8;
- (void)pageLoadPossiblyStarted:(id)fp8;
- (void)pageLoadPossiblyDone:(id)fp8;
- (void)setRepetitions:(int)fp8;
- (int)repetitions;
- (int)currentRepetition;
- (CDAnonymousStruct2)heapBefore;
- (CDAnonymousStruct2)heapAfter;
- (CDAnonymousStruct2)heapDelta;
- (void)setCheckForWorldLeaks:(BOOL)fp8;
- (void)shuffle;
- (void)setCurrentPage:(int)fp8;
- (void)setWindowType:(int)fp8;

@end

@interface PageLoad : NSObject
{
    NSURL *URL;
    NSDate *startDate;
    NSDate *endDate;
    PageLoadStatistics *statistics;
    int status;
    CDAnonymousStruct2 heapBefore;
    CDAnonymousStruct2 heapAfter;
}

+ (id)pageLoadWithURL:(id)fp8;
- (id)initWithURL:(id)fp8;
- (void)dealloc;
- (void)clear;
- (id)URL;
- (id)statistics;
- (void)start:(id)fp8;
- (void)finish:(id)fp8 statistics:(id)fp12;
- (int)status;
- (id)statusString;
- (CDAnonymousStruct2)heapBefore;
- (CDAnonymousStruct2)heapAfter;
- (CDAnonymousStruct2)heapDelta;
- (id)description;

@end

@interface PageLoadStatistics : NSObject
{
    unsigned int parseCount;
    unsigned int layoutCount;
    unsigned int forcedLayoutCount;
    unsigned int drawCount;
    unsigned int frameCount;
    double parseDuration;
    double layoutDuration;
    double drawDuration;
    double loadDuration;
}

- (unsigned int)parseCount;
- (unsigned int)layoutCount;
- (unsigned int)forcedLayoutCount;
- (unsigned int)drawCount;
- (unsigned int)frameCount;
- (double)parseDuration;
- (double)layoutDuration;
- (double)drawDuration;
- (double)loadDuration;

@end

@interface DebugUtilities : NSObject
{
    int sampleToolProcessID;
    int sampleToolPtyFD;
    int sharkToolProcessID;
    NSString *sampleToolOutputPath;
    NSString *sharkToolOutputBase;
}

+ (id)sharedDebugUtilities;
- (void)dealloc;
- (void)setSampleToolOutputPath:(id)fp8;
- (BOOL)startSampleToolWithIdentifier:(id)fp8;
- (BOOL)startSampleTool;
- (BOOL)stopSampleTool;
- (void)setSharkToolOutputBase:(id)fp8;
- (BOOL)startSharkToolWithIdentifier:(id)fp8;
- (BOOL)startSharkTool;
- (BOOL)stopSharkTool;

@end

@interface TabLayer : UIView
{
    id _delegate;
    UITextLabel *_tabTitleView;
    UITextLabel *_tabURLView;
    UIPageIndicator *_pageIndicator;
    struct CGImage *_backgroundImage;
    BOOL _backgroundDrawsImage;
    int _notDimmedButton;
    unsigned int _scrollStartDoc;
    unsigned int _documentIndex;
    UIScrollAnimation *_tabScrollAnimation;
    UIScrollAnimation *_tabCloseAnimation2bScroll;
    TabDocument *_tabCloseAnimationDoc;
    UIScrollAnimation *_tabAddNewDocAnimation1Scroll;
    UIAlphaAnimation *_tabAddNewDocAnimation2Alpha;
    TabDocument *_tabAddNewAnimationDoc;
    UIScrollAnimation *_tabScrollRightAnimation;
    UIScrollAnimation *_tabScrollLeftAnimation;
}

+ (struct __GSFont *)_titleFont;
+ (struct __GSFont *)_urlFont;
+ (struct CGColor *)_urlColor;
+ (struct CGColor *)_textEtchColor;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (float)_maxThumbnailHeight;
- (void)setFrame:(struct CGRect)fp8;
- (void)setDelegate:(id)fp8;
- (id)delegate;
- (struct CGRect)_frameForButton:(id)fp8 withIndex:(unsigned int)fp12;
- (void)tile;
- (void)updateDirtyThumbnails;
- (struct CGPoint)scrollerOffsetForDocument:(id)fp8;
- (float)_deltaFromCenteredForDocument:(id)fp8;
- (void)_updateDocumentIndex;
- (unsigned int)documentIndex;
- (void)scrollToDocument:(id)fp8;
- (void)scrollerDidScroll:(id)fp8;
- (void)animateShowCloseButton:(BOOL)fp8;
- (void)scrollerWillStartDragging:(id)fp8;
- (void)scrollerDidEndDragging:(id)fp8;
- (void)_animateScrollTabLayerRight;
- (void)_animateScrollTabLayerLeft;
- (void)animateScrollTabLayer;
- (void)animator:(id)fp8 stopAnimation:(id)fp12 fraction:(float)fp16;
- (void)animationDidStop:(id)fp8 finished:(id)fp12 context:(void *)fp16;
- (void)animateRemoveDocument:(id)fp8;
- (void)animateAddNewTabDocument:(id)fp8;

@end

@interface ThumbnailImageLayer : UIView
{
    NSArray *_snapshots;
    BOOL _drawsAndInvalidatesImage;
}

- (void)dealloc;
- (void)drawRect:(struct CGRect)fp8;
- (void)setSnapshots:(id)fp8;
- (id)snapshots;
- (void)setDrawsAndInvalidatesImage:(BOOL)fp8;

@end

@interface ThumbnailShadowLayer : UIView
{
}

+ (struct CGColor *)_shadowColor;
- (struct CGRect)thumbnailFrame;
- (void)setFrame:(struct CGRect)fp8;
- (void)drawRect:(struct CGRect)fp8;

@end

@interface TabButton : UIView
{
    BOOL _dimmed;
    ThumbnailImageLayer *_thumbnailLayer;
    ThumbnailShadowLayer *_thumbnailShadowLayer;
    UIPushButton *_closeButton;
    BOOL _hasCloseButton;
    struct CGPoint _closeButtonOffset;
    struct CGSize _thumbnailSize;
    id _target;
    SEL _action;
}

+ (id)_closeButtonImage;
+ (id)_closeButtonPressedImage;
- (void)_tile;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)setFrame:(struct CGRect)fp8;
- (void)setCloseButtonOffset:(struct CGPoint)fp8;
- (void)setThumbnailSize:(struct CGSize)fp8;
- (struct CGSize)thumbnailSize;
- (void)setDimmed:(BOOL)fp8;
- (void)setDimAlpha:(float)fp8;
- (id)thumbnailImageLayer;
- (id)viewForDimming;
- (BOOL)dimmed;
- (id)closeButton;
- (void)setTarget:(id)fp8;
- (void)setAction:(SEL)fp8;
- (void)mouseUp:(struct __GSEvent *)fp8;
- (id)thumbnailLayer;
- (void)insertThumbnailLayer;
- (void)setHasCloseButton:(BOOL)fp8;
- (void)setSnapshots:(id)fp8;
- (id)snapshots;

@end

@interface TabController : NSObject <BrowserPanel>
{
    UIImageView *_tabContainerLayer;
    TabLayer *_tabLayer;
    UIView *_contentLayer;
    UIScroller *_tabScrollLayer;
    NSMutableArray *_tabDocuments;
    NSMutableArray *_pendingTabDocuments;
    TabDocument *_activeTabDocument;
    TabDocument *_destinationTabDocument;
    UIScrollAnimation *_tabScrollAnimation;
    id _delegate;
    BOOL _isShowingTabs;
    int _orientation;
    BOOL _needsBackgroundImageReload;
    BOOL _shouldCloseActiveTabDocument;
    struct CGRect _frame;
    NSTimer *_thumbnailUpdateTimer;
}

- (void)_initSubviews;
- (void)_destroySubviews;
- (id)tabLayer;
- (id)tabScrollLayer;
- (id)tabContainerLayer;
- (id)activeTabDocument;
- (void)setActiveTabDocument:(id)fp8;
- (void)tileWithFrame:(struct CGRect)fp8;
- (id)initWithFrame:(struct CGRect)fp8 tabDocument:(id)fp24;
- (void)_setThumbnailUpdateTimer:(id)fp8;
- (void)dealloc;
- (id)tabDocuments;
- (void)setDelegate:(id)fp8;
- (void)addTabDocument:(id)fp8 afterCurrent:(BOOL)fp12;
- (void)_setDestinationTabDocument:(id)fp8;
- (void)addAndSwitchToTabDocument:(id)fp8;
- (void)switchToTabDocument:(id)fp8;
- (void)createAndSwitchToNewBlankTabDocument;
- (void)switchToTabDocument:(id)fp8 inBackground:(BOOL)fp12;
- (void)tabButtonPressedForDocument:(id)fp8;
- (void)updateCurrentTabThumbnail;
- (id)tabDocumentForWebView:(id)fp8;
- (void)_removeTabDocument:(id)fp8;
- (void)closeTabDocument:(id)fp8;
- (id)pendingTabDocument;
- (void)addPendingTabDocument:(id)fp8;
- (void)acceptPendingTabDocument;
- (void)declinePendingTabDocument;
- (void)declineAllPendingTabDocuments;
- (unsigned int)allDocumentCount;
- (id)tabDocumentDisplayingURL:(id)fp8;
- (id)oldestTabDocument;
- (void)tabDocumentDidStartLoading:(id)fp8;
- (void)tabDocument:(id)fp8 didFinishLoadingWithError:(BOOL)fp12;
- (id)updateBrowserThumbnailForTabDocument:(id)fp8;
- (void)tabLayer:(id)fp8 didScrollToTabDocument:(id)fp12;
- (void)switchToCenteredDocumentOnTabLayer;
- (float)maxScreenShotHeightForTabLayer:(id)fp8;
- (void)_setAutoUpdateThumbnails:(BOOL)fp8;
- (void)updateTabThumbnails;
- (BOOL)isShowingTabs;
- (void)_setContentLayer:(id)fp8;
- (void)_updateNewPageButtonState;
- (void)showTabViewAfterView:(id)fp8 andBackgroundBefore:(id)fp12;
- (void)_animateScrollToDocument:(id)fp8;
- (void)hideTabLayer;
- (void)closeActiveTabDocumentAfterShrink;
- (void)tabShrinkAnimationDone;
- (void)tabScrollAnimationDone;
- (void)tabExpandAnimationDone;
- (void)animationDidStop:(id)fp8 finished:(id)fp12;
- (void)animator:(id)fp8 stopAnimation:(id)fp12 fraction:(float)fp16;
- (BOOL)handlesAnimations;
- (int)panelType;
- (int)panelState;
- (BOOL)allowsRotation;
- (BOOL)pausesPages;
- (void)hibernateAllExceptActiveDocuments;
- (void)hibernateLowestRankDocument;
- (void)setPagesPaused:(BOOL)fp8;
- (void)suspend;
- (void)resume;
- (void)saveStateToDisk;
- (BOOL)readStateFromDiskWithURL:(id)fp8;
- (void)_dirtyAllThumbnails;
- (void)setOrientation:(int)fp8 withFrame:(struct CGRect)fp12;
- (id)createNewBlankTabDocument;
- (void)setDefaultThumbnailOnDocument:(id)fp8;
- (BOOL)_canUpdateInterfaceWithTabDocument:(id)fp8;
- (void)tabDocumentDidUpdateTitle:(id)fp8;
- (void)removeBackgroundTabDocument:(id)fp8;
- (void)tabLayer:(id)fp8 removalAnimationDoneForDocument:(id)fp12;
- (void)tabDocumentDidUpdateBackForward:(id)fp8;
- (void)tabDocumentDidUpdateSecurity:(id)fp8;
- (void)tabDocument:(id)fp8 progressChanged:(float)fp12;
- (void)tabDocumentDidUpdateURL:(id)fp8;
- (struct CGImage *)newDocumentThumbnail;
- (void)tabDocumentStartedLoadingResource:(id)fp8;
- (void)tabDocumentStoppedLoadingResource:(id)fp8;
- (void)tabDocumentDidReceiveAuthenticationChallenge:(id)fp8;
- (void)tabDocumentDidCancelAuthenticationChallenge:(id)fp8;
- (void)showAlertForTabDocument:(id)fp8;
- (void)hideAlertForTabDocument:(id)fp8;
- (void)composeEmailWithMailToURL:(id)fp8 forTabDocument:(id)fp12;
- (void)tile;
- (unsigned int)inMemoryDocumentCount;
- (BOOL)clearBackForwardCaches;

@end

@interface TabDocument : NSObject
{
    id _delegate;
    UIView *_documentView;
    UIWebView *_webView;
    TabButton *_tabButton;
    NSTimer *_thumbnailUpdateTimer;
    NSURL *_URL;
    NSArray *_fallbackURLs;
    NSString *_URLString;
    NSString *_userTypedAddress;
    NSString *_startURLString;
    NSURLRequest *_failedRequest;
    NSString *_title;
    BOOL _reloadAfterResume;
    BOOL _reloadingFailedRequest;
    struct CGPoint _scrollPoint;
    float _textSizeMultiplier;
    float _minFontSize;
    BOOL _isBlankDocument;
    BOOL _isPopup;
    BOOL _needsThumbnailUpdate;
    BOOL _autoUpdatesThumbnail;
    BOOL _isBlocked;
    struct CGRect _screenShotFrame;
    BOOL _suspended;
    BOOL _hibernated;
    NSString *_hibernatedTitle;
    BOOL _isStartingLoad;
    BOOL _isLoading;
    BOOL _isSimulatingClick;
    BOOL _loadWasUserDriven;
    BOOL _loadEndedWithError;
    float _estimatedProgress;
    int _resourcesCurrentlyLoadingCount;
    unsigned int _pendingFrameLoadMessages;
    BOOL _canGoBack;
    BOOL _canGoForward;
    NSURL *_backURL;
    NSURL *_forwardURL;
    BOOL _isSecure;
    BOOL _isActive;
    BOOL _isPagePaused;
    BOOL _isClosed;
    struct CGColor *_bodyBackgroundColor;
    double _lastViewedTime;
    unsigned int TEMPORARY_cacheLoadCount;
    SyndicationController *_syndicationController;
    NSMutableArray *_authenticationChallenges;
    NSMutableArray *_alerts;
    PageLoadStatistics *_stats;
    BOOL _isWaitingForLastDraw;
    struct __CFRunLoopObserver *_mainRunLoopDrawObserver;
    struct {
        int version;
        void *info;
        void *retain;
        void *release;
        void *copyDescription;
    } _mainRunLoopDrawObserverContext;
}

- (id)init;
- (void)release;
- (BOOL)_isAnyTestRunning;
- (void)_updateTextSize;
- (void)didReadDefaults;
- (id)_buildVersion;
- (id)_productVersion;
- (id)_bundleVersion;
- (void)_createWebLayer;
- (void)_prepareWebViewRelease;
- (void)dealloc;
- (void)createTabButton;
- (id)initHibernatedDocumentWithTitle:(id)fp8 URL:(id)fp12;
- (void)hibernate;
- (void)unhibernate;
- (BOOL)isHibernated;
- (void)suspend;
- (void)resume;
- (unsigned int)absolutePageRank;
- (void)setPagePaused:(BOOL)fp8;
- (void)updateTabThumbnail;
- (void)setAutoUpdatesThumbnail:(BOOL)fp8;
- (void)setBlankDocument:(BOOL)fp8;
- (BOOL)isBlankDocument;
- (void)setNeedsThumbnailUpdate:(BOOL)fp8;
- (BOOL)needsThumbnailUpdate;
- (id)documentView;
- (void)setDocumentView:(id)fp8;
- (void)setTabButton:(id)fp8;
- (id)tabButton;
- (void)setDelegate:(id)fp8;
- (void)tabButtonPressed;
- (void)makeTabDocumentActive;
- (void)becameActive;
- (void)setActive:(BOOL)fp8;
- (void)closeTabDocument;
- (void)willClose;
- (void)setScreenShotFrame:(struct CGRect)fp8;
- (struct CGRect)screenShotFrame;
- (void)setPopup:(BOOL)fp8;
- (BOOL)isPopup;
- (void)setBlocked;
- (BOOL)isBlocked;
- (struct CGColor *)bodyBackgroundColor;
- (void)_updateBackgroundColor;
- (float)estimatedProgress;
- (void)_setEstimatedProgress:(float)fp8;
- (void)_progressChanged;
- (void)setWebViewVisibleSize:(struct CGSize)fp8 andMinimumSize:(struct CGSize)fp16 orientation:(int)fp24;
- (struct CGPoint)scrollPoint;
- (void)setScrollPoint:(struct CGPoint)fp8;
- (id)URLString;
- (void)_updateURLString;
- (void)_setURL:(id)fp8;
- (id)URL;
- (void)_updateURL;
- (void)_setUserTypedAddress:(id)fp8;
- (void)_setFallbackURLs:(id)fp8;
- (void)_setLoading:(BOOL)fp8 withError:(BOOL)fp12 fromDelegate:(BOOL)fp16;
- (void)_setLoadingFromDelegate:(BOOL)fp8 withError:(BOOL)fp12;
- (void)_setLoading:(BOOL)fp8 withError:(BOOL)fp12;
- (void)setLoading;
- (BOOL)isLoading;
- (id)_titleIncludeLoading:(BOOL)fp8;
- (id)title;
- (id)titleForNewBookmark;
- (void)_setTitle:(id)fp8;
- (void)_loadRequest:(id)fp8 userDriven:(BOOL)fp12;
- (void)loadRequest:(id)fp8 userDriven:(BOOL)fp12;
- (BOOL)URLMayStartLoad:(id)fp8;
- (void)mightLoadURL:(id)fp8;
- (void)didNotLoadURL;
- (void)loadURL:(id)fp8 userDriven:(BOOL)fp12;
- (void)setStartURLString:(id)fp8;
- (void)loadStartURL;
- (void)_tryMultipleURLs:(id)fp8;
- (void)loadUserTypedAddress:(id)fp8;
- (void)loadUserTypedAddress:(id)fp8 force:(BOOL)fp12;
- (void)stopLoading;
- (void)_performWebViewLoadSelector:(SEL)fp8 forceProgress:(BOOL)fp12;
- (void)goBack;
- (void)goForward;
- (void)reload;
- (BOOL)pluginsAreRunning;
- (void)destroyAllPlugIns;
- (BOOL)clearBackForwardCache;
- (BOOL)loadWasUserDriven;
- (BOOL)canGoBack;
- (BOOL)canGoForward;
- (void)_setBackURL:(id)fp8;
- (void)_setForwardURL:(id)fp8;
- (void)_updateBackForward;
- (BOOL)isSecure;
- (void)_updateSecurity;
- (void)webView:(id)fp8 didStartProvisionalLoadForFrame:(id)fp12;
- (void)webView:(id)fp8 didReceiveServerRedirectForProvisionalLoadForFrame:(id)fp12;
- (void)_PPTDocumentFinishedLoadingNotification:(BOOL)fp8;
- (void)_PPTCheckDidDraw;
- (void)webViewDidDraw:(double)fp8;
- (void)webViewDidDrawDocument;
- (void)_createPageLoadStatistics;
- (void)webView:(id)fp8 didFailProvisionalLoadWithError:(id)fp12 forFrame:(id)fp16;
- (void)webView:(id)fp8 didCommitLoadForFrame:(id)fp12;
- (void)webView:(id)fp8 didParseInFrame:(id)fp12 duration:(double)fp16;
- (void)webView:(id)fp8 didLayoutInFrame:(id)fp12 duration:(double)fp16;
- (void)webView:(id)fp8 didForcedLayoutInFrame:(id)fp12;
- (void)webView:(id)fp8 didReceiveTitle:(id)fp12 forFrame:(id)fp16;
- (id)syndicationController;
- (void)_setupSyndicationLayerForFrame:(id)fp8;
- (void)webView:(id)fp8 didFinishLoadForFrame:(id)fp12;
- (void)webView:(id)fp8 didFailLoadWithError:(id)fp12 forFrame:(id)fp16;
- (void)webView:(id)fp8 didChangeLocationWithinPageForFrame:(id)fp12;
- (void)webView:(id)fp8 willPerformClientRedirectToURL:(id)fp12 delay:(double)fp16 fireDate:(id)fp24 forFrame:(id)fp28;
- (void)webView:(id)fp8 didCancelClientRedirectForFrame:(id)fp12;
- (void)_resourceLoadingStopped;
- (void)webView:(id)fp8 resource:(id)fp12 didFinishLoadingFromDataSource:(id)fp16;
- (void)webView:(id)fp8 resource:(id)fp12 didFailLoadingWithError:(id)fp16 fromDataSource:(id)fp20;
- (id)webView:(id)fp8 identifierForInitialRequest:(id)fp12 fromDataSource:(id)fp16;
- (id)webView:(id)fp8 resource:(id)fp12 willSendRequest:(id)fp16 redirectResponse:(id)fp20 fromDataSource:(id)fp24;
- (void)webView:(id)fp8 resource:(id)fp12 didReceiveAuthenticationChallenge:(id)fp16 fromDataSource:(id)fp20;
- (void)webView:(id)fp8 resource:(id)fp12 didCancelAuthenticationChallenge:(id)fp16 fromDataSource:(id)fp20;
- (void)_ignorePolicyListener:(id)fp8;
- (void)_decidePolicyForAction:(id)fp8 request:(id)fp12 frame:(id)fp16 newFrameName:(id)fp20 decisionListener:(id)fp24;
- (void)webView:(id)fp8 decidePolicyForNavigationAction:(id)fp12 request:(id)fp16 frame:(id)fp20 decisionListener:(id)fp24;
- (void)webView:(id)fp8 decidePolicyForNewWindowAction:(id)fp12 request:(id)fp16 newFrameName:(id)fp20 decisionListener:(id)fp24;
- (void)webView:(id)fp8 decidePolicyForMIMEType:(id)fp12 request:(id)fp16 frame:(id)fp20 decisionListener:(id)fp24;
- (void)webView:(id)fp8 unableToImplementPolicyWithError:(id)fp12 frame:(id)fp16;
- (BOOL)webView:(id)fp8 shouldChangeSelectedDOMRange:(id)fp12 toDOMRange:(id)fp16 affinity:(int)fp20 stillSelecting:(BOOL)fp24;
- (void)webView:(id)fp8 windowScriptObjectAvailable:(id)fp12;
- (id)authenticationChallenge;
- (void)useCredential:(id)fp8 forAuthenticationChallenge:(id)fp12;
- (void)cancelAuthenticationChallenge:(id)fp8;
- (BOOL)isStartingLoad;
- (void)setStartingLoad:(BOOL)fp8;
- (BOOL)isSimulatingClick;
- (void)setSimulatingClick:(BOOL)fp8;
- (double)lastViewedTime;
- (void)setLastViewedTime:(double)fp8;

@end

@interface WebBackForwardList (BrowserExtras)
- (void)clear;
@end

@interface UIWebView (DocumentView)
- (id)URL;
@end

@interface History : NSObject <BookmarksSource>
{
    WebHistory *_webHistory;
    struct __CFDateFormatter *_dateFormatter;
    BOOL _savePending;
    BOOL _isMergedWithSavedHistory;
}

+ (id)historyURL;
+ (struct CGImage *)historyFolderImage;
+ (id)sharedHistory;
- (id)init;
- (void)mergeWithSavedHistoryIfNecessary;
- (id)webHistory;
- (void)removeAllItems;
- (unsigned int)_recentCount;
- (id)_topLevelItems;
- (id)child:(unsigned int)fp8 ofContentItem:(id)fp12;
- (unsigned int)numberOfChildrenOfContentItem:(id)fp8;
- (struct CGImage *)imageForContentItem:(id)fp8;
- (id)addressStringForContentItem:(id)fp8;
- (id)titleStringForContentItem:(id)fp8;
- (id)parentOfContentItem:(id)fp8;
- (BOOL)contentItemCanHaveChildren:(id)fp8;
- (BOOL)contentItemIsEditable:(id)fp8;
- (void)savePendingChanges;
- (void)moveChildOfContentItem:(id)fp8 fromIndex:(unsigned int)fp12 toIndex:(unsigned int)fp16;

@end

@interface History (CopiedFromDesktopSafari)
- (void)_registerForHistoryNotifications;
- (void)receivedEntriesChangedNotification:(id)fp8;
- (id)_displayedTitleForEntry:(id)fp8;
- (id)_stringForCalendarDate:(id)fp8;
@end

@interface Bookmarks : NSObject
{
    WebBookmarkGroup *_bookmarks;
    WebBookmark *_favoritesRoot;
    WebBookmark *_menuRoot;
    WebBookmark *_otherBookmarks;
    WebBookmark *_historyBookmark;
    NSArray *_staticBookmarkDictionaries;
    NSMutableSet *_staticBookmarks;
    NSMutableSet *_deletableStaticBookmarks;
    BOOL _savePending;
    BOOL _bookmarksLoaded;
    BOOL _staticBookmarksOrganized;
    int _syncFile;
}

+ (id)sharedBookmarks;
- (id)init;
- (void)_removeProxiesFromBookmarks;
- (void)_organizeBookmarksForPurple;
- (void)_organizeBookmarksForDesktop;
- (void)loadBookmarks;
- (void)reloadBookmarks;
- (void)_savePendingChanges;
- (BOOL)_savePendingChangesSoon;
- (void)_savePendingChangesNow;
- (BOOL)lockBookmarks;
- (void)saveAndUnlockBookmarks;
- (id)topBookmark;
- (id)bookmarksGroup;
- (id)historyBookmark;
- (id)bookmarksMenuBookmark;
- (id)bookmarksBarBookmark;
- (struct CGImage *)folderImage;
- (struct CGImage *)smallFolderImage;
- (struct CGImage *)bookmarkImage;
- (struct CGImage *)selectedBookmarkImage;
- (id)titleForBookmark:(id)fp8;
- (id)bookmarkSourceForProxyIdentifier:(id)fp8;
- (struct CGImage *)imageForContentItem:(id)fp8 inCollection:(id)fp12;
- (id)parentOfContentItem:(id)fp8 inCollection:(id)fp12;
- (BOOL)contentItemIsEditable:(id)fp8 inCollection:(id)fp12;
- (void)markBookmarkAsStatic:(id)fp8;
- (BOOL)bookmarkIsMarkedStatic:(id)fp8;
- (BOOL)bookmarkIsDeletable:(id)fp8;
- (void)deletedBookmark:(id)fp8;
- (unsigned int)indexForNewRootFolder;
- (id)titleStringForContentItem:(id)fp8 inCollection:(id)fp12;
- (id)addressStringForContentItem:(id)fp8 inCollection:(id)fp12;
- (id)child:(unsigned int)fp8 ofContentItem:(id)fp12 inCollection:(id)fp16;
- (BOOL)contentItemCanHaveChildren:(id)fp8 inCollection:(id)fp12;
- (unsigned int)numberOfChildrenOfContentItem:(id)fp8 inCollection:(id)fp12;
- (void)moveChildOfContentItem:(id)fp8 fromIndex:(unsigned int)fp12 toIndex:(unsigned int)fp16 inCollection:(id)fp20;

@end

@interface Bookmarks (CopiedFromDesktopSafari)
+ (id)_favoritesTitle;
+ (id)_menuRootTitle;
+ (id)historyProxyTitle;
- (BOOL)bookmark:(id)fp8 isFolderTitled:(id)fp12;
- (id)findBookmarkSourceWithStoredTitle:(id)fp8 displayedTitle:(id)fp12;
@end

@interface BookmarkInfoLayer : UIView
{
    id _delegate;
    WebBookmark *_bookmark;
    WebBookmark *_parentBookmark;
    BOOL _isAddingBookmark;
    UITransitionView *_transitionView;
    UIView *_infoView;
    UIPreferencesTable *_table;
    UIPreferencesTextTableCell *_titleCell;
    UIPreferencesTextTableCell *_addressCell;
    UIPreferencesTableCell *_folderCell;
    FolderPickerSheet *_folderPickerSheet;
    UIView *_fieldEditorView;
    UIPreferencesTable *_fieldEditorTable;
    UIPreferencesTextTableCell *_fieldEditorCell;
    int _editingField;
}

+ (id)titleForField:(int)fp8;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)layoutSubviews;
- (void)movedFromSuperview:(id)fp8;
- (void)dealloc;
- (id)_titleCell;
- (id)_addressCell;
- (id)_folderCell;
- (id)bookmark;
- (void)_updateParentFolderCell;
- (void)_updateCellValues;
- (void)setBookmark:(id)fp8;
- (id)parentBookmark;
- (void)setParentBookmark:(id)fp8;
- (void)willShowForAddBookmark:(BOOL)fp8;
- (void)saveChanges;
- (BOOL)canSaveChanges;
- (void)hideFolderPicker;
- (BOOL)isEditingField;
- (void)endEditingField;
- (void)setDelegate:(id)fp8;
- (void)_editField:(int)fp8;
- (void)tableSelectionDidChange:(id)fp8;
- (int)numberOfGroupsInPreferencesTable:(id)fp8;
- (int)preferencesTable:(id)fp8 numberOfRowsInGroup:(int)fp12;
- (id)_standardTextTableCell;
- (id)preferencesTable:(id)fp8 cellForRow:(int)fp12 inGroup:(int)fp16;
- (void)folderPicker:(id)fp8 pickedFolder:(id)fp12;

@end

@interface BookmarkInfoLayer (Internal)
- (void)_showFolderPicker;
- (void)_hideFolderPickerAnimationDidStop:(id)fp8;
- (void)_applicationResumed;
- (void)_endEditingOnReturn;
- (void)_valuesChanged;
@end

@interface URLPrompt : Prompt
{
    NSString *_URLString;
    struct CGSize _URLSize;
    float _maxWidth;
}

+ (struct __GSFont *)_URLFont;
- (void)dealloc;
- (void)drawRect:(struct CGRect)fp8;
- (void)setURLString:(id)fp8;
- (id)URLString;
- (void)setMaxWidth:(float)fp8;
- (void)sizeToFit;

@end

@interface NavigationPrompt : Prompt
{
    struct CGImage *_image;
}

+ (struct CGSize)defaultSize;
- (void)dealloc;
- (void)drawRect:(struct CGRect)fp8;
- (void)setImage:(struct CGImage *)fp8;
- (struct CGImage *)image;

@end

@interface Prompt : SlicedBackgroundLayer
{
    NSString *_title;
    struct CGSize _titleSize;
}

+ (struct __GSFont *)_titleFont;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)setTitle:(id)fp8;
- (id)title;

@end

@interface UIPreferencesTextTableCell (UIKitExtras)
+ (id)standardTextTableCell;
@end

@interface UIView (UIKitExtras)
- (void)fadeToAlpha:(float)fp8 withDuration:(float)fp12;
@end

@interface UITable (UIKitExtras)
+ (id)standardTableWithFrame:(struct CGRect)fp8;
@end

@interface UINavigationBar (UIKitExtras)
+ (id)standardNavigationBar;
+ (id)standardNavigationBarWithTitle:(id)fp8;
- (id)pushNavigationItemWithTitle:(id)fp8;
@end

@interface Settings : NSObject
{
}

+ (id)homePage;
+ (id)settingsDirectoryPath;
+ (id)savedStatePath;

@end

@interface TableRowHeightAnimation : UIAnimation
{
    float _startHeight;
    float _endHeight;
    float _startY;
    float _moveDelta;
    int _cellRow;
}

- (void)setStartHeight:(float)fp8;
- (void)setEndHeight:(float)fp8;
- (void)setMoveDelta:(float)fp8;
- (float)moveDelta;
- (void)setStartY:(float)fp8;
- (void)setCellRow:(int)fp8;
- (void)setProgress:(float)fp8;

@end

@interface SyndicationController : NSObject
{
    UITable *_feedTable;
    SyndicationSummaryLayer *_summaryLayer;
    SyndicationTableDataSource *_syndicationTableDataSource;
    NSString *_title;
    TableRowHeightAnimation *_cellAnimation;
    int _animatingCellRow;
    struct CGRect _endVisibleRect;
}

- (id)initWithFrame:(struct CGRect)fp8 URL:(id)fp24;
- (void)dealloc;
- (void)didFinishLoadWithData:(id)fp8;
- (id)view;
- (id)title;
- (void)animator:(id)fp8 stopAnimation:(id)fp12 fraction:(float)fp16;
- (void)tableSelectionDidChange:(id)fp8;

@end

@interface FeedTable : UITable
{
    unsigned int _performedGesture;
}

- (struct _NSRange)visibleRowsInRect:(struct CGRect)fp8;
- (id)title;
- (id)URL;
- (void)gestureStarted:(struct __GSEvent *)fp8;
- (void)mouseDown:(struct __GSEvent *)fp8;
- (void)mouseUp:(struct __GSEvent *)fp8;

@end

@interface SyndicationTableCell : UITableCell
{
    NSString *_title;
    NSString *_summary;
    NSString *_date;
    NSString *_link;
    float _animationProgress;
    UIWebView *_summaryLayer;
    struct CGRect _summaryRect;
    unsigned int _isExpanded:1;
    unsigned int _isAnimating:1;
}

+ (struct __GSFont *)_font;
+ (float)defaultHeight;
+ (id)summaryMarkupWithString:(id)fp8 date:(id)fp12 link:(id)fp16 width:(int)fp20;
+ (struct CGSize)sizeOfSummaryString:(id)fp8 withWidth:(float)fp12 date:(id)fp16 link:(id)fp20;
+ (float)cellHeightAtRow:(int)fp8 withWidth:(float)fp12 dataSource:(id)fp16 expanded:(BOOL)fp20;
- (id)initWithFrame:(struct CGRect)fp8 title:(id)fp24 summary:(id)fp28 date:(id)fp32 link:(id)fp36;
- (void)dealloc;
- (void)_createSummaryLayerIfNecessary;
- (float)calculateHeight;
- (void)adjustSummaryHeight;
- (void)setIsExpanded:(BOOL)fp8;
- (BOOL)isExpanded;
- (void)setIsAnimating:(BOOL)fp8;
- (BOOL)isAnimating;
- (void)setAnimationProgress:(float)fp8;
- (void)drawBackgroundInRect:(struct CGRect)fp8 withFade:(float)fp24;
- (void)drawTextInRect:(struct CGRect)fp8;
- (void)drawRect:(struct CGRect)fp8;
- (void)setFrame:(struct CGRect)fp8;
- (id)title;
- (id)summary;
- (id)date;
- (id)link;
- (BOOL)webView:(id)fp8 shouldChangeSelectedDOMRange:(id)fp12 toDOMRange:(id)fp16 affinity:(int)fp20 stillSelecting:(BOOL)fp24;
- (void)webView:(id)fp8 decidePolicyForNavigationAction:(id)fp12 request:(id)fp16 frame:(id)fp20 decisionListener:(id)fp24;
- (void)webView:(id)fp8 didFinishLoadForFrame:(id)fp12;

@end

@interface AddBookmarkController : UIView <BrowserPanel>
{
    UINavigationBar *_navigationBar;
    BookmarkInfoLayer *_bookmarkInfoLayer;
}

- (void)_showDefaultNavbarButtons;
- (void)_updateAddButton;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (struct CGRect)_navigationBarFrame;
- (struct CGRect)_infoLayerFrame;
- (void)layoutSubviews;
- (void)setVisible:(BOOL)fp8;
- (void)setNewBookmark:(id)fp8;
- (int)panelType;
- (int)panelState;
- (BOOL)allowsRotation;
- (BOOL)pausesPages;
- (BOOL)shouldShowBrowserPanel;
- (void)didHideBrowserPanel;
- (BOOL)shouldShowButtonBar;
- (void)_add;
- (void)_cancel;
- (void)navigationBar:(id)fp8 buttonClicked:(int)fp12;
- (void)navigationBar:(id)fp8 poppedItem:(id)fp12;
- (id)folderPickerSuperviewForBookmarkInfoLayer:(id)fp8;
- (void)bookmarkInfoLayer:(id)fp8 willStartEditingField:(int)fp12;
- (void)endEditingFieldForBookmarkInfoLayer:(id)fp8;
- (void)valuesChangedInBookmarkInfoLayer:(id)fp8;

@end

@interface FeedView : WAKView <WebDocumentView, WebDocumentRepresentation>
{
    NSData *_data;
    NSString *_title;
    BOOL _dataSourceHasBeenSet;
}

+ (id)supportedMIMETypes;
+ (BOOL)isFeedMIMEType:(id)fp8;
- (void)dealloc;
- (void)drawRect:(struct CGRect)fp8;
- (void)setDataSource:(id)fp8;
- (void)dataSourceUpdated:(id)fp8;
- (void)setNeedsLayout:(BOOL)fp8;
- (void)layout;
- (void)viewWillMoveToHostWindow:(id)fp8;
- (void)viewDidMoveToHostWindow;
- (void)receivedData:(id)fp8 withDataSource:(id)fp12;
- (void)receivedError:(id)fp8 withDataSource:(id)fp12;
- (void)finishedLoadingWithDataSource:(id)fp8;
- (BOOL)canProvideDocumentSource;
- (id)documentSource;
- (void)setTitle:(id)fp8;
- (id)title;
- (id)data;

@end

@interface SyndicationTableDataSource : NSObject
{
    struct __CFArray *_feeds;
    int _entryCount;
    SyndicationTableCell **_cells;
    UITable *_table;
    NSURL *_URL;
    NSURL *_baseURL;
}

- (id)initWithURL:(id)fp8;
- (void)setFeeds:(struct __CFArray *)fp8;
- (void)dealloc;
- (id)URL;
- (void)setTable:(id)fp8;
- (struct __CFArray *)feeds;
- (struct __CFDictionary *)entryAtRow:(int)fp8;
- (int)numberOfRowsInTable:(id)fp8;
- (id)baseURLForFeed:(struct __CFDictionary *)fp8;
- (void)valuesForRow:(int)fp8 title:(id *)fp12 summary:(id *)fp16 date:(id *)fp20 link:(id *)fp24;
- (id)cellForRow:(int)fp8;
- (id)table:(id)fp8 cellForRow:(int)fp12 column:(id)fp16;
- (float)table:(id)fp8 heightForRow:(int)fp12;

@end

@interface SlicedBackgroundLayer : UIView
{
    UIImage *_backgroundImage;
    float _backgroundImageAlpha;
    CDAnonymousStruct1 _slices;
    unsigned int _backgroundIsFlipped:1;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)drawRect:(struct CGRect)fp8;
- (void)setBackgroundImage:(id)fp8;
- (void)backgroundImageAlpha:(float)fp8;
- (void)setSlices:(CDAnonymousStruct1)fp8;
- (void)setBackgroundIsFlipped:(BOOL)fp8;

@end

@interface UIScroller (UIScrollerExtras)
- (void)setScrollerOffsetPinned:(struct CGPoint)fp8;
@end

@interface BrowserController (BrowserControllerTabs)
- (void)tabController:(id)fp8 tabDocumentDidUpdateURL:(id)fp12;
- (void)tabController:(id)fp8 didScrollToTabDocument:(id)fp12;
- (void)tabControllerDidStartLoading:(id)fp8;
- (void)tabController:(id)fp8 didFinishLoadingWithError:(BOOL)fp12;
- (void)tabController:(id)fp8 tabDocumentDidUpdateTitle:(id)fp12;
- (void)tabController:(id)fp8 tabDocumentDidUpdateBackForward:(id)fp12;
- (void)tabController:(id)fp8 tabDocumentDidUpdateSecurity:(id)fp12;
- (void)tabDocument:(id)fp8 progressChanged:(float)fp12;
- (void)tabController:(id)fp8 tabDocumentStartedLoadingResource:(id)fp12;
- (void)tabController:(id)fp8 tabDocumentStoppedLoadingResource:(id)fp12;
- (void)tabController:(id)fp8 tabDocumentDidReceiveAuthenticationChallenge:(id)fp12;
- (void)tabController:(id)fp8 tabDocumentDidCancelAuthenticationChallenge:(id)fp12;
- (void)tabController:(id)fp8 showAlertForTabDocument:(id)fp12;
- (void)tabController:(id)fp8 hideAlertForTabDocument:(id)fp12;
- (struct CGRect)tabControllerFrame;
- (void)setShowingTabs:(BOOL)fp8;
- (void)switchFromTabDocument:(id)fp8 toTabDocument:(id)fp12 inBackground:(BOOL)fp16;
- (void)tabController:(id)fp8 didSwitchFromTabDocument:(id)fp12 toTabDocument:(id)fp16 inBackground:(BOOL)fp20;
- (struct CGRect)defaultScreenShotFrameForTabController:(id)fp8;
- (struct CGRect)tabBackgroundFrameForTabController:(id)fp8;
- (float)maxScreenShotHeightForTabController:(id)fp8;
- (void)loadURLInNewWindow:(id)fp8;
- (id)webView:(id)fp8 createWebViewWithRequest:(id)fp12 userGesture:(BOOL)fp16;
- (id)webView:(id)fp8 createWebViewWithRequest:(id)fp12;
- (void)webViewFocus:(id)fp8 userGesture:(BOOL)fp12;
- (void)_updateTabExposeButtonIndicatorExcludingBlanks:(BOOL)fp8;
- (void)updateTabExposeButtonIndicator;
- (void)updateTabExposeButtonIndicatorExcludingBlankDocuments;
- (void)_closeDocument:(id)fp8;
- (BOOL)closePendingDocuments;
- (void)webViewClose:(id)fp8;
- (BOOL)prepareTabExposeTest;
- (void)_runTabExposeTest;
- (void)runTabExposeTest;
- (BOOL)isRunningTabExposeTest;
- (void)finishedTabExposeTest;
- (void)tabController:(id)fp8 setNewPageButtonEnabled:(BOOL)fp12;
- (void)tabController:(id)fp8 composeEmailWithMailToURL:(id)fp12 forTabDocument:(id)fp16;
@end

@interface BrowserController (BrowserControllerPanels)
- (id)_panelSuperview;
- (struct CGRect)_panelFrame;
- (id)_bookmarksController;
- (id)_addBookmarkController;
- (void)_setShowingBookmarks:(BOOL)fp8;
- (void)_setShowingAddBookmark:(BOOL)fp8;
- (id)_actionPanel;
- (void)_setShowingActionPanel:(BOOL)fp8;
- (id)_webClipPanel;
- (void)_setShowingWebClipPanel:(BOOL)fp8;
- (void)_setEnabled:(BOOL)fp8;
- (void)_setEnteringURL:(BOOL)fp8;
- (id)_authenticationView;
- (void)_setShowingAuthentication:(BOOL)fp8;
- (void)logInFromAuthenticationView:(id)fp8 withCredential:(id)fp12;
- (id)_sheetController;
- (void)_setShowingAlert:(BOOL)fp8;
- (id)_mailComposeView;
- (struct CGRect)mailComposeViewFrame;
- (void)composeEmailWithMailToURL:(id)fp8;
- (void)hideMailComposeView:(id)fp8;
- (void)showMailComposeViewError:(id)fp8;
- (void)sheetController:(id)fp8 performAction:(int)fp12 forAlert:(id)fp16;
- (void)_setShowingCurrentPanel:(BOOL)fp8;
- (void)_setBrowserPanel:(id)fp8;
- (void)_setNextBrowserPanel:(id)fp8;
- (void)_setShowingButtonBar:(BOOL)fp8;
- (BOOL)_shouldShowButtonBarForPanel:(id)fp8;
- (void)resignWebViewFirstResponder;
- (void)willShowBrowserPanel:(id)fp8;
- (void)didShowBrowserPanel:(id)fp8;
- (void)willHideBrowserPanel:(id)fp8;
- (void)didHideBrowserPanel:(id)fp8;
- (void)sheetControllerDidShowSheet:(id)fp8;
- (void)sheetControllerDidHideSheet:(id)fp8;
- (void)didPresentAlertSheet:(id)fp8;
- (void)didDismissAlertSheet:(id)fp8;
- (void)showModalAlertWithString:(id)fp8;
- (void)alertSheet:(id)fp8 buttonClicked:(int)fp12;
- (void)browserPanel:(id)fp8 didChangeState:(int)fp12;
- (id)_panelForPanelType:(int)fp8;
- (BOOL)_togglePanel:(id)fp8;
- (id)browserPanel;
- (BOOL)showBrowserPanelType:(int)fp8;
- (BOOL)hideBrowserPanelType:(int)fp8;
- (BOOL)hideBrowserPanel;
- (void)togglePanelsAfterRotation;
- (void)_handleBookmarkSelector:(SEL)fp8;
- (void)_handleAddBookmarkSelector:(SEL)fp8;
- (void)showAddBookmarkSheet;
- (void)showAddToHomeScreenSheet;
- (id)keyboardForAddressView:(id)fp8;
- (void)showAlertWithTitle:(id)fp8 forBrowserPanel:(id)fp12;
- (void)reloadFromAddressView:(id)fp8;
- (void)stopFromAddressView:(id)fp8;
- (void)_cancel;
- (void)cancelFromAuthenticationView:(id)fp8;
- (void)closeBrowserPanel:(id)fp8;
- (void)toggleBookmarksFromButtonBar;
- (void)showActionPanelFromButtonBar;
- (void)toggleTabsFromButtonBar;
- (void)editFromButtonBar;
- (void)doneFromButtonBar;
- (void)clearFromButtonBar;
- (void)newPageFromButtonBar;
- (void)newFolderFromButtonBar;
- (void)goToBookmarkWithURL:(id)fp8 fromBookmarksController:(id)fp12;
- (void)_copyCarrierName:(id *)fp8 countryCode:(id *)fp12 networkCode:(id *)fp16;
- (id)_languageCode;
- (id)_searchURLWithSearchCriteria:(id)fp8;
- (void)_doSearch:(id)fp8;
- (void)doSearch:(id)fp8 fromAddressView:(id)fp12;
- (void)animateScrollToAddressField;
- (void)presentAlertSheet:(id)fp8;
- (void)shareURL;
- (void)beginEnteringURL;
@end

@interface BrowserButtonBar : UIButtonBar
{
    id <BrowserPanel> _browserPanel;
    char _savedButtonStates[5];
    int _orientation;
    BOOL _isLoading;
    BOOL _canGoBack;
    BOOL _canGoForward;
    BOOL _actionEnabled;
}

+ (id)imageButtonItemWithName:(id)fp8 tag:(int)fp12 action:(SEL)fp16 target:(id)fp20;
+ (id)standardButtonWithTitle:(id)fp8 titleWidth:(float)fp12 tag:(int)fp16 action:(SEL)fp20 target:(id)fp24 isDone:(BOOL)fp28;
+ (id)standardButtonWithTitle:(id)fp8 titleWidth:(float)fp12 tag:(int)fp16 action:(SEL)fp20 target:(id)fp24;
+ (id)buttonBarInLayer:(id)fp8 delegate:(id)fp12;
- (int)_primaryButtonGroup;
- (void)dealloc;
- (void)positionButtons:(id)fp8 tags:(int *)fp12 count:(int)fp16 group:(int)fp20;
- (void)setBrowserPanel:(id)fp8 animate:(BOOL)fp12;
- (void)_updateBackButton;
- (void)_updateForwardButton;
- (void)_updateActionButton;
- (void)setOrientation:(int)fp8 withFrame:(struct CGRect)fp12;
- (void)updateButtons:(BOOL)fp8;
- (void)setBackEnabled:(BOOL)fp8;
- (void)setForwardEnabled:(BOOL)fp8;
- (void)setActionEnabled:(BOOL)fp8;
- (void)setNewPageEnabled:(BOOL)fp8;
- (void)setClearHistoryEnabled:(BOOL)fp8;
- (void)setTabExposeButtonIndicator:(unsigned int)fp8;

@end

@interface FeedsProtocol : NSURLProtocol
{
    int _feedCount;
    NSURLConnection **_connections;
    int _finishedCount;
    int _errorCount;
    NSURLResponse **_responses;
    unsigned int _firstDataSent:1;
    unsigned int _responseSent:1;
}

+ (BOOL)isFeedsProtocolURL:(id)fp8;
+ (BOOL)canInitWithRequest:(id)fp8;
+ (id)syndicationMIMEType;
+ (id)canonicalRequestForRequest:(id)fp8;
+ (id)unpackageFeeds:(id)fp8;
- (void)dealloc;
- (void)startLoading;
- (void)stopLoading;
- (void)_sendResponse;
- (void)_sendFinished;
- (void)_sendError;
- (int)_offsetForConnection:(id)fp8;
- (void)_checkFinished;
- (id)connection:(id)fp8 willSendRequest:(id)fp12 redirectResponse:(id)fp16;
- (void)connection:(id)fp8 didReceiveResponse:(id)fp12;
- (void)connection:(id)fp8 didReceiveData:(id)fp12;
- (void)connectionDidFinishLoading:(id)fp8;
- (void)connection:(id)fp8 didFailWithError:(id)fp12;
- (id)connection:(id)fp8 willCacheResponse:(id)fp12;

@end

@interface ExtendedSearchField : UISearchField
{
}

- (BOOL)pointInside:(struct CGPoint)fp8 forEvent:(struct __GSEvent *)fp16;

@end

@interface ExtendedTextField : UITextField
{
}

- (BOOL)pointInside:(struct CGPoint)fp8 forEvent:(struct __GSEvent *)fp16;

@end

@interface TitleTextView : OrientedView
{
    NSString *_title;
    NSString *_lastDrawnTitle;
    id _delegate;
    struct CGSize _lastTitleSize;
}

- (void)dealloc;
- (struct __GSFont *)_titleFont;
- (void)setTitle:(id)fp8 forceUpdate:(BOOL)fp12;
- (void)setCoalescedDisplayIfNeeded;
- (id)title;
- (struct CGSize)titleSize;
- (void)drawRect:(struct CGRect)fp8;
- (void)setDelegate:(id)fp8;
- (void)setFrame:(struct CGRect)fp8;
- (void)setRotating:(BOOL)fp8;

@end

@interface EllipsedTextView : UIView
{
    NSString *_lastDrawnText;
    UIImageView *_lockView;
    id _delegate;
    unsigned int _showsSecurityButton:1;
}

+ (struct __GSFont *)urlFont;
- (void)dealloc;
- (void)_updateLockViewPosition;
- (void)setFrame:(struct CGRect)fp8;
- (void)setRotating:(BOOL)fp8;
- (void)setDelegate:(id)fp8;
- (id)lastDrawnText;
- (void)drawRect:(struct CGRect)fp8;
- (void)setShowsSecurityButton:(BOOL)fp8;

@end

@interface ProgressView : UIView
{
    id _delegate;
    float _progress;
    float _lastDrawnProgress;
    BOOL _isShowingProgress;
    struct CGRect _dirtyRect;
}

+ (id)_activeBackgroundImage;
+ (id)_inactiveBackgroundImage;
+ (id)_progressBackgroundImage;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)setFrame:(struct CGRect)fp8;
- (void)_updateShowsProgress;
- (struct CGRect)_leftRect;
- (struct CGRect)_rightRect;
- (float)_widthForProgress:(float)fp8;
- (void)_setNeedsDisplayInDirtyRect;
- (void)setProgress:(float)fp8 forceUpdate:(BOOL)fp12;
- (void)setCoalescedDisplayIfNeeded;
- (void)drawRect:(struct CGRect)fp8;
- (void)setDelegate:(id)fp8;
- (void)setRotating:(BOOL)fp8;

@end

@interface AddressView : UIGradientBar
{
    ReloadImageView *_reloadImageView;
    UITextField *_addressTextField;
    UISearchField *_searchTextField;
    ProgressView *_progressView;
    EllipsedTextView *_ellipsedTextView;
    UIPushButton *_searchButton;
    TitleTextView *_titleTextView;
    UIView *_titleTextViewContainer;
    UIPushButton *_cancelButton;
    UIView *_addressSeparatorView;
    FadeView *_fadeView;
    UICompletionTable *_completionTable;
    URLCompletionController *_URLCompletionController;
    NSArray *_URLCompletions;
    NSArray *_searchCompletions;
    int _orientation;
    UITextField *_focusingTextField;
    struct CGSize _reloadSize;
    struct CGRect _lastDisplayedRect;
    struct CGRect _defaultRect;
    float _progress;
    id _delegate;
    NSString *_address;
    int _currentSearchEngine;
    double _reloadToggleTime;
    float _lastAnimationFraction;
    unsigned int _recordToggleTime:1;
    unsigned int _showsSecurityButton:1;
    unsigned int _hasClearedURLField:1;
    unsigned int _hasEditedURL:1;
    unsigned int _hasEditedSearch:1;
    unsigned int _showingFullProgress:1;
    unsigned int _addressViewAnimating:1;
    unsigned int _isEditing:1;
    unsigned int _wasEditingURL:1;
    unsigned int _suspended:1;
    unsigned int _isRotating:1;
    unsigned int _completionsAreSearches:1;
    unsigned int _focusSearchFieldAfterAnimation:1;
}

+ (float)defaultHeight;
+ (float)editingHeightForOrientation:(int)fp8;
- (BOOL)_isShowingProgress;
- (BOOL)_isRotating;
- (void)setRotating:(BOOL)fp8;
- (struct CGRect)_frameForProgressViewNormal;
- (struct CGRect)_frameForProgressViewEditedWithFocus:(BOOL)fp8;
- (struct CGRect)_frameForSearchFieldWithFocus:(BOOL)fp8;
- (void)_setTitleFrame:(struct CGRect)fp8;
- (void)_layoutCompletionTable;
- (void)layoutSubviews;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)setFrame:(struct CGRect)fp8 force:(BOOL)fp24;
- (void)setFrame:(struct CGRect)fp8;
- (void)mouseDown:(struct __GSEvent *)fp8;
- (void)mouseDragged:(struct __GSEvent *)fp8;
- (id)hitTest:(struct CGPoint)fp8 forEvent:(struct __GSEvent *)fp16;
- (void)_searchButtonClicked;
- (void)_reloadImageViewClicked;
- (void)mouseUp:(struct __GSEvent *)fp8;
- (void)setAddress:(id)fp8 forceUpdate:(BOOL)fp12;
- (void)setDelegate:(id)fp8;
- (id)delegate;
- (void)_showCompletions;
- (void)_hideCompletions;
- (void)_updateURLCompletions;
- (void)_updateSearchCompletions;
- (void)_swapInTextEditingView:(BOOL)fp8;
- (void)_cancelMouseDown;
- (void)_cancelMouseUpOutside;
- (void)_cancelMouseEnter;
- (void)_cancelMouseExit;
- (void)_updateSearchEngineStrings;
- (void)createButtons;
- (void)_setDefaultKeyboardForURLEditing;
- (void)_animateOut:(BOOL)fp8;
- (void)_fixTitleViewFrame;
- (void)animationDidStop:(id)fp8 finished:(id)fp12;
- (void)cancel;
- (BOOL)isEditing;
- (void)suspend;
- (void)resume;
- (void)completedEditingAddressWithText:(id)fp8;
- (void)goToURL;
- (void)search;
- (void)setOrientation:(int)fp8 withFrame:(struct CGRect)fp12;
- (unsigned int)becomeFirstResponder;
- (BOOL)resignFirstResponder;
- (void)setReloadEnabled:(BOOL)fp8;
- (void)_resetShowingFullProgress;
- (void)setProgress:(float)fp8 forceUpdate:(BOOL)fp12;
- (float)reloadImageWidth;
- (id)reloadImageView;
- (id)ellipsedTextView;
- (id)progressView;
- (id)address;
- (void)setTitle:(id)fp8 forceUpdate:(BOOL)fp12;
- (id)title;
- (id)titleTextView;
- (void)restoreTitleTextView;
- (struct CGPoint)titleTextViewOrigin;
- (void)setShowsSecurityButton:(BOOL)fp8;
- (BOOL)_isEditingURL;
- (void)_willShowProgress;
- (void)_willHideProgress;
- (BOOL)isAnimating;
- (void)movedToSuperview:(id)fp8;
- (void)_updateTextFieldBackgrounds;
- (void)textFieldDidBecomeFirstResponder:(id)fp8;
- (void)textFieldDidResignFirstResponder:(id)fp8;
- (void)_didEditURL;
- (void)_didEditSearch;
- (BOOL)textFieldShouldStartEditing:(id)fp8;
- (void)_resizeAnimationFinished;
- (void)textFieldEditorDidChangeSelection:(id)fp8;
- (void)textFieldClearButtonPressed:(id)fp8;
- (BOOL)keyboardInput:(id)fp8 shouldInsertText:(id)fp12 isMarkedText:(BOOL)fp16;
- (id)keyboardInputOverlayContainer:(id)fp8;
- (unsigned int)numberOfCompletionsInTable:(id)fp8;
- (id)table:(id)fp8 completionAtIndex:(unsigned int)fp12;
- (void)table:(id)fp8 didSelectCompletionAtIndex:(unsigned int)fp12;
- (id)table:(id)fp8 cellForCompletionAtIndex:(int)fp12 reusing:(id)fp16;

@end

@interface ReloadImageView : AddressViewPushButton
{
    UIImage *_reloadImage;
    UIImage *_stopImage;
    BOOL _stopShown;
    BOOL _stopDrawn;
    id _delegate;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)setStopShown:(BOOL)fp8 forceUpdate:(BOOL)fp12;
- (void)drawRect:(struct CGRect)fp8;
- (struct CGSize)defaultSize;
- (void)setDelegate:(id)fp8;
- (void)setCoalescedDisplayIfNeeded;

@end

@interface AddressSeparatorView : UIView
{
}

- (void)drawRect:(struct CGRect)fp8;

@end

@interface AddressViewPushButton : UIPushButton
{
}

- (id)initWithFrame:(struct CGRect)fp8;
- (id)_enclosingScroller;
- (void)mouseDown:(struct __GSEvent *)fp8;
- (void)mouseUp:(struct __GSEvent *)fp8;
- (void)_setHighlightOnMouseDown:(BOOL)fp8;

@end

@interface URLCompletionTableCell : UISimpleTableCell
{
}

- (int)ellipsisStyle;

@end

@interface FadeView : UIControl
{
}

- (id)initWithFrame:(struct CGRect)fp8;

@end

@interface BrowserController (BrowserControllerGestures)
- (BOOL)isRotating;
- (BOOL)isZooming;
- (float)_minZoomScale;
- (float)_maxZoomScale;
- (void)_tileBarsForRotationBounds:(struct CGRect)fp8 hidden:(BOOL)fp24 orientation:(int)fp28;
- (void)_tileBarsForLandscapeWhileRotating:(BOOL)fp8;
- (void)_tileBarsForPortraitWhileRotating:(BOOL)fp8;
- (void)_startRotatingBarsFromPortrait:(BOOL)fp8;
- (void)_rotateToFraction:(float)fp8 fromPortrait:(BOOL)fp12 toLandscape:(BOOL)fp16;
- (void)_endRotatingBars;
- (BOOL)_isShowingFullScreenPlugInUI;
- (struct CGRect)browserFrameForOrientation:(int)fp8;
- (struct CGRect)scrollerFrameForOrientation:(int)fp8;
- (struct CGRect)webViewFrameForOrientation:(int)fp8;
- (void)_willStartRotationFromEvent:(struct __GSEvent *)fp8;
- (void)_centerRotationRect;
- (void)_rotationDidChangeFromEvent:(struct __GSEvent *)fp8;
- (void)_didFinishRotationFromEvent:(struct __GSEvent *)fp8;
- (void)_willStartZoomFromEvent:(struct __GSEvent *)fp8;
- (void)setGestureCompletionTimer:(id)fp8;
- (void)willStartGesturesInView:(id)fp8 forEvent:(struct __GSEvent *)fp12;
- (BOOL)updateRotation;
- (void)_finishGestures;
- (void)_gesturesEnded;
- (void)didFinishGesturesInView:(id)fp8 forEvent:(struct __GSEvent *)fp12;
- (void)willStartGesture:(int)fp8 inView:(id)fp12 forEvent:(struct __GSEvent *)fp16;
- (void)gestureDidChange:(int)fp8 inView:(id)fp12 forEvent:(struct __GSEvent *)fp16;
- (void)didFinishGesture:(int)fp8 inView:(id)fp12 forEvent:(struct __GSEvent *)fp16;
- (void)setGesturesEnabled:(BOOL)fp8;
- (void)_animateToRotationDegrees:(float)fp8;
- (void)setZoomTimer:(id)fp8;
- (void)toggleDebugZoom;
- (void)_setZoomingIn:(BOOL)fp8;
- (void)_advanceZoom;
- (id)zoomAndTabTestURL;
- (BOOL)prepareZoomTest;
- (void)runZoomTest;
- (void)setRotationDegrees:(float)fp8;
@end

@interface BrowserController (BrowserControllerUI)
- (void)_slideInAddressView:(BOOL)fp8;
- (void)_setHideAddressViewTimer:(id)fp8;
- (void)addressViewWillShowProgress:(id)fp8;
- (void)_hideAddressView;
- (void)addressViewWillHideProgress:(id)fp8;
- (void)animator:(id)fp8 startAnimation:(id)fp12;
- (void)animationDidStop:(id)fp8 finished:(id)fp12 context:(void *)fp16;
- (void)animator:(id)fp8 stopAnimation:(id)fp12 fraction:(float)fp16;
- (void)performCoalescedUpdates;
- (void)_performCoalescedUpdate:(BOOL)fp8 type:(int)fp12;
- (void)setReloadImageViewNeedsUpdate:(BOOL)fp8;
- (void)setEllipsedTextViewNeedsUpdate:(BOOL)fp8;
- (void)setProgressViewNeedsUpdate:(BOOL)fp8;
- (void)setTitleTextViewNeedsUpdate:(BOOL)fp8;
- (void)webView:(id)fp8 willBeginEditingFormElement:(id)fp12;
- (void)webView:(id)fp8 didBeginEditingFormElement:(id)fp12;
- (void)webViewDidEndEditingFormElements:(id)fp8;
- (void)_setHideSpinnerTimer:(id)fp8;
- (void)_hideSpinner;
- (void)_showSpinner;
- (void)_updateProgressIndicator;
- (void)setProgress:(float)fp8 forceUpdate:(BOOL)fp12;
- (void)setResourcesLoading:(BOOL)fp8;
- (id)superviewForCalloutInWebView:(id)fp8;
@end

@interface AuthenticationView : UIView <BrowserPanel>
{
    id _delegate;
    NSURLAuthenticationChallenge *_challenge;
    UINavigationBar *_navigationBar;
    UIPreferencesTextTableCell *_loginCell;
    UIPreferencesTextTableCell *_passwordCell;
    UITextLabel *_passwordSecurityLabel;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)layoutSubviews;
- (void)setDelegate:(id)fp8;
- (id)challenge;
- (void)setChallenge:(id)fp8;
- (int)panelType;
- (int)panelState;
- (BOOL)allowsRotation;
- (BOOL)pausesPages;
- (void)didShowBrowserPanel;
- (void)didHideBrowserPanel;
- (BOOL)shouldHideOnSuspend;
- (void)navigationBar:(id)fp8 buttonClicked:(int)fp12;

@end

@interface AuthenticationView (Internal)
- (void)_focusPasswordField;
- (void)_logIn;
- (void)_cancel;
@end

@interface NSURL (NSURLExtrasPrivate)
- (BOOL)isSecureURL;
- (BOOL)isMailToURL;
- (id)userVisibleHost;
@end

@interface Alert : NSObject
{
    NSString *_title;
    int _type;
    int _defaultAction;
    int _otherAction;
    id _context;
}

- (id)initWithType:(int)fp8 title:(id)fp12 defaultAction:(int)fp16 otherAction:(int)fp20;
- (void)dealloc;
- (int)type;
- (id)title;
- (id)_buttonTitleForAction:(int)fp8;
- (id)buttonTitles;
- (int)actionForButtonTag:(unsigned int)fp8;
- (int)defaultAction;
- (void)setContext:(id)fp8;
- (id)context;

@end

@interface SheetController : NSObject <BrowserPanel>
{
    struct __CFDictionary *_sheets;
    UIAlertSheet *_sheet;
    id _delegate;
    int _actionToPerform;
}

- (id)init;
- (void)dealloc;
- (int)panelType;
- (int)panelState;
- (BOOL)allowsRotation;
- (BOOL)pausesPages;
- (void)showSheetForAlert:(id)fp8 inView:(id)fp12;
- (void)hideSheet;
- (void)setDelegate:(id)fp8;
- (void)alertSheet:(id)fp8 buttonClicked:(int)fp12;
- (void)didDismissAlertSheet:(id)fp8;

@end

@interface URLCompletionController : NSObject
{
    int style;
}

+ (void)_tree_create;
+ (void)_tree_destroy;
+ (void)_tree_addItem:(id)fp8;
+ (void)_tree_deleteItem:(id)fp8;
+ (void)_tree_setCursorAtStart:(struct _TreeCursor *)fp8;
+ (id)_tree_findItem:(id)fp8 cursor:(struct _TreeCursor *)fp12;
+ (id)_tree_nextItemUsingCursor:(struct _TreeCursor *)fp8;
+ (void)_addBookmarkTree:(id)fp8;
+ (void)_removeBookmarkTree:(id)fp8;
+ (void)_loadDB;
+ (void)_registerForNotifications;
+ (void)_historyAdded:(id)fp8;
+ (void)_historyRemoved:(id)fp8;
+ (void)_reloadDB:(id)fp8;
+ (void)_bookmarksAdded:(id)fp8;
+ (void)_bookmarksRemoved:(id)fp8;
+ (void)_bookmarkWillChange:(id)fp8;
+ (void)_bookmarkDidChange:(id)fp8;
- (id)_queryStringForAbsoluteURL:(id)fp8 fullScan:(char *)fp12;
- (id)_queryStringForString:(id)fp8 fullScan:(char *)fp12;
- (id)queryResultsForString:(id)fp8 startingMatch:(unsigned int *)fp12;
- (id)queryStringFromPartialString:(id)fp8;
- (id)intermediateMatchingStringForResult:(id)fp8;
- (id)finalMatchingStringForResult:(id)fp8;

@end

@interface URLCompletionItem : NSObject
{
    id _item;
    int _index;
    int _weight;
    int _urlType;
}

- (void)computeWeight:(double)fp8;
- (id)urlItem;
- (int)urlType;
- (int)weight;
- (int)index;
- (int)compare:(id)fp8;
- (id)initWithItem:(id)fp8 andIndex:(int)fp12 andTime:(double)fp16;
- (void)dealloc;
- (id)description;

@end

@interface FolderPickerSheet : UIView
{
    id _delegate;
    WebBookmark *_currentFolder;
    NSMutableArray *_bookmarkFolders;
    UINavigationBar *_navigationBar;
    UITable *_table;
    BOOL _selectingFolder;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)layoutSubviews;
- (int)numberOfRowsInTable:(id)fp8;
- (id)table:(id)fp8 cellForRow:(int)fp12 column:(id)fp16;
- (void)tableSelectionDidChange:(id)fp8;
- (void)navigationBar:(id)fp8 buttonClicked:(int)fp12;
- (void)setDelegate:(id)fp8;
- (void)willShowForFolder:(id)fp8 originalParent:(id)fp12;

@end

@interface FolderPickerCell : UIImageAndTextTableCell
{
    unsigned int _indentationLevel;
}

- (void)setIndentationLevel:(unsigned int)fp8;
- (void)layoutSubviews;

@end

@interface FolderPickerItem : NSObject
{
    WebBookmark *_bookmark;
    int _depth;
}

- (id)initWithBookmark:(id)fp8 depth:(unsigned int)fp12;
- (id)bookmark;
- (unsigned int)depth;
- (id)title;
- (id)icon;

@end

@interface FolderPickerSheet (Internal)
- (void)_appendFolderAndChildren:(id)fp8 toArray:(id)fp12 excludingFolder:(id)fp16 depth:(unsigned int)fp20;
- (void)_appendFolderAndChildren:(id)fp8 toArray:(id)fp12 excludingFolder:(id)fp16;
- (id)_bookmarkFolders;
- (void)_bookmarksChanged;
@end

@interface BrowserMailComposeView : UIView
{
    id _delegate;
    MailComposeController *_mailComposeController;
}

- (void)dealloc;
- (void)layoutSubviews;
- (void)willShow;
- (void)setDelegate:(id)fp8;
- (void)setMailToURL:(id)fp8;
- (void)mailComposeControllerCompositionFinished:(id)fp8;
- (void)_deliverMailForController:(id)fp8;
- (void)didHide;
- (void)activate;

@end

@interface CanSetSearchEngineScriptObject : NSObject
{
}

- (id)invokeDefaultMethodWithArguments:(id)fp8;

@end

@interface GetSearchEngineScriptObject : NSObject
{
}

- (id)invokeDefaultMethodWithArguments:(id)fp8;

@end

@interface SetSearchEngineScriptObject : NSObject
{
    WebScriptObject *_windowObject;
}

- (id)initWithWindowObject:(id)fp8;
- (id)invokeDefaultMethodWithArguments:(id)fp8;

@end

@interface ModalAlertSheet : UIAlertSheet
{
    int _clickedButton;
}

+ (id)modalAlertSheetWithTitle:(id)fp8 buttons:(id)fp12 defaultButtonIndex:(int)fp16;
- (id)initWithTitle:(id)fp8 buttons:(id)fp12 defaultButtonIndex:(int)fp16;
- (int)clickedButton;

@end

@interface ModalAlertSheet (UIAlertSheetDelegate)
- (void)alertSheet:(id)fp8 buttonClicked:(int)fp12;
@end

@interface BrowserController (BannerViewDelegate)
- (BOOL)shouldEnableBannerView:(id)fp8;
@end

@interface BrowserController (BannerViewDataSource)
- (id)messageForBannerView:(id)fp8;
@end

@interface BrowserController (ConsoleDataSource)
- (int)numberOfMessagesMatchingMask:(int)fp8;
- (id)messageAtIndex:(int)fp8 matchingMask:(int)fp12;
@end

@interface BrowserController (ConsoleDelegate)
- (id)activeWebView;
- (void)clearMessagesMatchingMask:(int)fp8;
@end

@interface BrowserController (UITransitionViewDelegate)
- (void)transitionViewDidComplete:(id)fp8 fromView:(id)fp12 toView:(id)fp16;
@end

@interface BrowserController (AnimationDelegate)
- (void)bannerAnimationDidStop:(id)fp8 finished:(id)fp12;
@end

@interface BrowserController (Developer)
- (void)setDebuggingEnabled:(BOOL)fp8;
- (BOOL)debuggingEnabled;
- (struct CGRect)bannerViewFrame;
- (id)bannerView;
- (void)hideBannerView;
- (void)displayBannerView;
- (void)tabDocumentDidClearMessages:(id)fp8;
- (void)tabDocumentDidReceiveMessage:(id)fp8;
- (void)constrainBannerViewFrame;
- (id)consoleView;
- (void)hideConsoleView;
- (void)scrollAndTransitionToConsoleView;
- (void)transitionToConsoleView;
- (void)consoleViewDidEndSession:(id)fp8;
@end

@interface BannerView : UIPushButton
{
    id <BannerViewDataSource> _dataSource;
    UITextLabel *_titleLabel;
    UITextLabel *_messageLabel;
    UIImageView *_imageView;
}

+ (struct CGColor *)backgroundColor;
+ (struct CGColor *)titleColor;
+ (struct CGColor *)messageColor;
+ (struct CGColor *)shadowColor;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)setEnabled:(BOOL)fp8;
- (void)reloadData;
- (void)setDataSource:(id)fp8;
- (id)dataSource;
- (void)layoutSubviews;

@end

@interface ConsoleView : UIView
{
    id _delegate;
    id <ConsoleDataSource> _dataSource;
    int _messageMask;
    UITable *_table;
    UITextLabel *_title;
    UIButtonBar *_buttonBar;
    UISegmentedControl *_segmented;
    UINavigationBar *_navigation;
}

+ (struct CGColor *)shadowColor;
- (id)items;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)layoutSubviews;
- (void)dealloc;
- (void)setDelegate:(id)fp8;
- (id)delegate;
- (void)setDataSource:(id)fp8;
- (id)dataSource;
- (void)reloadData;
- (void)FIXME_5370881_WORKAROUND:(BOOL)fp8;

@end

@interface ConsoleView (UITableDataSource)
- (int)numberOfRowsInTable:(id)fp8;
- (id)table:(id)fp8 cellForRow:(int)fp12 column:(id)fp16;
- (BOOL)table:(id)fp8 canSelectRow:(int)fp12;
@end

@interface ConsoleView (UISegmentedControlDelegate)
- (void)segmentedControl:(id)fp8 selectedSegmentChanged:(int)fp12;
@end

@interface ConsoleView (UINavigationBarDelegate)
- (void)navigationBar:(id)fp8 buttonClicked:(int)fp12;
@end

@interface ConsoleTableCell : UITableCell
{
    id <UIWebViewMessage> _message;
    UIImage *_image;
    NSString *_heading;
}

+ (float)height;
+ (id)imageForMessageType:(int)fp8;
+ (id)sourceStringForMessageType:(int)fp8;
+ (id)severityStringForMessageType:(int)fp8;
+ (struct __GSFont *)headingFont;
+ (struct __GSFont *)textFont;
+ (id)tableCellWithSize:(struct CGSize)fp8 message:(id)fp16;
- (id)initWithSize:(struct CGSize)fp8 message:(id)fp16;
- (void)dealloc;
- (void)drawContentInRect:(struct CGRect)fp8 selected:(BOOL)fp24;

@end

@interface TabDocument (Developer)
- (void)webViewDidClearMessages:(id)fp8;
- (void)webViewDidReceiveMessage:(id)fp8;
- (void)debuggingStateDidChange;
@end

@interface OrientedView : UIView
{
    int _orientation;
}

- (void)setOrigin:(struct CGPoint)fp8;
- (void)setOrientation:(int)fp8 size:(struct CGSize)fp12;
- (int)orientation;

@end

@interface ActionPanel : NSObject <BrowserPanel>
{
    UIAlertSheet *_sheet;
    int _clickedButton;
}

- (void)dealloc;
- (int)panelType;
- (int)panelState;
- (BOOL)allowsRotation;
- (BOOL)pausesPages;
- (BOOL)handlesAnimations;
- (BOOL)_canShare;
- (void)setVisible:(BOOL)fp8;
- (void)didPresentAlertSheet:(id)fp8;
- (void)didDismissAlertSheet:(id)fp8;
- (void)alertSheet:(id)fp8 buttonClicked:(int)fp12;

@end

@interface WebClipPanel : UIView <BrowserPanel>
{
    UINavigationBar *_navigationBar;
    UIImageView *_iconImageView;
    UIPreferencesTextTableCell *_nameCell;
    UITextLabel *_infoLabel;
    NSURL *_webClipURL;
    NSURL *_webClipIconURL;
    NSString *_webClipTitle;
    struct CGPoint _webClipScrollPoint;
    float _webClipScale;
    UIImage *_webClipIconImage;
    BOOL _suspendAfterDismiss;
    NSURLConnection *_iconConnection;
    NSMutableData *_customIconData;
}

+ (id)_webClipsDirectoryPath;
+ (id)_pathForWebClipWithIdentifier:(id)fp8;
+ (id)infoForWebClipWithURL:(id)fp8;
+ (id)pageURLForWebClipWithURL:(id)fp8;
+ (struct CGImage *)_defaultPageImage;
+ (struct CGImage *)_pageMaskImage;
+ (struct CGImage *)_iconOverlayImage;
+ (struct CGImage *)_iconShadowImage;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (BOOL)_canAddWebClip;
- (void)_validateUI;
- (void)_nameCellChanged;
- (struct CGRect)_navigationBarFrame;
- (float)_iconVerticalMargin;
- (struct CGRect)_iconFrame;
- (struct CGRect)_nameCellFrame;
- (struct CGRect)_infoLabelFrame;
- (void)layoutSubviews;
- (int)panelType;
- (int)panelState;
- (BOOL)allowsRotation;
- (BOOL)pausesPages;
- (BOOL)_createWebClip;
- (void)_stopLoadingCustomIcon;
- (void)_dismiss;
- (void)willShowBrowserPanel;
- (void)didShowBrowserPanel;
- (void)didHideBrowserPanel;
- (void)_addWebClip;
- (void)_cancel;
- (void)navigationBar:(id)fp8 buttonClicked:(int)fp12;
- (void)_updateUI;
- (void)_createIconImageForImage:(struct CGImage *)fp8;
- (void)_loadCustomIcon;
- (void)connection:(id)fp8 didReceiveData:(id)fp12;
- (void)connectionDidFinishLoading:(id)fp8;
- (void)connection:(id)fp8 didFailWithError:(id)fp12;
- (void)setPageURL:(id)fp8 iconURL:(id)fp12 title:(id)fp16 scrollPoint:(struct CGPoint)fp20 scale:(float)fp28;

@end

@interface NSString (WebClipExtensions)
- (id)webClipTitleString;
@end

