blob: 46f0d666306fe079043e760355fcf0e41647bd58 [file] [log] [blame]
// Copyright 2018 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_WEB_VIEW_PUBLIC_CWV_PREFERENCES_AUTOFILL_H_
#define IOS_WEB_VIEW_PUBLIC_CWV_PREFERENCES_AUTOFILL_H_
#import <Foundation/Foundation.h>
#import "cwv_preferences.h"
NS_ASSUME_NONNULL_BEGIN
@interface CWVPreferences (Autofill)
// Whether or not profile autofill is turned on. Defaults to |YES|.
// If enabled, contents of submitted profiles may be saved and offered as a
// suggestion in either the same or similar forms.
@property(nonatomic, assign, getter=isProfileAutofillEnabled)
BOOL profileAutofillEnabled;
// Whether or not credit card autofill is turned on. Defaults to |YES|.
// If enabled, contents of submitted credit cards may be saved and offered as a
// suggestion in either the same or similar forms.
@property(nonatomic, assign, getter=isCreditCardAutofillEnabled)
BOOL creditCardAutofillEnabled;
// Whether or not CWVWebView allows saving passwords for autofill. Defaults to
// |YES|. When it is NO, it doesn't ask if you want to save passwords but will
// continue to fill passwords.
//
// TODO(crbug.com/905221): Preference should also control autofill behavior for
// the passwords.
@property(nonatomic, assign, getter=isPasswordAutofillEnabled)
BOOL passwordAutofillEnabled;
@end
NS_ASSUME_NONNULL_END
#endif // IOS_WEB_VIEW_PUBLIC_CWV_PREFERENCES_AUTOFILL_H_