-
Notifications
You must be signed in to change notification settings - Fork 2
/
WebView+Amnesty.h
44 lines (34 loc) · 1.08 KB
/
WebView+Amnesty.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
//
// WebView+Amnesty.h
// Amnesty
//
// Created by Danny Espinoza on 6/12/07.
// Copyright 2007 Mesa Dynamics, LLC. All rights reserved.
//
#import <WebKit/WebKit.h>
typedef enum {
WebDashboardBehaviorAlwaysSendMouseEventsToAllWindows,
WebDashboardBehaviorAlwaysSendActiveNullEventsToPlugIns,
WebDashboardBehaviorAlwaysAcceptsFirstMouse,
WebDashboardBehaviorAllowWheelScrolling
} WebDashboardBehavior;
@interface WebView (ForcePublic)
- (void)setDrawsBackground:(BOOL)flag;
- (BOOL)drawsBackground;
- (void)_setDashboardBehavior:(WebDashboardBehavior)behavior to:(BOOL)flag;
- (BOOL)_dashboardBehavior:(WebDashboardBehavior)behavior;
+ (void)_setShouldUseFontSmoothing:(BOOL)f;
- (void)setProhibitsMainFrameScrolling:(BOOL)prohibits;
- (void)_close;
@end
typedef enum {
flashNone,
flashStandard,
flashTransparent
} FlashIdentifier;
@interface WebView (Amnesty)
- (BOOL)containsFlash;
- (BOOL)containsFlashInFrame:(WebFrame*)frame;
- (FlashIdentifier)containsFlashWithTransparency:(BOOL)trans;
- (FlashIdentifier)containsFlashWithTransparency:(BOOL)trans webFrame:(WebFrame*)frame;
@end