OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_NTP_RECENT_TABS_RECENT_TABS_TABLE_VIEW_CONTROLLER_
H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_RECENT_TABS_TABLE_VIEW_CONTROLLER_
H_ |
6 #define IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_RECENT_TABS_TABLE_VIEW_CONTROLLER_
H_ | 6 #define IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_RECENT_TABS_TABLE_VIEW_CONTROLLER_
H_ |
7 | 7 |
8 #import "ios/chrome/browser/ui/ntp/new_tab_page_panel_protocol.h" | 8 #import "ios/chrome/browser/ui/ntp/new_tab_page_panel_protocol.h" |
9 | 9 |
10 #import "ios/chrome/browser/ui/ntp/recent_tabs/recent_tabs_panel_controller.h" | 10 #import "ios/chrome/browser/ui/ntp/recent_tabs/recent_tabs_panel_controller.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // the user that they can turn on sync on other devices. | 36 // the user that they can turn on sync on other devices. |
37 // C/ Session section. | 37 // C/ Session section. |
38 // This section shows the sessions from other devices. | 38 // This section shows the sessions from other devices. |
39 // | 39 // |
40 // Section A is always present, followed by section A*. | 40 // Section A is always present, followed by section A*. |
41 // Depending on the user sync state, either section B or section C will be | 41 // Depending on the user sync state, either section B or section C will be |
42 // presented. | 42 // presented. |
43 @interface RecentTabsTableViewController | 43 @interface RecentTabsTableViewController |
44 : UITableViewController<UIGestureRecognizerDelegate> | 44 : UITableViewController<UIGestureRecognizerDelegate> |
45 | 45 |
46 @property(nonatomic, assign) id<RecentTabsTableViewControllerDelegate> | 46 @property(nonatomic, weak) id<RecentTabsTableViewControllerDelegate> delegate; |
47 delegate; // weak | |
48 | 47 |
49 // Designated initializer. The controller opens link with |loader|. | 48 // Designated initializer. The controller opens link with |loader|. |
50 // |browserState| | 49 // |browserState| |
51 // and |loader| must not be nil. | 50 // and |loader| must not be nil. |
52 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState | 51 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState |
53 loader:(id<UrlLoader>)loader; | 52 loader:(id<UrlLoader>)loader; |
54 | 53 |
55 // Refreshes the table view to match the current sync state. | 54 // Refreshes the table view to match the current sync state. |
56 - (void)refreshUserState:(SessionsSyncUserState)state; | 55 - (void)refreshUserState:(SessionsSyncUserState)state; |
57 | 56 |
58 // Refreshes the recently closed tab section. | 57 // Refreshes the recently closed tab section. |
59 - (void)refreshRecentlyClosedTabs; | 58 - (void)refreshRecentlyClosedTabs; |
60 | 59 |
61 // Sets the service used to populate the closed tab section. Can be used to nil | 60 // Sets the service used to populate the closed tab section. Can be used to nil |
62 // the service in case it is not available anymore. | 61 // the service in case it is not available anymore. |
63 - (void)setTabRestoreService:(sessions::TabRestoreService*)tabRestoreService; | 62 - (void)setTabRestoreService:(sessions::TabRestoreService*)tabRestoreService; |
64 | 63 |
65 // Sets whether scroll to top is enabled. | 64 // Sets whether scroll to top is enabled. |
66 - (void)setScrollsToTop:(BOOL)enabled; | 65 - (void)setScrollsToTop:(BOOL)enabled; |
67 | 66 |
68 // Dismisses any outstanding modal user interface elements. | 67 // Dismisses any outstanding modal user interface elements. |
69 - (void)dismissModals; | 68 - (void)dismissModals; |
70 | 69 |
71 @end | 70 @end |
72 | 71 |
73 #endif // IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_RECENT_TABS_TABLE_VIEW_CONTROLL
ER_H_ | 72 #endif // IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_RECENT_TABS_TABLE_VIEW_CONTROLL
ER_H_ |
OLD | NEW |