OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_PROMO_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_PROMO_VIEW_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #import "ios/chrome/browser/ui/contextual_search/contextual_search_panel_protoco
ls.h" |
| 11 |
| 12 @protocol ContextualSearchPromoViewDelegate<NSObject> |
| 13 |
| 14 - (void)promoViewAcceptTapped; |
| 15 - (void)promoViewDeclineTapped; |
| 16 - (void)promoViewSettingsTapped; |
| 17 |
| 18 @end |
| 19 |
| 20 @interface ContextualSearchPromoView |
| 21 : UIView<ContextualSearchPanelMotionObserver> |
| 22 |
| 23 // If YES, this view will remain hidden (setHidden:YES will no-op). |
| 24 @property(nonatomic, assign) BOOL disabled; |
| 25 |
| 26 // Designated initializer. The caller is responsible for setting constraints |
| 27 // such that this view is the desired size. |
| 28 - (instancetype)initWithFrame:(CGRect)frame |
| 29 delegate:(id<ContextualSearchPromoViewDelegate>)delegate; |
| 30 |
| 31 - (void)closeAnimated:(BOOL)animated; |
| 32 |
| 33 @end |
| 34 |
| 35 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_PROMO_VIEW_
H_ |
OLD | NEW |