blob: 0bc02e1e1106e2a7849b8ad992d2b32d3a918268 [file] [log] [blame]
// Copyright 2020 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.
#import <UIKit/UIKit.h>
// Subset of UIResponder's APIs. Includes APIs related to inputView and
// inputAccessoryView.
@protocol CRWResponderInputView <NSObject>
// APIs to show custom input views. These mimic the ones in UIResponder. Refer
// to Apple's documentation for more information.
- (UIView*)inputView;
- (UIInputViewController*)inputViewController;
- (UIView*)inputAccessoryView;
- (UIInputViewController*)inputAccessoryViewController;
// Any object that adopts this protocol can provide an id<CRWResponderInputView>
// to show custom input views.
@protocol CRWInputViewProvider <NSObject>
// The actual object implementing the input view methods.
@property(nonatomic, readonly) id<CRWResponderInputView> responderInputView;