blob: 1dec9528561fecfb0af6a9918fa8aa215e61d9fe [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_OMNIBOX_UI_TEXT_FIELD_VIEW_CONTAINING_H_
#define IOS_CHROME_BROWSER_OMNIBOX_UI_TEXT_FIELD_VIEW_CONTAINING_H_
@protocol TextFieldViewContaining;
// Delegate for height change notification.
@protocol TextFieldViewContainingHeightDelegate <NSObject>
// Notifies that the text input view requires a new `height`.
- (void)textFieldViewContaining:(UIView<TextFieldViewContaining>*)sender
didChangeHeight:(CGFloat)height;
@end
// A protocol that defines an object that contains a text field view.
@protocol TextFieldViewContaining
// A text field view.
@property(nonatomic, readonly) UIView* textFieldView;
// Delegate to notify of height changes.
@property(nonatomic, weak) id<TextFieldViewContainingHeightDelegate>
heightDelegate;
@end
#endif // IOS_CHROME_BROWSER_OMNIBOX_UI_TEXT_FIELD_VIEW_CONTAINING_H_