Repository navigation
Expand file tree
/
Copy pathTransparentWebViewAppDelegate.h
More file actions
69 lines (50 loc) · 2.03 KB
/
Copy pathTransparentWebViewAppDelegate.h
File metadata and controls
69 lines (50 loc) · 2.03 KB
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
//
// TransparentWebViewAppDelegate.h
// TransparentWebView
//
// Created by Dirk van Oosterbosch on 22-12-10.
// Copyright 2010 IR labs. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <WebKit/WebView.h>
#import <WebKit/WebFrame.h>
@class PreferenceController;
extern NSString *const TWVLocationUrlKey;
extern NSString *const TWVBorderlessWindowKey;
extern NSString *const TWVDrawCroppedUnderTitleBarKey;
extern NSString *const TWVMainTransparantWindowFrameKey;
#if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5)
@interface TransparentWebViewAppDelegate : NSObject {
#else
@interface TransparentWebViewAppDelegate : NSObject <NSApplicationDelegate, NSWindowDelegate> {
#endif
NSWindow *window;
WebView *theWebView;
NSMenuItem *borderlessWindowMenuItem;
NSMenuItem *cropUnderTitleBarMenuItem;
NSWindow *locationSheet;
NSString *urlString;
PreferenceController *preferenceController;
NSTimer *automaticReloadTimer;
}
@property (assign) IBOutlet NSWindow *window;
@property (assign) IBOutlet WebView *theWebView;
@property (assign) IBOutlet NSMenuItem *borderlessWindowMenuItem;
@property (assign) IBOutlet NSMenuItem *cropUnderTitleBarMenuItem;
@property (assign) IBOutlet NSWindow *locationSheet;
@property (nonatomic, retain) NSString *urlString;
@property (nonatomic, retain) PreferenceController *preferenceController;
//- (IBAction)reloadPage:(id)sender;
- (IBAction)showLocationSheet:(id)sender;
- (IBAction)endLocationSheet:(id)sender;
- (IBAction)cancelLocationSheet:(id)sender;
- (IBAction)toggleBorderlessWindow:(id)sender;
- (IBAction)toggleCropUnderTitleBar:(id)sender;
- (IBAction)showPreferencePanel:(id)sender;
- (void)resetAutomaticReloadTimer;
- (void)loadUrlString:(NSString *)anUrlString IntoWebView:(WebView *)aWebView;
- (void)setBorderlessWindowMenuItemState:(BOOL)booleanState;
- (void)setCropUnderTitleBarMenuItemState:(BOOL)booleanState;
- (void)replaceWindowWithBorderlessWindow:(BOOL)borderlessFlag WithContentRect:(NSRect)contentRect;
- (void)cropContentUnderTitleBar:(BOOL)cropUnderTitleFlag;
@end