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

Side by Side Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_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_VIEW_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_VIEW_H_
6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_VIEW_H_ 6 #define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_VIEW_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_model.h" 10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_model.h"
(...skipping 10 matching lines...) Expand all
21 - (void)openNewTabInPanelAtIndex:(NSInteger)panelIndex; 21 - (void)openNewTabInPanelAtIndex:(NSInteger)panelIndex;
22 - (ios_internal::NewTabButtonStyle)buttonStyleForPanelAtIndex: 22 - (ios_internal::NewTabButtonStyle)buttonStyleForPanelAtIndex:
23 (NSInteger)panelIndex; 23 (NSInteger)panelIndex;
24 - (BOOL)shouldShowDismissButtonForPanelAtIndex:(NSInteger)panelIndex; 24 - (BOOL)shouldShowDismissButtonForPanelAtIndex:(NSInteger)panelIndex;
25 - (void)tabSwitcherViewDelegateDismissTabSwitcher:(TabSwitcherView*)delegate; 25 - (void)tabSwitcherViewDelegateDismissTabSwitcher:(TabSwitcherView*)delegate;
26 26
27 @end 27 @end
28 28
29 @interface TabSwitcherView : UIView<UIScrollViewDelegate> 29 @interface TabSwitcherView : UIView<UIScrollViewDelegate>
30 30
31 @property(nonatomic, readonly) TabSwitcherHeaderView* headerView; 31 @property(unsafe_unretained, nonatomic, readonly)
32 @property(nonatomic, readonly) UIScrollView* scrollView; 32 TabSwitcherHeaderView* headerView;
33 @property(unsafe_unretained, nonatomic, readonly) UIScrollView* scrollView;
33 34
34 @property(nonatomic, assign) id<TabSwitcherViewDelegate> delegate; 35 @property(nonatomic, unsafe_unretained) id<TabSwitcherViewDelegate> delegate;
35 36
36 // Select the panel at the given index, updating both the header and content. 37 // Select the panel at the given index, updating both the header and content.
37 // The panel selection will be animated if VoiceOver is disabled. 38 // The panel selection will be animated if VoiceOver is disabled.
38 - (void)selectPanelAtIndex:(NSInteger)index; 39 - (void)selectPanelAtIndex:(NSInteger)index;
39 // Adds the view |view| at index |index|. 40 // Adds the view |view| at index |index|.
40 - (void)addPanelView:(UIView*)view atIndex:(NSUInteger)index; 41 - (void)addPanelView:(UIView*)view atIndex:(NSUInteger)index;
41 // Removes the view at index |index| and update scrollview. 42 // Removes the view at index |index| and update scrollview.
42 - (void)removePanelViewAtIndex:(NSUInteger)index; 43 - (void)removePanelViewAtIndex:(NSUInteger)index;
43 // Removes the view at index |index| and update scrollview if |update| is true. 44 // Removes the view at index |index| and update scrollview if |update| is true.
44 - (void)removePanelViewAtIndex:(NSUInteger)index updateScrollView:(BOOL)update; 45 - (void)removePanelViewAtIndex:(NSUInteger)index updateScrollView:(BOOL)update;
45 // Returns the index of the currently selected panel. 46 // Returns the index of the currently selected panel.
46 - (NSInteger)currentPanelIndex; 47 - (NSInteger)currentPanelIndex;
47 // Updates the state of the tab switcher overlay buttons. 48 // Updates the state of the tab switcher overlay buttons.
48 // Overlay buttons are the top right dismiss button and the bottom right new tab 49 // Overlay buttons are the top right dismiss button and the bottom right new tab
49 // button. 50 // button.
50 - (void)updateOverlayButtonState; 51 - (void)updateOverlayButtonState;
51 52
52 @end 53 @end
53 54
54 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_VIEW_H_ 55 #endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698