OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_HEADER_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_HEADER_VIEW_H_ |
6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_HEADER_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_HEADER_VIEW_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/chrome/browser/ui/contextual_search/contextual_search_panel_protoco
ls.h" | 10 #import "ios/chrome/browser/ui/contextual_search/contextual_search_panel_protoco
ls.h" |
11 | 11 |
12 @interface ContextualSearchHeaderView | 12 @interface ContextualSearchHeaderView |
13 : UIView<ContextualSearchPanelMotionObserver> | 13 : UIView<ContextualSearchPanelMotionObserver> |
14 | 14 |
15 @property(nonatomic, assign) id<ContextualSearchPanelTapHandler> tapHandler; | 15 @property(nonatomic, weak) id<ContextualSearchPanelTapHandler> tapHandler; |
16 | 16 |
17 - (instancetype)initWithHeight:(CGFloat)height NS_DESIGNATED_INITIALIZER; | 17 - (instancetype)initWithHeight:(CGFloat)height NS_DESIGNATED_INITIALIZER; |
18 | 18 |
19 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; | 19 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
20 | 20 |
21 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; | 21 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; |
22 | 22 |
23 // Set the displayed text to |text|, with text in |followingTextRange| colored | 23 // Set the displayed text to |text|, with text in |followingTextRange| colored |
24 // gray. | 24 // gray. |
25 - (void)setText:(NSString*)text | 25 - (void)setText:(NSString*)text |
26 followingTextRange:(NSRange)followingTextRange | 26 followingTextRange:(NSRange)followingTextRange |
27 animated:(BOOL)animated; | 27 animated:(BOOL)animated; |
28 | 28 |
29 // Set the diplayed text to |searchTerm|. | 29 // Set the diplayed text to |searchTerm|. |
30 - (void)setSearchTerm:(NSString*)searchTerm animated:(BOOL)animated; | 30 - (void)setSearchTerm:(NSString*)searchTerm animated:(BOOL)animated; |
31 | 31 |
32 @end | 32 @end |
33 | 33 |
34 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_HEADER_VIEW
_H_ | 34 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_HEADER_VIEW
_H_ |
OLD | NEW |