OLD | NEW |
1 #import "SkUIView.h" | 1 #import "SkUIView.h" |
2 #include "SkCanvas.h" | 2 #include "SkCanvas.h" |
3 #include "SkCGUtils.h" | 3 #include "SkCGUtils.h" |
4 @implementation SkUIView | 4 @implementation SkUIView |
5 | 5 |
6 @synthesize fWind, fTitleItem, fOptionsDelegate; | 6 @synthesize fWind, fTitleItem, fOptionsDelegate; |
7 | 7 |
8 - (id)initWithDefaults { | 8 - (id)initWithDefaults { |
9 fWind = NULL; | 9 fWind = NULL; |
10 return self; | 10 return self; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 - (void)setSkTitle:(const char *)title { | 86 - (void)setSkTitle:(const char *)title { |
87 if (fTitleItem) { | 87 if (fTitleItem) { |
88 fTitleItem.title = [NSString stringWithUTF8String:title]; | 88 fTitleItem.title = [NSString stringWithUTF8String:title]; |
89 } | 89 } |
90 } | 90 } |
91 | 91 |
92 - (BOOL)onHandleEvent:(const SkEvent&)evt { | 92 - (BOOL)onHandleEvent:(const SkEvent&)evt { |
93 return false; | 93 return false; |
94 } | 94 } |
95 | 95 |
| 96 - (void)getAttachmentInfo:(SkOSWindow::AttachmentInfo*)info { |
| 97 // we don't have a GL context. |
| 98 info->fSampleCount = 0; |
| 99 info->fStencilBits = 0; |
| 100 } |
| 101 |
| 102 |
96 #include "SkOSMenu.h" | 103 #include "SkOSMenu.h" |
97 - (void)onAddMenu:(const SkOSMenu*)menu { | 104 - (void)onAddMenu:(const SkOSMenu*)menu { |
98 [self.fOptionsDelegate view:self didAddMenu:menu]; | 105 [self.fOptionsDelegate view:self didAddMenu:menu]; |
99 } | 106 } |
100 - (void)onUpdateMenu:(SkOSMenu*)menu { | 107 - (void)onUpdateMenu:(SkOSMenu*)menu { |
101 [self.fOptionsDelegate view:self didUpdateMenu:menu]; | 108 [self.fOptionsDelegate view:self didUpdateMenu:menu]; |
102 } | 109 } |
103 | 110 |
104 - (void)postInvalWithRect:(const SkIRect*)r { | 111 - (void)postInvalWithRect:(const SkIRect*)r { |
105 [self performSelector:@selector(drawInRaster) withObject:nil afterDelay:0]; | 112 [self performSelector:@selector(drawInRaster) withObject:nil afterDelay:0]; |
106 [self setNeedsDisplay]; | 113 [self setNeedsDisplay]; |
107 } | 114 } |
108 | 115 |
109 @end | 116 @end |
OLD | NEW |