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

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

Issue 2776083003: Use correct snapshot for the tab transition animation on iPad (Closed)
Patch Set: Formatting change to keep to max number of columns Created 3 years, 9 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_transition_context.mm
diff --git a/ios/chrome/browser/ui/tab_switcher/tab_switcher_transition_context.mm b/ios/chrome/browser/ui/tab_switcher/tab_switcher_transition_context.mm
index 7968e3ce70a502df2f99846b5d26cb8d4646e928..0780e2dcb3d4f4329100a0dcb1c49e2b585e721e 100644
--- a/ios/chrome/browser/ui/tab_switcher/tab_switcher_transition_context.mm
+++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_transition_context.mm
@@ -32,10 +32,8 @@
TabSwitcherTransitionContextContent* transitionContextContent =
[[[TabSwitcherTransitionContextContent alloc] init] autorelease];
- Tab* currentTab = [[bvc tabModel] currentTab];
- transitionContextContent.initialSelectedTabIndex =
- [[bvc tabModel] indexOfTab:currentTab];
-
+ transitionContextContent.initialTabID = bvc.tabModel.currentTab.tabId;
+
if (![bvc isViewLoaded]) {
[bvc ensureViewCreated];
[bvc.view setFrame:[[UIScreen mainScreen] bounds]];
@@ -62,7 +60,7 @@
}
@synthesize toolbarSnapshotView = _toolbarSnapshotView;
-@synthesize initialSelectedTabIndex = _initialSelectedTabIndex;
+@synthesize initialTabID = _initialTabID;
- (instancetype)init {
self = [super init];

Powered by Google App Engine
This is Rietveld 408576698