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

Side by Side Diff: ios/clean/chrome/browser/ui/toolbar/toolbar_coordinator.mm

Issue 2592983003: [Clean Skeleton] Migrate code to clean/ (Closed)
Patch Set: Rebased Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // ====== New Architecture ===== 5 // ====== New Architecture =====
6 // = This code is only used in the new iOS Chrome architecture. = 6 // = This code is only used in the new iOS Chrome architecture. =
7 // ============================================================================ 7 // ============================================================================
8 8
9 #import "ios/chrome/browser/ui/toolbar/toolbar_coordinator.h" 9 #import "ios/clean/chrome/browser/ui/toolbar/toolbar_coordinator.h"
10 10
11 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
12 #import "ios/chrome/browser/browser_coordinator+internal.h" 12 #import "ios/clean/chrome/browser/browser_coordinator+internal.h"
13 #import "ios/chrome/browser/ui/commands/toolbar_commands.h" 13 #import "ios/clean/chrome/browser/ui/commands/toolbar_commands.h"
14 #import "ios/chrome/browser/ui/toolbar/toolbar_view_controller.h" 14 #import "ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.h"
15 #import "ios/chrome/browser/ui/tools/tools_coordinator.h" 15 #import "ios/clean/chrome/browser/ui/tools/tools_coordinator.h"
16 #include "ios/web/public/web_state/web_state.h" 16 #include "ios/web/public/web_state/web_state.h"
17 17
18 #if !defined(__has_feature) || !__has_feature(objc_arc) 18 #if !defined(__has_feature) || !__has_feature(objc_arc)
19 #error "This file requires ARC support." 19 #error "This file requires ARC support."
20 #endif 20 #endif
21 21
22 @interface ToolbarCoordinator ()<ToolbarCommands> 22 @interface ToolbarCoordinator ()<ToolbarCommands>
23 @property(nonatomic, weak) ToolsCoordinator* toolsMenuCoordinator; 23 @property(nonatomic, weak) ToolsCoordinator* toolsMenuCoordinator;
24 @property(nonatomic, strong) ToolbarViewController* viewController; 24 @property(nonatomic, strong) ToolbarViewController* viewController;
25 @end 25 @end
(...skipping 27 matching lines...) Expand all
53 [toolsCoordinator start]; 53 [toolsCoordinator start];
54 self.toolsMenuCoordinator = toolsCoordinator; 54 self.toolsMenuCoordinator = toolsCoordinator;
55 } 55 }
56 56
57 - (void)closeToolsMenu { 57 - (void)closeToolsMenu {
58 [self.toolsMenuCoordinator stop]; 58 [self.toolsMenuCoordinator stop];
59 [self removeChildCoordinator:self.toolsMenuCoordinator]; 59 [self removeChildCoordinator:self.toolsMenuCoordinator];
60 } 60 }
61 61
62 @end 62 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698