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

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

Issue 2612733004: Renames SessionChanges and SessionCellData to have a TabSwitcher prefix. (Closed)
Patch Set: Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_HEADER_VIEW_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_HEADER_VIEW_H_
6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_HEADER_VIEW_H_ 6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_HEADER_VIEW_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "base/ios/block_types.h" 10 #include "base/ios/block_types.h"
11 11
12 @class SessionCellData; 12 @class TabSwitcherSessionCellData;
13 @class TabSwitcherHeaderView; 13 @class TabSwitcherHeaderView;
14 14
15 @protocol TabSwitcherHeaderViewDelegate<NSObject> 15 @protocol TabSwitcherHeaderViewDelegate<NSObject>
16 16
17 - (void)tabSwitcherHeaderViewDismiss:(TabSwitcherHeaderView*)view; 17 - (void)tabSwitcherHeaderViewDismiss:(TabSwitcherHeaderView*)view;
18 - (void)tabSwitcherHeaderViewDidSelectSessionAtIndex:(NSInteger)index; 18 - (void)tabSwitcherHeaderViewDidSelectSessionAtIndex:(NSInteger)index;
19 // Called to get the currently selected panel index. Returns NSNotFound when no 19 // Called to get the currently selected panel index. Returns NSNotFound when no
20 // panel is selected. 20 // panel is selected.
21 - (NSInteger)tabSwitcherHeaderViewSelectedPanelIndex; 21 - (NSInteger)tabSwitcherHeaderViewSelectedPanelIndex;
22 22
23 @end 23 @end
24 24
25 @protocol TabSwitcherHeaderViewDataSource<NSObject> 25 @protocol TabSwitcherHeaderViewDataSource<NSObject>
26 26
27 - (NSInteger)tabSwitcherHeaderViewSessionCount; 27 - (NSInteger)tabSwitcherHeaderViewSessionCount;
28 - (SessionCellData*)sessionCellDataAtIndex:(NSUInteger)index; 28 - (TabSwitcherSessionCellData*)sessionCellDataAtIndex:(NSUInteger)index;
29 29
30 @end 30 @end
31 31
32 @interface TabSwitcherHeaderView : UIView 32 @interface TabSwitcherHeaderView : UIView
33 33
34 @property(nonatomic, assign) id<TabSwitcherHeaderViewDelegate> delegate; 34 @property(nonatomic, assign) id<TabSwitcherHeaderViewDelegate> delegate;
35 @property(nonatomic, assign) id<TabSwitcherHeaderViewDataSource> dataSource; 35 @property(nonatomic, assign) id<TabSwitcherHeaderViewDataSource> dataSource;
36 @property(nonatomic, readonly) UIView* dismissButton; 36 @property(nonatomic, readonly) UIView* dismissButton;
37 37
38 // Selects the item at the specified index. 38 // Selects the item at the specified index.
(...skipping 16 matching lines...) Expand all
55 // Update methods takes arrays of NSNumbers. 55 // Update methods takes arrays of NSNumbers.
56 - (void)insertSessionsAtIndexes:(NSArray*)indexes; 56 - (void)insertSessionsAtIndexes:(NSArray*)indexes;
57 - (void)removeSessionsAtIndexes:(NSArray*)indexes; 57 - (void)removeSessionsAtIndexes:(NSArray*)indexes;
58 58
59 // Returns the accessibility title of the panel at index |index|. 59 // Returns the accessibility title of the panel at index |index|.
60 - (NSString*)panelTitleAtIndex:(NSInteger)index; 60 - (NSString*)panelTitleAtIndex:(NSInteger)index;
61 61
62 @end 62 @end
63 63
64 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_HEADER_VIEW_H_ 64 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_HEADER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698