Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: ios/chrome/browser/autofill/form_input_accessory_view_delegate.h

Issue 1022463002: [iOS] Upstream files in //ios/chrome/browser/autofill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/autofill/form_input_accessory_view_delegate.h
diff --git a/ios/chrome/browser/autofill/form_input_accessory_view_delegate.h b/ios/chrome/browser/autofill/form_input_accessory_view_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..38c6f18f3b1088fa474d7a255c76aecc48d50d6b
--- /dev/null
+++ b/ios/chrome/browser/autofill/form_input_accessory_view_delegate.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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_INPUT_ACCESSORY_VIEW_DELEGATE_H_
+#define IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_DELEGATE_H_
+
+#import <Foundation/Foundation.h>
+
+// Handles user interaction with a FormInputAccessoryView.
+@protocol FormInputAccessoryViewDelegate<NSObject>
+
+// Called when the close button is clicked.
+- (void)closeKeyboard;
+
+// Called when the previous button is clicked.
+- (void)selectPreviousElement;
+
+// Called when the next button is clicked.
+- (void)selectNextElement;
+
+// Called when updating the keyboard view. Checks if the page contains a next
+// and a previous element.
+// |completionHandler| is called with 2 BOOLs, the first indicating if a
+// previous element was found, and the second indicating if a next element was
+// found. |completionHandler| cannot be nil.
+- (void)fetchPreviousAndNextElementsPresenceWithCompletionHandler:
+ (void (^)(BOOL, BOOL))completionHandler;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698