Pass authtoken in from user, and add a wrapper for web UI on Mac.

This commit is contained in:
Adam Ierymenko 2015-05-06 20:41:51 -07:00
commit 5b54612d91
68 changed files with 7537 additions and 1 deletions

View file

@ -0,0 +1,31 @@
//
// MenuProxy.h
// MacGap
//
// Created by Joe Hildebrand on 1/14/12.
// Copyright (c) 2012 Twitter. All rights reserved.
//
#import "Command.h"
@class MenuItemProxy;
@interface MenuProxy : Command {
NSMenu *menu;
}
+ (MenuProxy*)proxyWithContext:(JSContextRef)aContext andMenu:(NSMenu*)aMenu;
- (MenuItemProxy*)addItemWithTitle:(NSString*)title
keyEquivalent:(NSString*)aKey
callback:(WebScriptObject*)aCallback
atIndex:(NSInteger)index;
- (MenuItemProxy*)addSeparator;
- (MenuItemProxy*)itemForKey:(id)key;
- (MenuProxy*)removeItem:(id)key;
+ (NSString*)getKeyFromString:(NSString*)keyCommand;
+ (NSUInteger*)getModifiersFromString:(NSString*)keyCommand;
@end