OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "ios/clean/chrome/browser/ui/tools/tools_mediator.h" | 5 #import "ios/clean/chrome/browser/ui/tools/tools_mediator.h" |
6 | 6 |
7 #import "ios/clean/chrome/browser/ui/actions/settings_actions.h" | 7 #import "ios/clean/chrome/browser/ui/actions/settings_actions.h" |
| 8 #import "ios/clean/chrome/browser/ui/tools/tools_actions.h" |
8 #import "ios/clean/chrome/browser/ui/tools/tools_consumer.h" | 9 #import "ios/clean/chrome/browser/ui/tools/tools_consumer.h" |
9 #import "ios/clean/chrome/browser/ui/tools/tools_menu_item.h" | 10 #import "ios/clean/chrome/browser/ui/tools/tools_menu_item.h" |
10 | 11 |
11 #if !defined(__has_feature) || !__has_feature(objc_arc) | 12 #if !defined(__has_feature) || !__has_feature(objc_arc) |
12 #error "This file requires ARC support." | 13 #error "This file requires ARC support." |
13 #endif | 14 #endif |
14 | 15 |
15 @interface ToolsMediator () | 16 @interface ToolsMediator () |
16 @property(nonatomic, strong) id<ToolsConsumer> consumer; | 17 @property(nonatomic, strong) id<ToolsConsumer> consumer; |
17 @end | 18 @end |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 51 |
51 menuItems[3].title = @"Reading List"; | 52 menuItems[3].title = @"Reading List"; |
52 | 53 |
53 menuItems[4].title = @"Recent Tabs"; | 54 menuItems[4].title = @"Recent Tabs"; |
54 | 55 |
55 menuItems[5].title = @"History"; | 56 menuItems[5].title = @"History"; |
56 | 57 |
57 menuItems[6].title = @"Report an Issue"; | 58 menuItems[6].title = @"Report an Issue"; |
58 | 59 |
59 menuItems[7].title = @"Find in Page…"; | 60 menuItems[7].title = @"Find in Page…"; |
| 61 menuItems[7].action = @selector(showFindInPage); |
60 | 62 |
61 menuItems[8].title = @"Request Desktop Site"; | 63 menuItems[8].title = @"Request Desktop Site"; |
62 | 64 |
63 menuItems[9].title = @"Settings"; | 65 menuItems[9].title = @"Settings"; |
64 menuItems[9].action = @selector(showSettings:); | 66 menuItems[9].action = @selector(showSettings:); |
65 | 67 |
66 menuItems[10].title = @"Help"; | 68 menuItems[10].title = @"Help"; |
67 | 69 |
68 [_consumer setToolsMenuItems:menuItems]; | 70 [_consumer setToolsMenuItems:menuItems]; |
69 } | 71 } |
70 | 72 |
71 @end | 73 @end |
OLD | NEW |