Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Side by Side Diff: ios/clean/chrome/browser/ui/tools/tools_mediator.mm

Issue 2737563006: [ios] Adds support for Find in Page to the new architecture. (Closed)
Patch Set: Fix GN. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/tools/tools_coordinator.mm ('k') | ios/shared/chrome/browser/ui/browser_list/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698