aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/iOSSampleApp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2016-11-03 16:14:27 -0400
committerGravatar Mike Klein <mtklein@chromium.org>2016-11-03 20:48:07 +0000
commit6e437b7d177cabdb9822b437ed2caefebe6b469b (patch)
tree77f0ed7b557afdc80867b318e673eefe7c65e937 /experimental/iOSSampleApp
parent68057332d03017de933d9784213d8ece4adfb679 (diff)
more const SkOSMenus.
CQ_INCLUDE_TRYBOTS=master.client.skia.compile:Build-Mac-Clang-Arm7-Debug-iOS-Trybot BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4351 Change-Id: I71f77aaad36701eca7a013959e751a843c6f5e3d Reviewed-on: https://skia-review.googlesource.com/4351 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'experimental/iOSSampleApp')
-rw-r--r--experimental/iOSSampleApp/Shared/SkUIView.h4
-rw-r--r--experimental/iOSSampleApp/Shared/SkUIView.mm2
2 files changed, 3 insertions, 3 deletions
diff --git a/experimental/iOSSampleApp/Shared/SkUIView.h b/experimental/iOSSampleApp/Shared/SkUIView.h
index 45c4df0abd..80bd339505 100644
--- a/experimental/iOSSampleApp/Shared/SkUIView.h
+++ b/experimental/iOSSampleApp/Shared/SkUIView.h
@@ -20,7 +20,7 @@ class SkEvent;
@optional
// Called when the view needs to handle adding an SkOSMenu
- (void) view:(SkUIView*)view didAddMenu:(const SkOSMenu*)menu;
-- (void) view:(SkUIView*)view didUpdateMenu:(SkOSMenu*)menu;
+- (void) view:(SkUIView*)view didUpdateMenu:(const SkOSMenu*)menu;
@end
@interface SkUIView : UIView {
@@ -40,7 +40,7 @@ class SkEvent;
- (void)setSkTitle:(const char*)title;
- (void)onAddMenu:(const SkOSMenu*)menu;
-- (void)onUpdateMenu:(SkOSMenu*)menu;
+- (void)onUpdateMenu:(const SkOSMenu*)menu;
- (void)postInvalWithRect:(const SkIRect*)rectOrNil;
- (BOOL)onHandleEvent:(const SkEvent&)event;
- (void)getAttachmentInfo:(SkOSWindow::AttachmentInfo*)info;
diff --git a/experimental/iOSSampleApp/Shared/SkUIView.mm b/experimental/iOSSampleApp/Shared/SkUIView.mm
index df55619e4c..59697739d8 100644
--- a/experimental/iOSSampleApp/Shared/SkUIView.mm
+++ b/experimental/iOSSampleApp/Shared/SkUIView.mm
@@ -108,7 +108,7 @@
- (void)onAddMenu:(const SkOSMenu*)menu {
[self.fOptionsDelegate view:self didAddMenu:menu];
}
-- (void)onUpdateMenu:(SkOSMenu*)menu {
+- (void)onUpdateMenu:(const SkOSMenu*)menu {
[self.fOptionsDelegate view:self didUpdateMenu:menu];
}