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

Side by Side Diff: ios/chrome/browser/ui/toolbar/toolbar_controller.h

Issue 2808873002: [ObjC ARC] Converts ios/chrome/browser/ui/toolbar:toolbar to ARC. (Closed)
Patch Set: feedback Created 3 years, 8 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 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_TOOLBAR_TOOLBAR_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // This is not intended to be used on its own, but to be subclassed by more 107 // This is not intended to be used on its own, but to be subclassed by more
108 // specific toolbars that provide more buttons in the empty space. 108 // specific toolbars that provide more buttons in the empty space.
109 @interface ToolbarController : NSObject<PopupMenuDelegate> 109 @interface ToolbarController : NSObject<PopupMenuDelegate>
110 110
111 // The top-level toolbar view. It is a |UIImageView| even though it does not 111 // The top-level toolbar view. It is a |UIImageView| even though it does not
112 // hold any image for testability: unlike |UIView|, a |UIImageView| that is 112 // hold any image for testability: unlike |UIView|, a |UIImageView| that is
113 // visible in the UI automation view hierarchy does not prevent its subviews 113 // visible in the UI automation view hierarchy does not prevent its subviews
114 // from also being visible. 114 // from also being visible.
115 // TODO(blundell): Figure out how to fix this and have the top-level view be a 115 // TODO(blundell): Figure out how to fix this and have the top-level view be a
116 // UIView. b/6167700 116 // UIView. b/6167700
117 @property(nonatomic, readonly, retain) ToolbarView* view; 117 @property(nonatomic, readonly, strong) ToolbarView* view;
118 // The view for the toolbar background image. This is a subview of |view| to 118 // The view for the toolbar background image. This is a subview of |view| to
119 // allow clients to alter the transparency of the background image without 119 // allow clients to alter the transparency of the background image without
120 // affecting the other components of the toolbar. 120 // affecting the other components of the toolbar.
121 @property(nonatomic, readonly, retain) UIImageView* backgroundView; 121 @property(nonatomic, readonly, strong) UIImageView* backgroundView;
122 // The view for the toolbar shadow image. This is a subview of |view| to allow 122 // The view for the toolbar shadow image. This is a subview of |view| to allow
123 // clients to alter the visibility of the shadow without affecting other 123 // clients to alter the visibility of the shadow without affecting other
124 // components of the toolbar. 124 // components of the toolbar.
125 @property(nonatomic, readonly, retain) UIImageView* shadowView; 125 @property(nonatomic, readonly, strong) UIImageView* shadowView;
126 126
127 // The tools popup controller. Nil if the tools popup menu is not visible. 127 // The tools popup controller. Nil if the tools popup menu is not visible.
128 @property(nonatomic, readonly, retain) 128 @property(nonatomic, readonly, strong)
129 ToolsPopupController* toolsPopupController; 129 ToolsPopupController* toolsPopupController;
130 130
131 // Style of this toolbar. 131 // Style of this toolbar.
132 @property(nonatomic, readonly, assign) ToolbarControllerStyle style; 132 @property(nonatomic, readonly, assign) ToolbarControllerStyle style;
133 133
134 // The reading list model reflected by the toolbar. 134 // The reading list model reflected by the toolbar.
135 @property(nonatomic, readwrite, assign) ReadingListModel* readingListModel; 135 @property(nonatomic, readwrite, assign) ReadingListModel* readingListModel;
136 136
137 // Designated initializer. |style| determines how the toolbar draws itself. 137 // Designated initializer. |style| determines how the toolbar draws itself.
138 - (instancetype)initWithStyle:(ToolbarControllerStyle)style 138 - (instancetype)initWithStyle:(ToolbarControllerStyle)style
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 // Called when transition animations can be removed. 281 // Called when transition animations can be removed.
282 - (void)cleanUpTransitionAnimations; 282 - (void)cleanUpTransitionAnimations;
283 283
284 // Shows/hides iPhone toolbar views for when the new tab page is displayed. 284 // Shows/hides iPhone toolbar views for when the new tab page is displayed.
285 - (void)hideViewsForNewTabPage:(BOOL)hide; 285 - (void)hideViewsForNewTabPage:(BOOL)hide;
286 286
287 @end 287 @end
288 288
289 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_CONTROLLER_H_ 289 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698