diff -r 000000000000 -r 6474c204b198 gfx/skia/trunk/src/views/mac/SkOptionsTableView.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gfx/skia/trunk/src/views/mac/SkOptionsTableView.h Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,40 @@ + +/* + * Copyright 2011 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#import +#import "SkNSView.h" +#import "SkOSMenu.h" +#import "SkEvent.h" +@interface SkOptionItem : NSObject { + NSCell* fCell; + const SkOSMenu::Item* fItem; +} +@property (nonatomic, assign) const SkOSMenu::Item* fItem; +@property (nonatomic, retain) NSCell* fCell; +@end + +@interface SkOptionsTableView : NSTableView { + NSMutableArray* fItems; + const SkTDArray* fMenus; + BOOL fShowKeys; +} +@property (nonatomic, retain) NSMutableArray* fItems; + +- (void)registerMenus:(const SkTDArray*)menus; +- (void)updateMenu:(const SkOSMenu*)menu; +- (void)loadMenu:(const SkOSMenu*)menu; +- (IBAction)toggleKeyEquivalents:(id)sender; + +- (NSCell*)createAction; +- (NSCell*)createList:(NSArray*)items current:(int)index; +- (NSCell*)createSlider:(float)value min:(float)min max:(float)max; +- (NSCell*)createSwitch:(BOOL)state; +- (NSCell*)createTextField:(NSString*)placeHolder; +- (NSCell*)createTriState:(NSCellStateValue)state; + +@end