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

Side by Side Diff: ios/clean/chrome/browser/ui/tab_grid/tab_grid_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/tab_grid/tab_grid_coordinator.h" 9 #import "ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.h"
10 10
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/strings/sys_string_conversions.h" 13 #include "base/strings/sys_string_conversions.h"
14 #import "ios/chrome/browser/browser_coordinator+internal.h"
15 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
16 #import "ios/chrome/browser/ui/commands/settings_commands.h" 15 #import "ios/clean/chrome/browser/browser_coordinator+internal.h"
17 #import "ios/chrome/browser/ui/commands/tab_commands.h" 16 #import "ios/clean/chrome/browser/ui/commands/settings_commands.h"
18 #import "ios/chrome/browser/ui/commands/tab_grid_commands.h" 17 #import "ios/clean/chrome/browser/ui/commands/tab_commands.h"
19 #import "ios/chrome/browser/ui/settings/settings_coordinator.h" 18 #import "ios/clean/chrome/browser/ui/commands/tab_grid_commands.h"
20 #import "ios/chrome/browser/ui/tab/tab_coordinator.h" 19 #import "ios/clean/chrome/browser/ui/settings/settings_coordinator.h"
21 #import "ios/chrome/browser/ui/tab_grid/tab_grid_view_controller.h" 20 #import "ios/clean/chrome/browser/ui/tab/tab_coordinator.h"
21 #import "ios/clean/chrome/browser/ui/tab_grid/tab_grid_view_controller.h"
22 #import "ios/web/public/navigation_manager.h" 22 #import "ios/web/public/navigation_manager.h"
23 #include "ios/web/public/web_state/web_state.h" 23 #include "ios/web/public/web_state/web_state.h"
24 #import "net/base/mac/url_conversions.h" 24 #import "net/base/mac/url_conversions.h"
25 #include "ui/base/page_transition_types.h" 25 #include "ui/base/page_transition_types.h"
26 26
27 #if !defined(__has_feature) || !__has_feature(objc_arc) 27 #if !defined(__has_feature) || !__has_feature(objc_arc)
28 #error "This file requires ARC support." 28 #error "This file requires ARC support."
29 #endif 29 #endif
30 30
31 @interface TabGridCoordinator ()<TabGridDataSource, 31 @interface TabGridCoordinator ()<TabGridDataSource,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 params.transition_type = ui::PAGE_TRANSITION_LINK; 130 params.transition_type = ui::PAGE_TRANSITION_LINK;
131 _placeholderWebState->GetNavigationManager()->LoadURLWithParams(params); 131 _placeholderWebState->GetNavigationManager()->LoadURLWithParams(params);
132 if (!self.children.count) { 132 if (!self.children.count) {
133 // Placeholder — since there's only one tab in the grid, just open 133 // Placeholder — since there's only one tab in the grid, just open
134 // the tab at index path (0,0). 134 // the tab at index path (0,0).
135 [self showTabAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]]; 135 [self showTabAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
136 } 136 }
137 } 137 }
138 138
139 @end 139 @end
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.h ('k') | ios/clean/chrome/browser/ui/tab_grid/tab_grid_tab_cell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698