| Index: ios/chrome/browser/autofill/form_suggestion_view.h
|
| diff --git a/ios/chrome/browser/autofill/form_suggestion_view.h b/ios/chrome/browser/autofill/form_suggestion_view.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9a8c33c13c943e9167c547877bb246496a7300e0
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/autofill/form_suggestion_view.h
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_CHROME_BROWSER_AUTOFILL_FORM_SUGGESTION_VIEW_H_
|
| +#define IOS_CHROME_BROWSER_AUTOFILL_FORM_SUGGESTION_VIEW_H_
|
| +
|
| +#import <UIKit/UIKit.h>
|
| +
|
| +#include "base/ios/weak_nsobject.h"
|
| +
|
| +@protocol FormSuggestionViewClient;
|
| +
|
| +// A scrollable view for displaying user-selectable autofill form suggestions.
|
| +@interface FormSuggestionView : UIScrollView<UIInputViewAudioFeedback>
|
| +
|
| +// Initializes with |frame| and |client| to show |suggestions|.
|
| +- (instancetype)initWithFrame:(CGRect)frame
|
| + client:(id<FormSuggestionViewClient>)client
|
| + suggestions:(NSArray*)suggestions;
|
| +
|
| +@end
|
| +
|
| +@interface FormSuggestionView (ForTesting)
|
| +@property(nonatomic, readonly) NSArray* suggestions;
|
| +@end
|
| +
|
| +#endif // IOS_CHROME_BROWSER_AUTOFILL_FORM_SUGGESTION_VIEW_H_
|
|
|