| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // WindowController.h
- // MG
- //
- // Created by Tim Debo on 5/19/14.
- //
- //
- #import <Cocoa/Cocoa.h>
- #import <WebKit/WebKit.h>
- #import "MacGap.h"
- @class WebViewDelegate;
- @interface WindowController : NSWindowController
- {
- IBOutlet WebView* webView;
- IBOutlet NSWindow* window;
- WebViewDelegate* webViewDelegate;
- JSContext* jsContext;
- }
- @property (nonatomic, readonly, strong) NSMutableDictionary* pluginObjects;
- @property (nonatomic, readonly, strong) NSDictionary* pluginsMap;
- @property (nonatomic, readonly, strong) NSMutableDictionary* settings;
- @property (strong) JSContext* jsContext;
- @property (retain) WebView* webView;
- @property (strong) IBOutlet NSMenu *mainMenu;
- @property (retain) WebViewDelegate* webViewDelegate;
- @property (retain) NSURL* url;
- @property (nonatomic, readonly) NSString* userAgent;
- - (id) initWithURL:(NSString *) url;
- - (id) initWithRequest: (NSURLRequest *)request;
- - (id)getCommandInstance:(NSString*)pluginName;
- //- (void)registerPlugin:(Plugin*)plugin withClassName:(NSString*)className;
- //- (void)registerPlugin:(Plugin*)plugin withPluginName:(NSString*)pluginName;
- - (void) setWindowParams;
- @end
|