This repository has been archived by the owner on Oct 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Safari2_0.h
376 lines (362 loc) · 13.1 KB
/
Safari2_0.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
/* Generated using class-dump */
@protocol ProvidesSearchTarget
- (id)targetForSearch;
@end
@protocol ReopensAtLaunch
+ (void)reopen;
@end
@interface WindowController : NSWindowController
{
NSString *_multiWindowFrameAutosaveName;
BOOL _autosaveFrame;
BOOL _lastResizeWasProgrammatic;
}
- (void)dealloc;
- (void)_saveFrameIfAllowed;
- (void)windowDidMove:(id)fp8;
- (void)windowDidResize:(id)fp8;
- (void)_windowWillClose:(id)fp8;
- (BOOL)setMultiWindowFrameAutosaveName:(id)fp8;
- (id)multiWindowFrameAutosaveName;
- (void)_setFrameWithoutAutosaving:(struct _NSRect)fp8 programmatically:(BOOL)fp24;
- (void)setFrameWithoutAutosaving:(struct _NSRect)fp8;
- (void)setFrameProgrammatically:(struct _NSRect)fp8;
- (struct _NSRect)defaultFrame;
- (void)setFrameToDefault;
- (void)_windowDidLoad;
- (void)setFrameAutosaveEnabled:(BOOL)fp8;
- (BOOL)frameAutosaveEnabled;
@end
@interface TextFieldEditor : NSTextView
{
}
- (id)init;
- (void)stripCarriageReturnsAfterPaste;
- (void)paste:(id)fp8;
@end
@interface LocationFieldEditor : TextFieldEditor
{
@public
NSTextField *field;
}
- (id)initWithField:(id)fp8;
- (unsigned int)validModesForFontPanel:(id)fp8;
- (void)changeFont:(id)fp8;
- (id)acceptableDragTypes;
- (unsigned int)draggingEntered:(id)fp8;
- (unsigned int)draggingUpdated:(id)fp8;
- (BOOL)prepareForDragOperation:(id)fp8;
- (BOOL)performDragOperation:(id)fp8;
- (void)concludeDragOperation:(id)fp8;
- (void)smartInsertForString:(id)fp8 replacingRange:(struct _NSRange)fp12 beforeString:(id *)fp20 afterString:(id *)fp24;
@end
@interface BrowserWindowController : WindowController <ProvidesSearchTarget, ReopensAtLaunch>
{
id locationBar;
id favoritesBarView;
id tabBarView;
id backButton;
id forwardButton;
NSButton *homeButton;
NSButton *addBookmarkButton;
NSButton *autoFillButton;
NSButton *fontSmallerButton;
NSButton *fontBiggerButton;
NSButton *stopAndReloadButton;
id locationField;
id searchField;
id toggleBookmarksButton;
NSTabView *tabSwitcher;
id statusBar;
id statusStringView;
id _favoritesBar;
id _toolbarController;
LocationFieldEditor *_locationFieldEditor;
id _searchFieldEditor;
id _completionController;
id _searchSuggestionController;
BOOL _isLoading;
BOOL _isLoadingCounterpartURLForRSS;
BOOL _temporaryLocationBar;
BOOL _editedLocationField;
BOOL _editedLocationFieldWhileLoading;
BOOL _editedSearchField;
BOOL _nextSplitViewResizeIsProgrammatic;
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 _tabBarInTransition;
BOOL _parentalControlEnabled;
NSTabView *_tabSwitcherForGoBack;
NSTabView *_tabSwitcherForGoForward;
BOOL _pendingProgressUpdate;
NSURL *_pendingSearchURL;
BOOL _RSSTransitionSlowMotion;
id _RSSTransitionImageView;
NSTimer *_RSSTransitionTimer;
double _RSSTransitionStartTime;
double _RSSTransitionDuration;
BOOL _mainFrameDidFirstLayout;
BOOL _startRSSAnimationAfterFirstLayout;
}
+ (int)windowPolicyFromEventModifierFlags:(unsigned int)fp8 requireCommandKey:(BOOL)fp12;
+ (int)windowPolicyFromEventModifierFlags:(unsigned int)fp8;
+ (int)windowPolicyFromCurrentEventRequireCommandKey:(BOOL)fp8;
+ (int)windowPolicyFromCurrentEvent;
+ (int)windowPolicyFromCurrentEventRespectingKeyEquivalents:(BOOL)fp8;
+ (void)reopen;
- (id)browserDocument;
- (id)currentWebView;
- (id)currentBookmarksViewController;
- (id)windowNibName;
- (id)locationField;
- (id)searchField;
- (void)_makeFirstResponder:(id)fp8;
- (void)_makeLocationFieldFirstResponder;
- (void)_makeSearchFieldFirstResponder;
- (BOOL)_searchFieldIsFirstResponder;
- (void)updateSearchSnapBackButton;
- (void)updateSnapBackButtons;
- (void)webViewPageForSnapBackHasChanged:(id)fp8;
- (void)setUpSearchField;
- (BOOL)locationBarIsShowing;
- (void)setUpLocationBar;
- (BOOL)isShowingBookmarks;
- (BOOL)allowBookmarksChanges;
- (BOOL)firstResponderIsDescendantOf:(id)fp8;
- (id)selectedTab;
- (id)mainWebFrameView;
- (BOOL)isShowingBar:(id)fp8;
- (void)updateKeyboardLoop;
- (void)collectViewFramesForResizing;
- (void)getTabLabel:(id *)fp8 andToolTip:(id *)fp12 forWebView:(id)fp16;
- (id)tabLabelForWebView:(id)fp8;
- (void)updateLabelForTab:(id)fp8 evenIfTabBarHidden:(BOOL)fp12;
- (void)updateLabelForTab:(id)fp8;
- (id)setUpTabForWebView:(id)fp8 addToRightSide:(BOOL)fp12;
- (id)setUpTabForWebView:(id)fp8;
- (BOOL)alwaysShowTabBar;
- (struct _NSRect)defaultFrame;
- (BOOL)searchFieldShouldShowGoogleSuggestions;
- (id)completionController;
- (id)searchSuggestionController;
- (void)_preloadImages;
- (void)windowWillLoad;
- (void)windowDidLoad;
- (BOOL)_windowIsFullHeight;
- (struct _NSRect)adjustedFrameForSaving:(struct _NSRect)fp8;
- (struct _NSRect)adjustedFrameForCascade:(struct _NSRect)fp8 fromWindow:(id)fp24;
- (struct _NSSize)windowWillResize:(id)fp8 toSize:(struct _NSSize)fp12;
- (void)windowDidResize:(id)fp8;
- (void)setDocumentEdited:(BOOL)fp8;
- (void)dealloc;
- (void)setDocument:(id)fp8;
- (void)stopLoading:(id)fp8;
- (void)cancel:(id)fp8;
- (BOOL)windowWillHandleKeyEvent:(id)fp8;
- (id)_computePriorFirstResponder;
- (void)locationTextFieldURLDropped:(id)fp8;
- (id)windowWillReturnFieldEditor:(id)fp8 toObject:(id)fp12;
- (struct _NSSize)bestWindowSizeForBookmarksOutline;
- (struct _NSSize)bestWindowSizeForCurrentPageWithDefaultSize:(struct _NSSize)fp8;
- (struct _NSRect)windowWillUseStandardFrame:(id)fp8 defaultFrame:(struct _NSRect)fp12;
- (id)windowURL;
- (id)locationFieldURL;
- (void)windowShouldGoToURL:(id)fp8;
- (void)toggleLocationBarWithoutSavingConfiguration;
- (void)showLocationBarTemporarilyIfHidden;
- (void)makeLocationBarPermanentIfTemporary;
- (void)hideLocationBarIfTemporary;
- (void)selectSearchField:(id)fp8;
- (BOOL)canShowInputFields;
- (BOOL)searchField:(id)fp8 shouldRememberSearchString:(id)fp12;
- (void)setPendingSearchURL:(id)fp8;
- (void)noResponderFor:(SEL)fp8;
- (void)performQuickSearch:(id)fp8;
- (void)webFrameLoadStarted:(id)fp8;
- (void)updateLocationFieldText;
- (void)updateSecureIcon;
- (void)updateRSSButton;
- (id)createIncomingImageForRSSTransition;
- (void)removeRSSTransitionImageViewAndDisplay:(BOOL)fp8;
- (void)cancelRSSAnimationAfterSpecificInterval;
- (void)cleanUpRSSAnimationAndDisplay:(BOOL)fp8;
- (void)advanceRSSAnimation;
- (void)startRSSAnimationWithSlowMotion:(BOOL)fp8;
- (void)installRSSTransitionImageView;
- (void)goToCounterpartURLForRSSWithSlowMotion:(BOOL)fp8;
- (void)webFrameLoadCommitted:(id)fp8;
- (void)startRSSAnimation;
- (void)startRSSAnimationForFrame:(id)fp8 error:(id)fp12;
- (void)startRSSAnimationAfterSpecificInterval;
- (void)webFrameLoadDidFirstLayout:(id)fp8;
- (void)webFrameLoadFinished:(id)fp8 withError:(id)fp12;
- (void)webFrame:(id)fp8 willPerformClientRedirectToURL:(id)fp12;
- (BOOL)shouldMakeFirstResponder:(id)fp8;
- (void)tryToAutofillPasswords:(id)fp8;
- (id)locationFieldText;
- (void)setLocationFieldText:(id)fp8;
- (void)selectLocationField:(id)fp8;
- (void)tryMultipleURLs:(id)fp8 windowPolicy:(int)fp12;
- (void)goToToolbarLocationWithWindowPolicy:(int)fp8;
- (void)goToToolbarLocation:(id)fp8;
- (BOOL)locationFieldIsEmpty;
- (BOOL)searchFieldIsEmpty;
- (BOOL)locationFieldTextIsCurrentURL;
- (BOOL)locationFieldTextIsLocationFieldURL;
- (BOOL)updateStopAndReloadButton;
- (void)updateToggleBookmarksButton;
- (void)setLoading:(BOOL)fp8;
- (BOOL)isAvailableForForcedLocationUsingWindowPolicy:(int)fp8;
- (void)reloadObeyingLocationField:(id)fp8;
- (void)stopOrReload:(id)fp8;
- (void)toggleShowBookmarks:(id)fp8;
- (void)newBookmarkFolder:(id)fp8;
- (void)editAddressOfFavorite:(id)fp8;
- (void)editContentsOfFavorite:(id)fp8;
- (void)editTitleOfFavorite:(id)fp8;
- (void)revealFavorite:(id)fp8;
- (void)deleteBookmark:(id)fp8;
- (void)editTitleOfBookmarksCollection:(id)fp8;
- (void)setUpFavoritesBar;
- (void)toggleBar:(id)fp8 withAnimation:(BOOL)fp12 isShowing:(char *)fp16;
- (void)toggleFavoritesBarWithAnimation:(BOOL)fp8;
- (void)toggleFavoritesBar:(id)fp8;
- (void)toggleToolbarIgnoringCurrentEvent:(id)fp8;
- (void)toggleLocationBar:(id)fp8;
- (void)setToolbarsVisible:(BOOL)fp8;
- (BOOL)anyToolbarsVisible;
- (void)toggleTabBarWithAnimation:(BOOL)fp8;
- (void)setUpTabBar;
- (void)showTab:(id)fp8;
- (void)showTabAtIndex:(int)fp8;
- (BOOL)moreThanOneTabShowing;
- (void)updateCloseKeyEquivalents;
- (id)createTabWithFrameName:(id)fp8 andShow:(BOOL)fp12 addToRightSide:(BOOL)fp16;
- (id)createTabWithFrameName:(id)fp8;
- (id)createInactiveTabWithFrameName:(id)fp8;
- (id)createTab;
- (id)createInactiveTab;
- (void)newTab:(id)fp8;
- (void)closeTab:(id)fp8;
- (void)closeCurrentTab:(id)fp8;
- (void)closeOtherTabs:(id)fp8;
- (void)closeInactiveTabs:(id)fp8;
- (void)reloadTabsMatchingURLs:(id)fp8;
- (void)tabBarView:(id)fp8 didClickTabViewItem:(id)fp12;
- (void)tabBarView:(id)fp8 didClickCloseButtonForTabViewItem:(id)fp12 mouseDownModifierFlags:(unsigned int)fp16;
- (void)willSelectTabViewItem;
- (void)didSelectTabViewItem;
- (void)tabView:(id)fp8 willSelectTabViewItem:(id)fp12;
- (void)tabView:(id)fp8 didSelectTabViewItem:(id)fp12;
- (void)selectNextTab:(id)fp8;
- (void)selectPreviousTab:(id)fp8;
- (id)findTabForWebView:(id)fp8;
- (void)selectTab:(id)fp8;
- (void)closeTabOrWindow:(id)fp8;
- (void)webViewNameHasChanged:(id)fp8;
- (id)tabBarView:(id)fp8 menuForEvent:(id)fp12;
- (id)tabBarView:(id)fp8 menuForButtonForTabViewItem:(id)fp12 event:(id)fp16;
- (id)tabBarView:(id)fp8 menuForClippedTabViewItems:(id)fp12;
- (void)selectClippedTabViewItem:(id)fp8;
- (void)closeTabFromMenu:(id)fp8;
- (void)closeOtherTabsFromMenu:(id)fp8;
- (void)reloadTab:(id)fp8;
- (void)reloadTabFromMenu:(id)fp8;
- (void)reloadAllTabs:(id)fp8;
- (BOOL)shouldShowTabBar;
- (void)updateTabBarVisibility;
- (void)reloadParentallyRestrictedFrames;
- (void)defaultsDidChange;
- (void)windowDidBecomeKey:(id)fp8;
- (void)fixFocusRingAroundLocationField;
- (void)windowDidResignKey:(id)fp8;
- (BOOL)shouldCloseDocument;
- (id)replaceTabSwitcher:(id)fp8;
- (void)releaseTabSwitcher:(id)fp8;
- (void)releaseTabSwitchersForBackForward;
- (void)replaceTabURLs:(id)fp8 usingTabLabelsFromBookmarks:(id)fp12;
- (void)updateTabLabelForWebView:(id)fp8;
- (void)webViewSheetRequestStatusHasChanged:(id)fp8;
- (void)webViewLoadingStatusHasChanged:(id)fp8;
- (id)orderedTabs;
- (void)tabBarView:(id)fp8 performDragOperationForTabViewItem:(id)fp12 URL:(id)fp16;
- (void)tabBarView:(id)fp8 performDragOperationForURL:(id)fp12 droppedOnRightSide:(BOOL)fp16;
- (void)setUpStatusBar;
- (void)toggleStatusBarWithAnimation:(BOOL)fp8;
- (void)toggleStatusBar:(id)fp8;
- (id)_defaultStatus;
- (void)clearStatus;
- (void)setStatusMessageNow;
- (void)setStatusMessage:(id)fp8 ellipsize:(BOOL)fp12;
- (void)updateStatusMessage;
- (void)webViewStatusMessageHasChanged:(id)fp8;
- (BOOL)isStatusBarVisible;
- (void)setStatusBarVisible:(BOOL)fp8;
- (BOOL)acceptsGenericIcon;
- (void)setAcceptsGenericIcon:(BOOL)fp8;
- (void)updateLocationFieldIcon;
- (void)controlTextDidChange:(id)fp8;
- (void)controlTextDidEndEditing:(id)fp8;
- (BOOL)control:(id)fp8 textView:(id)fp12 doCommandBySelector:(SEL)fp16;
- (void)updatePopUpCheckmark:(id)fp8;
- (float)splitView:(id)fp8 constrainMaxCoordinate:(float)fp12 ofSubviewAt:(int)fp16;
- (float)splitView:(id)fp8 constrainMinCoordinate:(float)fp12 ofSubviewAt:(int)fp16;
- (float)rememberCurrentInputFieldWidthRatioForSplitView:(id)fp8;
- (void)splitViewDidResizeSubviews:(id)fp8;
- (void)splitView:(id)fp8 resizeSubviewsWithOldSize:(struct _NSSize)fp12;
- (id)targetForSearch;
- (BOOL)goToBookmarks;
- (void)goBack:(id)fp8;
- (void)goForward:(id)fp8;
- (BOOL)canGoBack;
- (BOOL)canGoForward;
- (id)backListMenuForButton:(id)fp8;
- (id)forwardListMenuForButton:(id)fp8;
- (BOOL)canAddBookmark;
- (BOOL)canGoHome;
- (BOOL)canAutoFill;
- (BOOL)canPrintFromToolbar;
- (void)goHome:(id)fp8;
- (void)addBookmark:(id)fp8;
- (BOOL)canToggleShowSearchField;
- (void)toggleShowGoogleSearch:(id)fp8;
- (BOOL)canReloadObeyingLocationField;
- (BOOL)canReloadTab:(id)fp8;
- (BOOL)canReloadAllTabs;
- (BOOL)validateUserInterfaceItem:(id)fp8;
- (BOOL)validateMenuItem:(id)fp8;
- (void)changeTextEncoding:(id)fp8;
- (void)setSearchFieldText:(id)fp8;
- (id)searchFieldText;
- (void)searchForString:(id)fp8;
- (void)chooseSearchString:(id)fp8;
- (void)recentSearchesCleared:(id)fp8;
- (void)textFieldWithControlsPerformRightButtonAction:(id)fp8;
- (void)textFieldWithControlsPerformRightButton2Action:(id)fp8;
- (void)textFieldWithControls:(id)fp8 mouseUpInRightButton:(id)fp12;
- (void)textFieldWithControls:(id)fp8 mouseUpInRightButton2:(id)fp12;
- (id)bookmarkTitleForLocationField:(id)fp8;
- (void)setProgressBarValue:(double)fp8;
- (void)updateProgressBarNow;
- (void)updateProgressBar;
- (void)updateProgressBar:(BOOL)fp8;
- (void)showCompleteProgressBar;
- (void)clearProgressBar;
- (void)tellUserThatAppIsHosed;
- (void)showWindow:(id)fp8;
- (void)makeTextLarger:(id)fp8;
- (void)makeTextSmaller:(id)fp8;
- (void)reportBugToApple:(id)fp8;
- (void)printFromToolbar:(id)fp8;
- (void)autoFill:(id)fp8;
@end