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

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

Issue 2810193002: [ObjC ARC] Converts ios/chrome/browser/ui/tab_switcher:tab_switcher to ARC. (Closed)
Patch Set: comment Created 3 years, 7 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"
(...skipping 13 matching lines...) Expand all
24 24
25 @protocol TabSwitcherHeaderViewDataSource<NSObject> 25 @protocol TabSwitcherHeaderViewDataSource<NSObject>
26 26
27 - (NSInteger)tabSwitcherHeaderViewSessionCount; 27 - (NSInteger)tabSwitcherHeaderViewSessionCount;
28 - (TabSwitcherSessionCellData*)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, weak) id<TabSwitcherHeaderViewDelegate> delegate;
35 @property(nonatomic, assign) id<TabSwitcherHeaderViewDataSource> dataSource; 35 @property(nonatomic, weak) id<TabSwitcherHeaderViewDataSource> dataSource;
36 @property(nonatomic, readonly) UIView* dismissButton; 36 @property(weak, nonatomic, readonly) UIView* dismissButton;
37 37
38 // Selects the item at the specified index. 38 // Selects the item at the specified index.
39 // The delegate is not called. 39 // The delegate is not called.
40 - (void)selectItemAtIndex:(NSInteger)index; 40 - (void)selectItemAtIndex:(NSInteger)index;
41 41
42 // Reload the collection view. 42 // Reload the collection view.
43 - (void)reloadData; 43 - (void)reloadData;
44 44
45 // Performs an update on the header view using the passed block. 45 // Performs an update on the header view using the passed block.
46 - (void)performUpdate:(void (^)(TabSwitcherHeaderView* headerView))updateBlock; 46 - (void)performUpdate:(void (^)(TabSwitcherHeaderView* headerView))updateBlock;
47 47
48 // Performs an update on the header view using the passed block, the completion 48 // Performs an update on the header view using the passed block, the completion
49 // handler block is called at the end of the update animations. 49 // handler block is called at the end of the update animations.
50 - (void)performUpdate:(void (^)(TabSwitcherHeaderView* headerView))updateBlock 50 - (void)performUpdate:(void (^)(TabSwitcherHeaderView* headerView))updateBlock
51 completion:(ProceduralBlock)completion; 51 completion:(ProceduralBlock)completion;
52 52
53 // Updates methods can only be called inside an update block passed to the 53 // Updates methods can only be called inside an update block passed to the
54 // - (void)performUpdate: method. 54 // - (void)performUpdate: method.
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