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

Side by Side Diff: ios/chrome/browser/ui/find_bar/find_bar_controller_ios.h

Issue 2664233004: [ObjC ARC] Converts ios/chrome/browser/ui/find_bar:find_bar to ARC. (Closed)
Patch Set: Created 3 years, 10 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_FIND_BAR_FIND_BAR_CONTROLLER_IOS_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_IOS_H_
6 #define IOS_CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_IOS_H_ 6 #define IOS_CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_IOS_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 @class FindInPageModel; 10 @class FindInPageModel;
11 11
12 // The a11y ID of the find-in-page bar. 12 // The a11y ID of the find-in-page bar.
13 extern NSString* const kFindInPageContainerViewId; 13 extern NSString* const kFindInPageContainerViewId;
14 14
15 @interface FindBarControllerIOS : NSObject 15 @interface FindBarControllerIOS : NSObject
16 16
17 // The main view, for both iPhone or iPad. 17 // The main view, for both iPhone or iPad.
18 @property(nonatomic, readonly) IBOutlet UIView* view; 18 @property(strong, nonatomic, readonly) IBOutlet UIView* view;
sdefresne 2017/02/03 09:21:30 nit: I think we put "nonatomic" first, so: @pro
stkhapugin 2017/02/03 12:27:57 Because we redefine to rewrite in .mm; and besides
19 19
20 // Init with incognito style. 20 // Init with incognito style.
21 - (instancetype)initWithIncognito:(BOOL)isIncognito; 21 - (instancetype)initWithIncognito:(BOOL)isIncognito;
22 // Current input search term. 22 // Current input search term.
23 - (NSString*)searchTerm; 23 - (NSString*)searchTerm;
24 // Update view based on model. If |focusTextfield| is YES, focus the 24 // Update view based on model. If |focusTextfield| is YES, focus the
25 // textfield. Updates the results count and, if |initialUpdate| is true, fills 25 // textfield. Updates the results count and, if |initialUpdate| is true, fills
26 // the text field with search term from the model. 26 // the text field with search term from the model.
27 - (void)updateView:(FindInPageModel*)model 27 - (void)updateView:(FindInPageModel*)model
28 initialUpdate:(BOOL)initialUpdate 28 initialUpdate:(BOOL)initialUpdate
(...skipping 19 matching lines...) Expand all
48 - (IBAction)hideKeyboard:(id)sender; 48 - (IBAction)hideKeyboard:(id)sender;
49 // Indicates that Find in Page is shown. When true, |view| is guaranteed not to 49 // Indicates that Find in Page is shown. When true, |view| is guaranteed not to
50 // be nil. 50 // be nil.
51 - (BOOL)isFindInPageShown; 51 - (BOOL)isFindInPageShown;
52 // Indicates that the Find in Page text field is first responder. 52 // Indicates that the Find in Page text field is first responder.
53 - (BOOL)isFocused; 53 - (BOOL)isFocused;
54 54
55 @end 55 @end
56 56
57 #endif // IOS_CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_IOS_H_ 57 #endif // IOS_CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_IOS_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/find_bar/BUILD.gn ('k') | ios/chrome/browser/ui/find_bar/find_bar_controller_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698