OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #import <OpenGLES/EAGL.h> | 7 #import <OpenGLES/EAGL.h> |
8 #import <OpenGLES/ES1/gl.h> | 8 #import <OpenGLES/ES1/gl.h> |
9 #import <OpenGLES/ES1/glext.h> | 9 #import <OpenGLES/ES1/glext.h> |
10 #import <OpenGLES/ES2/gl.h> | 10 #import <OpenGLES/ES2/gl.h> |
11 #import <OpenGLES/ES2/glext.h> | 11 #import <OpenGLES/ES2/glext.h> |
12 #import <QuartzCore/QuartzCore.h> | 12 #import <QuartzCore/QuartzCore.h> |
13 #import <UIKit/UIKit.h> | 13 #import <UIKit/UIKit.h> |
14 #include "SkWindow.h" | 14 #include "SkOSWindow_ios.h" |
15 class SkOSWindow; | 15 |
16 class SkEvent; | 16 class SkEvent; |
17 @class SkUIView; | 17 @class SkUIView; |
18 | 18 |
19 @protocol SkUIViewOptionsDelegate <NSObject> | 19 @protocol SkUIViewOptionsDelegate <NSObject> |
20 @optional | 20 @optional |
21 // Called when the view needs to handle adding an SkOSMenu | 21 // Called when the view needs to handle adding an SkOSMenu |
22 - (void) view:(SkUIView*)view didAddMenu:(const SkOSMenu*)menu; | 22 - (void) view:(SkUIView*)view didAddMenu:(const SkOSMenu*)menu; |
23 - (void) view:(SkUIView*)view didUpdateMenu:(SkOSMenu*)menu; | 23 - (void) view:(SkUIView*)view didUpdateMenu:(SkOSMenu*)menu; |
24 @end | 24 @end |
25 | 25 |
(...skipping 10 matching lines...) Expand all Loading... |
36 - (id)initWithDefaults; | 36 - (id)initWithDefaults; |
37 - (void)setUpWindow; | 37 - (void)setUpWindow; |
38 - (void)forceRedraw; | 38 - (void)forceRedraw; |
39 - (void)drawInRaster; | 39 - (void)drawInRaster; |
40 | 40 |
41 - (void)setSkTitle:(const char*)title; | 41 - (void)setSkTitle:(const char*)title; |
42 - (void)onAddMenu:(const SkOSMenu*)menu; | 42 - (void)onAddMenu:(const SkOSMenu*)menu; |
43 - (void)onUpdateMenu:(SkOSMenu*)menu; | 43 - (void)onUpdateMenu:(SkOSMenu*)menu; |
44 - (void)postInvalWithRect:(const SkIRect*)rectOrNil; | 44 - (void)postInvalWithRect:(const SkIRect*)rectOrNil; |
45 - (BOOL)onHandleEvent:(const SkEvent&)event; | 45 - (BOOL)onHandleEvent:(const SkEvent&)event; |
| 46 - (void)getAttachmentInfo:(SkOSWindow::AttachmentInfo*)info; |
| 47 |
46 @end | 48 @end |
OLD | NEW |