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

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 changes 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
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/tab_switcher_transition_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a2f3d4362b0e1d68eed96af0ca464af0f28aff2f 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,9 +32,7 @@
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];
@@ -62,7 +60,7 @@
}
@synthesize toolbarSnapshotView = _toolbarSnapshotView;
-@synthesize initialSelectedTabIndex = _initialSelectedTabIndex;
+@synthesize initialTabID = _initialTabID;
- (instancetype)init {
self = [super init];
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/tab_switcher_transition_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698