Command.h 626 B

123456789101112131415161718192021222324252627
  1. //
  2. // Command.h
  3. // MG
  4. //
  5. // Created by Tim Debo on 5/23/14.
  6. //
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <JavaScriptCore/JavaScriptCore.h>
  10. @class WindowController, WebView;
  11. @interface Command : NSObject
  12. {
  13. JSContextRef jsContext;
  14. }
  15. + (JSValue *)makeConstructor:(id)block inContext:(JSContext *)context;
  16. + (JSValue *)constructor;
  17. - (NSString*) exportName;
  18. - (void) initializePlugin;
  19. - (id) initWithWindowController: (WindowController*)aWindowController;
  20. - (id) initWithContext:(JSContext*)aContext;
  21. @property (nonatomic, weak) WebView* webView;
  22. @property (nonatomic, weak) WindowController* windowController;
  23. @end