OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_TABS_TAB_H_ | 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_H_ |
6 #define IOS_CHROME_BROWSER_TABS_TAB_H_ | 6 #define IOS_CHROME_BROWSER_TABS_TAB_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // Do not add new calls to this method. | 106 // Do not add new calls to this method. |
107 @property(nonatomic, readonly) const GURL& url; | 107 @property(nonatomic, readonly) const GURL& url; |
108 | 108 |
109 // Returns the URL of the last committed NavigationItem for this Tab. | 109 // Returns the URL of the last committed NavigationItem for this Tab. |
110 @property(nonatomic, readonly) const GURL& lastCommittedURL; | 110 @property(nonatomic, readonly) const GURL& lastCommittedURL; |
111 | 111 |
112 // Returns the URL of the visible NavigationItem for this Tab. | 112 // Returns the URL of the visible NavigationItem for this Tab. |
113 @property(nonatomic, readonly) const GURL& visibleURL; | 113 @property(nonatomic, readonly) const GURL& visibleURL; |
114 | 114 |
115 // The Passkit Dialog provider used to show the UI to download a passkit object. | 115 // The Passkit Dialog provider used to show the UI to download a passkit object. |
116 @property(nonatomic, assign) id<PassKitDialogProvider> passKitDialogProvider; | 116 @property(nonatomic, weak) id<PassKitDialogProvider> passKitDialogProvider; |
117 | 117 |
118 // The current title of the tab. | 118 // The current title of the tab. |
119 @property(nonatomic, readonly) NSString* title; | 119 @property(nonatomic, readonly) NSString* title; |
120 | 120 |
121 // Original page title or nil if the page did not provide one. | 121 // Original page title or nil if the page did not provide one. |
122 @property(nonatomic, readonly) NSString* originalTitle; | 122 @property(nonatomic, readonly) NSString* originalTitle; |
123 | 123 |
124 @property(nonatomic, readonly) NSString* urlDisplayString; | 124 @property(nonatomic, readonly) NSString* urlDisplayString; |
125 | 125 |
126 // ID associated with this tab. | 126 // ID associated with this tab. |
127 @property(nonatomic, readonly) NSString* tabId; | 127 @property(nonatomic, readonly) NSString* tabId; |
128 | 128 |
129 // |YES| if snapshot overlay should load from the grey image cache. | 129 // |YES| if snapshot overlay should load from the grey image cache. |
130 @property(nonatomic, assign) BOOL useGreyImageCache; | 130 @property(nonatomic, assign) BOOL useGreyImageCache; |
131 | 131 |
132 // The Webstate associated with this Tab. | 132 // The Webstate associated with this Tab. |
133 @property(nonatomic, readonly) web::WebState* webState; | 133 @property(nonatomic, readonly) web::WebState* webState; |
134 | 134 |
135 @property(nonatomic, readonly) CRWWebController* webController; | 135 @property(nonatomic, readonly) CRWWebController* webController; |
| 136 |
| 137 // Handles saving and autofill of passwords. |
136 @property(nonatomic, readonly) PasswordController* passwordController; | 138 @property(nonatomic, readonly) PasswordController* passwordController; |
137 @property(nonatomic, readonly) BOOL canGoBack; | 139 @property(nonatomic, readonly) BOOL canGoBack; |
138 @property(nonatomic, readonly) BOOL canGoForward; | 140 @property(nonatomic, readonly) BOOL canGoForward; |
139 @property(nonatomic, assign) id<TabDelegate> delegate; | 141 @property(nonatomic, weak) id<TabDelegate> delegate; |
140 @property(nonatomic, assign) id<TabHeadersDelegate> tabHeadersDelegate; | 142 @property(nonatomic, weak) id<TabHeadersDelegate> tabHeadersDelegate; |
141 @property(nonatomic, assign) id<TabSnapshottingDelegate> | 143 @property(nonatomic, weak) id<TabSnapshottingDelegate> tabSnapshottingDelegate; |
142 tabSnapshottingDelegate; | |
143 @property(nonatomic, readonly) id<FindInPageControllerDelegate> | 144 @property(nonatomic, readonly) id<FindInPageControllerDelegate> |
144 findInPageControllerDelegate; | 145 findInPageControllerDelegate; |
145 | 146 |
146 // Whether or not desktop user agent is used for the currently visible page. | 147 // Whether or not desktop user agent is used for the currently visible page. |
147 @property(nonatomic, readonly) BOOL usesDesktopUserAgent; | 148 @property(nonatomic, readonly) BOOL usesDesktopUserAgent; |
148 | 149 |
149 @property(nonatomic, assign) id<FullScreenControllerDelegate> | 150 @property(nonatomic, weak) id<FullScreenControllerDelegate> |
150 fullScreenControllerDelegate; | 151 fullScreenControllerDelegate; |
151 @property(nonatomic, readonly) | 152 @property(nonatomic, readonly) |
152 OverscrollActionsController* overscrollActionsController; | 153 OverscrollActionsController* overscrollActionsController; |
153 @property(nonatomic, assign) id<OverscrollActionsControllerDelegate> | 154 @property(nonatomic, weak) id<OverscrollActionsControllerDelegate> |
154 overscrollActionsControllerDelegate; | 155 overscrollActionsControllerDelegate; |
155 @property(nonatomic, assign) id<SnapshotOverlayProvider> | 156 @property(nonatomic, weak) id<SnapshotOverlayProvider> snapshotOverlayProvider; |
156 snapshotOverlayProvider; | |
157 | 157 |
158 // Delegate used to show HTTP Authentication dialogs. | 158 // Delegate used to show HTTP Authentication dialogs. |
159 @property(nonatomic, weak) id<TabDialogDelegate> dialogDelegate; | 159 @property(nonatomic, weak) id<TabDialogDelegate> dialogDelegate; |
160 | 160 |
161 // TODO(crbug.com/661663): Should this property abstract away the concept of | 161 // TODO(crbug.com/661663): Should this property abstract away the concept of |
162 // prerendering? Maybe this can move to the TabDelegate interface. | 162 // prerendering? Maybe this can move to the TabDelegate interface. |
163 @property(nonatomic, assign) BOOL isPrerenderTab; | 163 @property(nonatomic, assign) BOOL isPrerenderTab; |
164 @property(nonatomic, assign) BOOL isLinkLoadingPrerenderTab; | 164 @property(nonatomic, assign) BOOL isLinkLoadingPrerenderTab; |
165 @property(nonatomic, assign) BOOL isVoiceSearchResultsTab; | 165 @property(nonatomic, assign) BOOL isVoiceSearchResultsTab; |
166 | 166 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // Evaluates U2F result. | 301 // Evaluates U2F result. |
302 - (void)evaluateU2FResultFromURL:(const GURL&)url; | 302 - (void)evaluateU2FResultFromURL:(const GURL&)url; |
303 | 303 |
304 // Cancels prerendering. It is an error to call this on anything except a | 304 // Cancels prerendering. It is an error to call this on anything except a |
305 // prerender tab (where |isPrerenderTab| is set to YES). | 305 // prerender tab (where |isPrerenderTab| is set to YES). |
306 - (void)discardPrerender; | 306 - (void)discardPrerender; |
307 | 307 |
308 @end | 308 @end |
309 | 309 |
310 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ | 310 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ |
OLD | NEW |