Chromium Code Reviews| OLD | NEW |
|---|---|
| 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" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 | 76 |
| 77 // Creates and manages a custom input accessory view while the user is | 77 // Creates and manages a custom input accessory view while the user is |
| 78 // interacting with a form. Also handles hiding and showing the default | 78 // interacting with a form. Also handles hiding and showing the default |
| 79 // accessory view elements. | 79 // accessory view elements. |
| 80 @interface FormInputAccessoryViewController | 80 @interface FormInputAccessoryViewController |
| 81 : NSObject<CRWWebStateObserver, FormInputAccessoryViewDelegate> | 81 : NSObject<CRWWebStateObserver, FormInputAccessoryViewDelegate> |
| 82 | 82 |
| 83 // The current web view proxy. | 83 // The current web view proxy. |
| 84 // TODO(crbug.com/727716): This property should not be a part of the public | 84 // TODO(crbug.com/727716): This property should not be a part of the public |
| 85 // interface, it is used in tests as a backdoor. | 85 // interface, it is used in tests as a backdoor. |
| 86 @property(nonatomic, readonly) id<CRWWebViewProxy> webViewProxy; | 86 @property(weak, nonatomic, readonly) id<CRWWebViewProxy> webViewProxy; |
|
stkhapugin
2017/06/13 12:28:25
I think it's more of a strong, as it's a getter th
marq (ping after 24h)
2017/06/13 12:36:33
Done.
| |
| 87 | 87 |
| 88 // Initializes a new controller with the specified |providers| of input | 88 // Initializes a new controller with the specified |providers| of input |
| 89 // accessory views. | 89 // accessory views. |
| 90 - (instancetype)initWithWebState:(web::WebState*)webState | 90 - (instancetype)initWithWebState:(web::WebState*)webState |
| 91 providers:(NSArray*)providers; | 91 providers:(NSArray*)providers; |
| 92 | 92 |
| 93 // Notifies the controller that the owning tab was shown. | 93 // Notifies the controller that the owning tab was shown. |
| 94 - (void)wasShown; | 94 - (void)wasShown; |
| 95 | 95 |
| 96 // Notifies the controller that the owning tab was hidden. | 96 // Notifies the controller that the owning tab was hidden. |
| 97 - (void)wasHidden; | 97 - (void)wasHidden; |
| 98 | 98 |
| 99 // Hides the default input accessory view and replaces it with one that shows | 99 // Hides the default input accessory view and replaces it with one that shows |
| 100 // |customView| and form navigation controls. | 100 // |customView| and form navigation controls. |
| 101 - (void)showCustomInputAccessoryView:(UIView*)customView; | 101 - (void)showCustomInputAccessoryView:(UIView*)customView; |
| 102 | 102 |
| 103 // Restores the default input accessory view, removing (if necessary) any | 103 // Restores the default input accessory view, removing (if necessary) any |
| 104 // previously-added custom view. | 104 // previously-added custom view. |
| 105 - (void)restoreDefaultInputAccessoryView; | 105 - (void)restoreDefaultInputAccessoryView; |
| 106 | 106 |
| 107 @end | 107 @end |
| 108 | 108 |
| 109 #endif // IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_CONTROLLER_H_ | 109 #endif // IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_CONTROLLER_H_ |
| OLD | NEW |