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

Side by Side Diff: ios/chrome/browser/autofill/form_input_accessory_view_controller.h

Issue 1305433003: Make Autofill work again on iPads running iOS 9. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/chrome/browser/autofill/form_input_accessory_view_delegate.h" 10 #import "ios/chrome/browser/autofill/form_input_accessory_view_delegate.h"
11 #import "ios/web/public/web_state/web_state_observer_bridge.h" 11 #import "ios/web/public/web_state/web_state_observer_bridge.h"
12 12
13 @protocol CRWWebViewProxy; 13 @protocol CRWWebViewProxy;
14 14
15 namespace autofill { 15 namespace autofill {
16 extern NSString* const kFormSuggestionAssistButtonPreviousElement; 16 extern NSString* const kFormSuggestionAssistButtonPreviousElement;
17 extern NSString* const kFormSuggestionAssistButtonNextElement; 17 extern NSString* const kFormSuggestionAssistButtonNextElement;
18 extern NSString* const kFormSuggestionAssistButtonDone; 18 extern NSString* const kFormSuggestionAssistButtonDone;
19 extern CGFloat const kInputAccessoryHeight;
19 } // namespace autofill 20 } // namespace autofill
20 21
21 @protocol FormInputAccessoryViewProvider; 22 @protocol FormInputAccessoryViewProvider;
22 @class FormInputAccessoryViewController; 23 @class FormInputAccessoryViewController;
23 24
24 // Block type to indicate that a FormInputAccessoryViewProvider has an accessory 25 // Block type to indicate that a FormInputAccessoryViewProvider has an accessory
25 // view to provide. 26 // view to provide.
26 typedef void (^AccessoryViewAvailableCompletion)( 27 typedef void (^AccessoryViewAvailableCompletion)(
27 BOOL inputAccessoryViewAvailable); 28 BOOL inputAccessoryViewAvailable);
28 29
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // interacting with a form. Also handles hiding and showing the default 74 // interacting with a form. Also handles hiding and showing the default
74 // accessory view elements. 75 // accessory view elements.
75 @interface FormInputAccessoryViewController 76 @interface FormInputAccessoryViewController
76 : NSObject<CRWWebStateObserver, FormInputAccessoryViewDelegate> 77 : NSObject<CRWWebStateObserver, FormInputAccessoryViewDelegate>
77 78
78 // Initializes a new controller with the specified |providers| of input 79 // Initializes a new controller with the specified |providers| of input
79 // accessory views. 80 // accessory views.
80 - (instancetype)initWithWebState:(web::WebState*)webState 81 - (instancetype)initWithWebState:(web::WebState*)webState
81 providers:(NSArray*)providers; 82 providers:(NSArray*)providers;
82 83
84 // Notifies the controller that the owning tab was shown.
85 - (void)wasShown;
86
87 // Notifies the controller that the owning tab was hidden.
88 - (void)wasHidden;
89
83 // Hides the default input accessory view and replaces it with one that shows 90 // Hides the default input accessory view and replaces it with one that shows
84 // |customView| and form navigation controls. 91 // |customView| and form navigation controls.
85 - (void)showCustomInputAccessoryView:(UIView*)customView; 92 - (void)showCustomInputAccessoryView:(UIView*)customView;
86 93
87 // Restores the default input accessory view, removing (if necessary) any 94 // Restores the default input accessory view, removing (if necessary) any
88 // previously-added custom view. 95 // previously-added custom view.
89 - (void)restoreDefaultInputAccessoryView; 96 - (void)restoreDefaultInputAccessoryView;
90 97
91 @end 98 @end
92 99
93 #endif // IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_CONTROLLER_H_ 100 #endif // IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698