OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_VIEW_H_ |
6 #define IOS_CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_VIEW_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 // The a11y ID of the text input field in the find-in-page bar. | 10 // The a11y ID of the text input field in the find-in-page bar. |
(...skipping 20 matching lines...) Expand all Loading... |
31 NS_DESIGNATED_INITIALIZER; | 31 NS_DESIGNATED_INITIALIZER; |
32 | 32 |
33 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; | 33 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; |
34 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; | 34 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
35 | 35 |
36 // Updates |resultsLabel| with |text|. Updates |inputField| layout so that input | 36 // Updates |resultsLabel| with |text|. Updates |inputField| layout so that input |
37 // text does not overlap with results count. |text| can be nil. | 37 // text does not overlap with results count. |text| can be nil. |
38 - (void)updateResultsLabelWithText:(NSString*)text; | 38 - (void)updateResultsLabelWithText:(NSString*)text; |
39 | 39 |
40 // The textfield with search term. | 40 // The textfield with search term. |
41 @property(nonatomic, assign) UITextField* inputField; | 41 @property(nonatomic, weak) UITextField* inputField; |
42 // Button to go to previous search result. | 42 // Button to go to previous search result. |
43 @property(nonatomic, assign) UIButton* previousButton; | 43 @property(nonatomic, weak) UIButton* previousButton; |
44 // Button to go to next search result. | 44 // Button to go to next search result. |
45 @property(nonatomic, assign) UIButton* nextButton; | 45 @property(nonatomic, weak) UIButton* nextButton; |
46 // Button to dismiss Find in Page. | 46 // Button to dismiss Find in Page. |
47 @property(nonatomic, assign) UIButton* closeButton; | 47 @property(nonatomic, weak) UIButton* closeButton; |
48 | 48 |
49 @end | 49 @end |
50 | 50 |
51 #endif // IOS_CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_VIEW_H_ | 51 #endif // IOS_CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_VIEW_H_ |
OLD | NEW |