blob: 15eb8775cda30108bf6383d8d8df882c9abc2261 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// 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_LABEL_H_
#define IOS_CHROME_BROWSER_AUTOFILL_FORM_SUGGESTION_LABEL_H_
#import <UIKit/UIKit.h>
#include "base/ios/weak_nsobject.h"
#include "base/mac/scoped_nsobject.h"
@class FormSuggestion;
@protocol FormSuggestionViewClient;
// Class for Autofill suggestion in the customized keyboard.
@interface FormSuggestionLabel : UIView
// Designated initializer. Initializes with |proposedFrame| and |client| for
// |suggestion|. Its width will be adjusted according to the length of
// |suggestion| and width in |proposedFrame| is ignored.
- (id)initWithSuggestion:(FormSuggestion*)suggestion
proposedFrame:(CGRect)proposedFrame
index:(NSUInteger)index
numSuggestions:(NSUInteger)numSuggestions
client:(id<FormSuggestionViewClient>)client;
@end
#endif // IOS_CHROME_BROWSER_AUTOFILL_FORM_SUGGESTION_LABEL_H_
|