| 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_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(nonatomic, readonly, strong) IBOutlet UIView* view; |
| 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 Loading... |
| 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_ |
| OLD | NEW |