OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_DELEGATE_H_ |
| 6 #define IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_DELEGATE_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 // Handles user interaction with a FormInputAccessoryView. |
| 11 @protocol FormInputAccessoryViewDelegate<NSObject> |
| 12 |
| 13 // Called when the close button is clicked. |
| 14 - (void)closeKeyboard; |
| 15 |
| 16 // Called when the previous button is clicked. |
| 17 - (void)selectPreviousElement; |
| 18 |
| 19 // Called when the next button is clicked. |
| 20 - (void)selectNextElement; |
| 21 |
| 22 // Called when updating the keyboard view. Checks if the page contains a next |
| 23 // and a previous element. |
| 24 // |completionHandler| is called with 2 BOOLs, the first indicating if a |
| 25 // previous element was found, and the second indicating if a next element was |
| 26 // found. |completionHandler| cannot be nil. |
| 27 - (void)fetchPreviousAndNextElementsPresenceWithCompletionHandler: |
| 28 (void (^)(BOOL, BOOL))completionHandler; |
| 29 |
| 30 @end |
| 31 |
| 32 #endif // IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_DELEGATE_H_ |
OLD | NEW |