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

Side by Side Diff: ios/chrome/browser/ui/tabs/tab_view.h

Issue 2942913002: [ObjC ARC] Converts ios/chrome/browser/ui/tabs:tabs to ARC. (Closed)
Patch Set: comments Created 3 years, 6 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
« no previous file with comments | « ios/chrome/browser/ui/tabs/tab_strip_view.mm ('k') | ios/chrome/browser/ui/tabs/tab_view.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_VIEW_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TABS_TAB_VIEW_H_
6 #define IOS_CHROME_BROWSER_UI_TABS_TAB_VIEW_H_ 6 #define IOS_CHROME_BROWSER_UI_TABS_TAB_VIEW_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #import "ios/chrome/browser/tabs/tab.h" 11 #import "ios/chrome/browser/tabs/tab.h"
12 12
13 @class GTMFadeTruncatingLabel; 13 @class GTMFadeTruncatingLabel;
14 14
15 // View class that draws a Chrome-style tab. 15 // View class that draws a Chrome-style tab.
16 @interface TabView : UIControl 16 @interface TabView : UIControl
17 17
18 @property(nonatomic, readonly, retain) UIButton* closeButton; 18 @property(nonatomic, readonly, strong) UIButton* closeButton;
19 @property(nonatomic, readonly, retain) GTMFadeTruncatingLabel* titleLabel; 19 @property(nonatomic, readonly, strong) GTMFadeTruncatingLabel* titleLabel;
20 @property(nonatomic, retain) UIImage* favicon; 20 @property(nonatomic, strong) UIImage* favicon;
21 @property(nonatomic, assign, getter=isCollapsed) BOOL collapsed; 21 @property(nonatomic, assign, getter=isCollapsed) BOOL collapsed;
22 @property(nonatomic, retain) UIImage* background; 22 @property(nonatomic, strong) UIImage* background;
23 @property(nonatomic, assign) BOOL incognitoStyle; 23 @property(nonatomic, assign) BOOL incognitoStyle;
24 24
25 // Designated initializer. Creates a TabView with frame equal to CGRectZero. 25 // Designated initializer. Creates a TabView with frame equal to CGRectZero.
26 // If |emptyView| is YES, it creates a TabView without buttons or spinner. 26 // If |emptyView| is YES, it creates a TabView without buttons or spinner.
27 // |selected|, the selected state of the tab, is provided to ensure the 27 // |selected|, the selected state of the tab, is provided to ensure the
28 // background is drawn correctly the first time, rather than requiring that 28 // background is drawn correctly the first time, rather than requiring that
29 // -setSelected be called in order for it to be drawn correctly. 29 // -setSelected be called in order for it to be drawn correctly.
30 - (id)initWithEmptyView:(BOOL)emptyView selected:(BOOL)selected; 30 - (id)initWithEmptyView:(BOOL)emptyView selected:(BOOL)selected;
31 31
32 // Sets the title. 32 // Sets the title.
33 - (void)setTitle:(NSString*)title; 33 - (void)setTitle:(NSString*)title;
34 // Starts the progress spinner animation. 34 // Starts the progress spinner animation.
35 - (void)startProgressSpinner; 35 - (void)startProgressSpinner;
36 // Stops the progress spinner animation. 36 // Stops the progress spinner animation.
37 - (void)stopProgressSpinner; 37 - (void)stopProgressSpinner;
38 38
39 @end 39 @end
40 40
41 #endif // IOS_CHROME_BROWSER_UI_TABS_TAB_VIEW_H_ 41 #endif // IOS_CHROME_BROWSER_UI_TABS_TAB_VIEW_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/tabs/tab_strip_view.mm ('k') | ios/chrome/browser/ui/tabs/tab_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698