| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #import "ios/clean/chrome/browser/ui/context_menu/context_menu_consumer.h" | |
| 6 | |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) | |
| 8 #error "This file requires ARC support." | |
| 9 #endif | |
| 10 | |
| 11 @interface ContextMenuItem () | |
| 12 @property(nonatomic, readwrite) NSString* title; | |
| 13 @property(nonatomic, readwrite) NSInvocation* command; | |
| 14 @end | |
| 15 | |
| 16 @implementation ContextMenuItem | |
| 17 | |
| 18 @synthesize title = _title; | |
| 19 @synthesize command = _command; | |
| 20 | |
| 21 + (instancetype)itemWithTitle:(NSString*)title command:(NSInvocation*)command { | |
| 22 ContextMenuItem* item = [[self alloc] init]; | |
| 23 item.title = title; | |
| 24 item.command = command; | |
| 25 return item; | |
| 26 } | |
| 27 | |
| 28 @end | |
| OLD | NEW |