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

Unified Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm

Issue 2612733004: Renames SessionChanges and SessionCellData to have a TabSwitcher prefix. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm
diff --git a/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm b/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm
index 37ef73f6c9a8b93747aa0cd8574625b146137e0c..6fb47212d832b8ef2bf2c3d8be957786a0c7ed75 100644
--- a/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm
+++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm
@@ -31,7 +31,6 @@
#import "ios/chrome/browser/ui/ntp/recent_tabs/views/signed_in_sync_off_view.h"
#import "ios/chrome/browser/ui/ntp/recent_tabs/views/signed_in_sync_on_no_sessions_view.h"
#import "ios/chrome/browser/ui/ntp/recent_tabs/views/signed_out_view.h"
-#import "ios/chrome/browser/ui/tab_switcher/session_changes.h"
#import "ios/chrome/browser/ui/tab_switcher/tab_switcher_cache.h"
#import "ios/chrome/browser/ui/tab_switcher/tab_switcher_header_view.h"
#import "ios/chrome/browser/ui/tab_switcher/tab_switcher_model.h"
@@ -1085,16 +1084,16 @@ enum class SnapshotViewOption {
return [_tabSwitcherModel sessionCount] + promoPanel;
}
-- (SessionCellData*)sessionCellDataAtIndex:(NSUInteger)index {
+- (TabSwitcherSessionCellData*)sessionCellDataAtIndex:(NSUInteger)index {
if (index == kLocalTabsOffTheRecordPanelIndex) {
// If has incognito tabs return incognito cell data.
- return [SessionCellData incognitoSessionCellData];
+ return [TabSwitcherSessionCellData incognitoSessionCellData];
} else if (index == kLocalTabsOnTheRecordPanelIndex) {
- return [SessionCellData openTabSessionCellData];
+ return [TabSwitcherSessionCellData openTabSessionCellData];
} else {
if (![_tabSwitcherModel distantSessionCount]) {
// Display promo panel cell if there is no distant sessions.
- return [SessionCellData otherDevicesSessionCellData];
+ return [TabSwitcherSessionCellData otherDevicesSessionCellData];
} else {
index -= kHeaderDistantSessionIndexOffset;
@@ -1122,8 +1121,9 @@ enum class SnapshotViewOption {
cellType = kLaptopRemoteSessionCell;
break;
}
- SessionCellData* sessionData = [[[SessionCellData alloc]
- initWithSessionCellType:cellType] autorelease];
+ TabSwitcherSessionCellData* sessionData =
+ [[[TabSwitcherSessionCellData alloc] initWithSessionCellType:cellType]
+ autorelease];
sessionData.title = cellTitle;
return sessionData;
}
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/session_changes.mm ('k') | ios/chrome/browser/ui/tab_switcher/tab_switcher_header_cell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698