blob: ba7d4c611949bd1159601f971f4482a0170ff5f9 [file] [log] [blame]
// Copyright 2017 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_UI_OMNIBOX_OMNIBOX_TEXT_FIELD_DELEGATE_H_
#define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_TEXT_FIELD_DELEGATE_H_
#import <UIKit/UIKit.h>
@protocol OmniboxTextFieldDelegate<UITextFieldDelegate>
@optional
// Called when the OmniboxTextField performs a copy operation. Returns YES if
// the delegate handled the copy operation itself. If the delegate returns NO,
// the field must perform the copy. Some platforms (iOS 4) do not expose an API
// that allows the delegate to handle the copy.
- (BOOL)onCopy;
// Called before the OmniboxTextField performs a paste operation.
- (void)willPaste;
// Called when the backspace button is tapped in the OmniboxTextField.
- (void)onDeleteBackward;
@end
#endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_TEXT_FIELD_DELEGATE_H_