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

Side by Side Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_transition_context.h

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, 8 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 #ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_TRANSITION_CONTEXT_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_TRANSITION_CONTEXT_H_
6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_TRANSITION_CONTEXT_H_ 6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_TRANSITION_CONTEXT_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_tab_strip_placeholder_v iew.h" 10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_tab_strip_placeholder_v iew.h"
11 11
12 @class Tab;
marq (ping after 24h) 2017/03/30 06:17:45 This doesn't seem to be needed.
12 @class TabModel; 13 @class TabModel;
13 @class BrowserViewController; 14 @class BrowserViewController;
14 15
15 // Holds the informations about a browser view controller that will be used 16 // Holds the informations about a browser view controller that will be used
16 // to create the transition from the browser view controller to the tab switcher 17 // to create the transition from the browser view controller to the tab switcher
17 // and vice versa. 18 // and vice versa.
18 @interface TabSwitcherTransitionContextContent : NSObject 19 @interface TabSwitcherTransitionContextContent : NSObject
19 20
20 // Create a transition context content from a browser view controller. 21 // Create a transition context content from a browser view controller.
21 + (instancetype)tabSwitcherTransitionContextContentFromBVC: 22 + (instancetype)tabSwitcherTransitionContextContentFromBVC:
22 (BrowserViewController*)bvc; 23 (BrowserViewController*)bvc;
23 24
24 // Returns an autoreleased placeholder representing the BVC's toolbar. 25 // Returns an autoreleased placeholder representing the BVC's toolbar.
25 - (TabSwitcherTabStripPlaceholderView*)generateTabStripPlaceholderView; 26 - (TabSwitcherTabStripPlaceholderView*)generateTabStripPlaceholderView;
26 27
27 // Holds a snapshot view of the browser view controller's toolbar. 28 // Holds a snapshot view of the browser view controller's toolbar.
28 @property(nonatomic, retain) UIView* toolbarSnapshotView; 29 @property(nonatomic, retain) UIView* toolbarSnapshotView;
29 30
30 // Index of the selected tab in the browser view controller when the transition 31 // The tabID that was in the browser view controller when the transition context
31 // context content was created. 32 // content was created. Used to understand what might have changed in the model
32 @property(nonatomic, assign) NSInteger initialSelectedTabIndex; 33 // when entering and leaving the tab switcher.
34 @property(nonatomic, retain) NSString *initialTabID;
marq (ping after 24h) 2017/03/30 06:17:45 NSString* initialTabID;
33 @end 35 @end
34 36
35 // A Tab switcher transition context holds the informations needed to compute 37 // A Tab switcher transition context holds the informations needed to compute
36 // the transition from a browser view controller to the tab switcher view 38 // the transition from a browser view controller to the tab switcher view
37 // controller. 39 // controller.
38 @interface TabSwitcherTransitionContext : NSObject 40 @interface TabSwitcherTransitionContext : NSObject
39 41
40 // Create a tab switcher transition context from the current browser view 42 // Create a tab switcher transition context from the current browser view
41 // controller, the main view controller (regular) and the off the record view 43 // controller, the main view controller (regular) and the off the record view
42 // controller (incognito). 44 // controller (incognito).
(...skipping 13 matching lines...) Expand all
56 // record) browser view controller. 58 // record) browser view controller.
57 @property(nonatomic, retain) 59 @property(nonatomic, retain)
58 TabSwitcherTransitionContextContent* regularContent; 60 TabSwitcherTransitionContextContent* regularContent;
59 // The tab model of the broswser view controller selected when the transition 61 // The tab model of the broswser view controller selected when the transition
60 // context was created. 62 // context was created.
61 @property(nonatomic, retain) TabModel* initialTabModel; 63 @property(nonatomic, retain) TabModel* initialTabModel;
62 64
63 @end 65 @end
64 66
65 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_TRANSITION_CONTEXT_H_ 67 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_TRANSITION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698