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_UI_TABS_TAB_STRIP_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_TABS_TAB_STRIP_VIEW_H_ |
6 #define IOS_CHROME_BROWSER_UI_TABS_TAB_STRIP_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_TABS_TAB_STRIP_VIEW_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 // Notification sent by the tab strip when its frame changes. | 10 // Notification sent by the tab strip when its frame changes. |
(...skipping 10 matching lines...) Expand all Loading... |
21 // TabStripView does not perform any other subview layout. | 21 // TabStripView does not perform any other subview layout. |
22 - (void)layoutTabStripSubviews; | 22 - (void)layoutTabStripSubviews; |
23 // Called from UIView |-traitCollectionDidChange:|. | 23 // Called from UIView |-traitCollectionDidChange:|. |
24 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection; | 24 - (void)traitCollectionDidChange:(UITraitCollection*)previousTraitCollection; |
25 @end | 25 @end |
26 | 26 |
27 // View class for the tabstrip. Contains one TabView per open tab and manages | 27 // View class for the tabstrip. Contains one TabView per open tab and manages |
28 // tab overflow behavior. | 28 // tab overflow behavior. |
29 @interface TabStripView : UIScrollView { | 29 @interface TabStripView : UIScrollView { |
30 @private | 30 @private |
31 id<TabStripViewLayoutDelegate> layoutDelegate_; | 31 id<TabStripViewLayoutDelegate> __weak layoutDelegate_; |
32 } | 32 } |
33 | 33 |
34 @property(nonatomic, readwrite, assign) id<TabStripViewLayoutDelegate> | 34 @property(nonatomic, readwrite, weak) id<TabStripViewLayoutDelegate> |
35 layoutDelegate; | 35 layoutDelegate; |
36 | 36 |
37 @end | 37 @end |
38 | 38 |
39 #endif // IOS_CHROME_BROWSER_UI_TABS_TAB_STRIP_VIEW_H_ | 39 #endif // IOS_CHROME_BROWSER_UI_TABS_TAB_STRIP_VIEW_H_ |
OLD | NEW |