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

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

Issue 2588733002: Upstream Chrome on iOS source code [9/11]. (Closed)
Patch Set: Created 4 years 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
(Empty)
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
3 // found in the LICENSE file.
4
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_
7
8 #import <UIKit/UIKit.h>
9
10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_tab_strip_placeholder_v iew.h"
11
12 @class TabModel;
13 @class BrowserViewController;
14
15 // 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 // and vice versa.
18 @interface TabSwitcherTransitionContextContent : NSObject
19
20 // Create a transition context content from a browser view controller.
21 + (instancetype)tabSwitcherTransitionContextContentFromBVC:
22 (BrowserViewController*)bvc;
23
24 // Returns an autoreleased placeholder representing the BVC's toolbar.
25 - (TabSwitcherTabStripPlaceholderView*)generateTabStripPlaceholderView;
26
27 // Holds a snapshot view of the browser view controller's toolbar.
28 @property(nonatomic, retain) UIView* toolbarSnapshotView;
29
30 // Index of the selected tab in the browser view controller when the transition
31 // context content was created.
32 @property(nonatomic, assign) NSInteger initialSelectedTabIndex;
33 @end
34
35 // A Tab switcher transition context holds the informations needed to compute
36 // the transition from a browser view controller to the tab switcher view
37 // controller.
38 @interface TabSwitcherTransitionContext : NSObject
39
40 // Create a tab switcher transition context from the current browser view
41 // controller, the main view controller (regular) and the off the record view
42 // controller (incognito).
43 + (instancetype)
44 tabSwitcherTransitionContextWithCurrent:(BrowserViewController*)currentBVC
45 mainBVC:(BrowserViewController*)mainBVC
46 otrBVC:(BrowserViewController*)otrBVC;
47
48 // The snapshot image of the currently selected tab of the current view
49 // controller.
50 @property(nonatomic, retain) UIImage* tabSnapshotImage;
51 // The tab switcher transition context content for the incognito (or main)
52 // browser view controller.
53 @property(nonatomic, retain)
54 TabSwitcherTransitionContextContent* incognitoContent;
55 // The tab switcher transition context content for the regular (or off the
56 // record) browser view controller.
57 @property(nonatomic, retain)
58 TabSwitcherTransitionContextContent* regularContent;
59 // The tab model of the broswser view controller selected when the transition
60 // context was created.
61 @property(nonatomic, retain) TabModel* initialTabModel;
62
63 @end
64
65 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_TRANSITION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698