diff options
Diffstat (limited to 'src/views/mac/SkNSView.h')
-rw-r--r-- | src/views/mac/SkNSView.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/views/mac/SkNSView.h b/src/views/mac/SkNSView.h deleted file mode 100644 index bf83c61c25..0000000000 --- a/src/views/mac/SkNSView.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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 <QuartzCore/QuartzCore.h> -#import <Cocoa/Cocoa.h> -#import "SkWindow.h" - -class SkEvent; -@class SkNSView; - -@protocol SkNSViewOptionsDelegate <NSObject> -@optional -// Called when the view needs to handle adding an SkOSMenu -- (void) view:(SkNSView*)view didAddMenu:(const SkOSMenu*)menu; -- (void) view:(SkNSView*)view didUpdateMenu:(const SkOSMenu*)menu; -@end - -@interface SkNSView : NSView -@property (nonatomic, retain) NSString* fTitle; -#if SK_SUPPORT_GPU -@property (nonatomic, retain) NSOpenGLContext* fGLContext; -#endif -@property (nonatomic, assign) id<SkNSViewOptionsDelegate> fOptionsDelegate; - -- (id)initWithDefaults; -- (void)setNSViewSize:(NSSize)size; -- (void)setUpWindow; -- (void)resizeSkView:(NSSize)newSize; -- (void)setSkTitle:(const char*)title; -- (void)onAddMenu:(const SkOSMenu*)menu; -- (void)onUpdateMenu:(const SkOSMenu*)menu; -- (void)postInvalWithRect:(const SkIRect*)rectOrNil; -- (BOOL)onHandleEvent:(const SkEvent&)event; - -- (bool)attach:(SkOSWindow::SkBackEndTypes)attachType withMSAASampleCount:(int) sampleCount andGetInfo:(SkOSWindow::AttachmentInfo*) info; -- (void)detach; -- (void)present; - -- (void)setVSync:(bool)enable; - -- (void)freeNativeWind; - -@end - -@interface SkNSView() - @property (nonatomic, readwrite) SkOSWindow *fWind; -@end |