From 6e437b7d177cabdb9822b437ed2caefebe6b469b Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Thu, 3 Nov 2016 16:14:27 -0400 Subject: [PATCH] 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 Reviewed-by: Mike Klein --- experimental/iOSSampleApp/Shared/SkUIView.h | 4 ++-- experimental/iOSSampleApp/Shared/SkUIView.mm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/experimental/iOSSampleApp/Shared/SkUIView.h b/experimental/iOSSampleApp/Shared/SkUIView.h index 45c4df0..80bd339 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 df55619..5969773 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]; } -- 2.7.4