blob: 624c9e6b1af4b065092423367bc140390350170d [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.
goog.provide('autofill.mojom.AutofillAgent');
goog.provide('autofill.mojom.AutofillAgentImpl');
goog.provide('autofill.mojom.AutofillAgentPtr');
/**
* @const
* @type { !mojo.Interface };
*/
autofill.mojom.AutofillAgent;
/** @interface */
autofill.mojom.AutofillAgentImpl = class {
/**
* @param { !number } id
* @param { !autofill.mojom.FormData } form
*/
fillForm(id, form) {}
/**
* @param { !number } id
* @param { !autofill.mojom.FormData } form
*/
previewForm(id, form) {}
/**
* @param { !Array<autofill.mojom.FormDataPredictions> } forms
*/
fieldTypePredictionsAvailable(forms) {}
/**
*/
clearSection() {}
/**
*/
clearPreviewedForm() {}
/**
* @param { !mojoBase.mojom.String16 } value
*/
fillFieldWithValue(value) {}
/**
* @param { !mojoBase.mojom.String16 } value
*/
previewFieldWithValue(value) {}
/**
* @param { !boolean } available
*/
setSuggestionAvailability(available) {}
/**
* @param { !mojoBase.mojom.String16 } value
*/
acceptDataListSuggestion(value) {}
/**
* @param { !mojoBase.mojom.String16 } username
* @param { !mojoBase.mojom.String16 } password
*/
fillPasswordSuggestion(username, password) {}
/**
* @param { !mojoBase.mojom.String16 } username
* @param { !mojoBase.mojom.String16 } password
*/
previewPasswordSuggestion(username, password) {}
/**
* @param { !autofill.mojom.PasswordFormFillData } formData
*/
showInitialPasswordAccountSuggestions(formData) {}
/**
* @param { !boolean } required
*/
setUserGestureRequired(required) {}
/**
* @param { !boolean } required
*/
setSecureContextRequired(required) {}
/**
* @param { !boolean } require
*/
setFocusRequiresScroll(require) {}
/**
* @param { !boolean } query
*/
setQueryPasswordSuggestion(query) {}
/**
* @param { !Array<string> } selectors
* @return {Promise}
*/
getElementFormAndFieldData(selectors) {}
};
/**
* @implements { mojo.InterfacePtr }
* @implements { autofill.mojom.AutofillAgentImpl }
*/
autofill.mojom.AutofillAgentPtr = class {
/**
* @param { !number } id
* @param { !autofill.mojom.FormData } form
*/
fillForm(id, form) {}
/**
* @param { !number } id
* @param { !autofill.mojom.FormData } form
*/
previewForm(id, form) {}
/**
* @param { !Array<autofill.mojom.FormDataPredictions> } forms
*/
fieldTypePredictionsAvailable(forms) {}
/**
*/
clearSection() {}
/**
*/
clearPreviewedForm() {}
/**
* @param { !mojoBase.mojom.String16 } value
*/
fillFieldWithValue(value) {}
/**
* @param { !mojoBase.mojom.String16 } value
*/
previewFieldWithValue(value) {}
/**
* @param { !boolean } available
*/
setSuggestionAvailability(available) {}
/**
* @param { !mojoBase.mojom.String16 } value
*/
acceptDataListSuggestion(value) {}
/**
* @param { !mojoBase.mojom.String16 } username
* @param { !mojoBase.mojom.String16 } password
*/
fillPasswordSuggestion(username, password) {}
/**
* @param { !mojoBase.mojom.String16 } username
* @param { !mojoBase.mojom.String16 } password
*/
previewPasswordSuggestion(username, password) {}
/**
* @param { !autofill.mojom.PasswordFormFillData } formData
*/
showInitialPasswordAccountSuggestions(formData) {}
/**
* @param { !boolean } required
*/
setUserGestureRequired(required) {}
/**
* @param { !boolean } required
*/
setSecureContextRequired(required) {}
/**
* @param { !boolean } require
*/
setFocusRequiresScroll(require) {}
/**
* @param { !boolean } query
*/
setQueryPasswordSuggestion(query) {}
/**
* @param { !Array<string> } selectors
* @return {Promise}
*/
getElementFormAndFieldData(selectors) {}
};
goog.provide('autofill.mojom.PasswordAutofillAgent');
goog.provide('autofill.mojom.PasswordAutofillAgentImpl');
goog.provide('autofill.mojom.PasswordAutofillAgentPtr');
/**
* @const
* @type { !mojo.Interface };
*/
autofill.mojom.PasswordAutofillAgent;
/** @interface */
autofill.mojom.PasswordAutofillAgentImpl = class {
/**
* @param { !autofill.mojom.PasswordFormFillData } formData
*/
fillPasswordForm(formData) {}
/**
* @param { !boolean } isPassword
* @param { !mojoBase.mojom.String16 } credential
*/
fillIntoFocusedField(isPassword, credential) {}
/**
* @param { !boolean } active
*/
setLoggingState(active) {}
/**
* @param { !autofill.mojom.FormsPredictionsMap } predictions
*/
autofillUsernameAndPasswordDataReceived(predictions) {}
};
/**
* @implements { mojo.InterfacePtr }
* @implements { autofill.mojom.PasswordAutofillAgentImpl }
*/
autofill.mojom.PasswordAutofillAgentPtr = class {
/**
* @param { !autofill.mojom.PasswordFormFillData } formData
*/
fillPasswordForm(formData) {}
/**
* @param { !boolean } isPassword
* @param { !mojoBase.mojom.String16 } credential
*/
fillIntoFocusedField(isPassword, credential) {}
/**
* @param { !boolean } active
*/
setLoggingState(active) {}
/**
* @param { !autofill.mojom.FormsPredictionsMap } predictions
*/
autofillUsernameAndPasswordDataReceived(predictions) {}
};
goog.provide('autofill.mojom.PasswordGenerationAgent');
goog.provide('autofill.mojom.PasswordGenerationAgentImpl');
goog.provide('autofill.mojom.PasswordGenerationAgentPtr');
/**
* @const
* @type { !mojo.Interface };
*/
autofill.mojom.PasswordGenerationAgent;
/** @interface */
autofill.mojom.PasswordGenerationAgentImpl = class {
/**
* @param { !mojoBase.mojom.String16 } generatedPassword
*/
generatedPasswordAccepted(generatedPassword) {}
/**
* @return {Promise}
*/
userTriggeredGeneratePassword() {}
/**
* @param { !autofill.mojom.PasswordFormGenerationData } form
*/
foundFormEligibleForGeneration(form) {}
};
/**
* @implements { mojo.InterfacePtr }
* @implements { autofill.mojom.PasswordGenerationAgentImpl }
*/
autofill.mojom.PasswordGenerationAgentPtr = class {
/**
* @param { !mojoBase.mojom.String16 } generatedPassword
*/
generatedPasswordAccepted(generatedPassword) {}
/**
* @return {Promise}
*/
userTriggeredGeneratePassword() {}
/**
* @param { !autofill.mojom.PasswordFormGenerationData } form
*/
foundFormEligibleForGeneration(form) {}
};
goog.provide('autofill.mojom.AutofillAgent_FillForm_Params');
autofill.mojom.AutofillAgent_FillForm_Params = class {
constructor() {
/** @type { !number } */
this.id;
/** @type { !autofill.mojom.FormData } */
this.form;
}
};
goog.provide('autofill.mojom.AutofillAgent_PreviewForm_Params');
autofill.mojom.AutofillAgent_PreviewForm_Params = class {
constructor() {
/** @type { !number } */
this.id;
/** @type { !autofill.mojom.FormData } */
this.form;
}
};
goog.provide('autofill.mojom.AutofillAgent_FieldTypePredictionsAvailable_Params');
autofill.mojom.AutofillAgent_FieldTypePredictionsAvailable_Params = class {
constructor() {
/** @type { !Array<autofill.mojom.FormDataPredictions> } */
this.forms;
}
};
goog.provide('autofill.mojom.AutofillAgent_ClearSection_Params');
autofill.mojom.AutofillAgent_ClearSection_Params = class {
constructor() {
}
};
goog.provide('autofill.mojom.AutofillAgent_ClearPreviewedForm_Params');
autofill.mojom.AutofillAgent_ClearPreviewedForm_Params = class {
constructor() {
}
};
goog.provide('autofill.mojom.AutofillAgent_FillFieldWithValue_Params');
autofill.mojom.AutofillAgent_FillFieldWithValue_Params = class {
constructor() {
/** @type { !mojoBase.mojom.String16 } */
this.value;
}
};
goog.provide('autofill.mojom.AutofillAgent_PreviewFieldWithValue_Params');
autofill.mojom.AutofillAgent_PreviewFieldWithValue_Params = class {
constructor() {
/** @type { !mojoBase.mojom.String16 } */
this.value;
}
};
goog.provide('autofill.mojom.AutofillAgent_SetSuggestionAvailability_Params');
autofill.mojom.AutofillAgent_SetSuggestionAvailability_Params = class {
constructor() {
/** @type { !boolean } */
this.available;
}
};
goog.provide('autofill.mojom.AutofillAgent_AcceptDataListSuggestion_Params');
autofill.mojom.AutofillAgent_AcceptDataListSuggestion_Params = class {
constructor() {
/** @type { !mojoBase.mojom.String16 } */
this.value;
}
};
goog.provide('autofill.mojom.AutofillAgent_FillPasswordSuggestion_Params');
autofill.mojom.AutofillAgent_FillPasswordSuggestion_Params = class {
constructor() {
/** @type { !mojoBase.mojom.String16 } */
this.username;
/** @type { !mojoBase.mojom.String16 } */
this.password;
}
};
goog.provide('autofill.mojom.AutofillAgent_PreviewPasswordSuggestion_Params');
autofill.mojom.AutofillAgent_PreviewPasswordSuggestion_Params = class {
constructor() {
/** @type { !mojoBase.mojom.String16 } */
this.username;
/** @type { !mojoBase.mojom.String16 } */
this.password;
}
};
goog.provide('autofill.mojom.AutofillAgent_ShowInitialPasswordAccountSuggestions_Params');
autofill.mojom.AutofillAgent_ShowInitialPasswordAccountSuggestions_Params = class {
constructor() {
/** @type { !autofill.mojom.PasswordFormFillData } */
this.formData;
}
};
goog.provide('autofill.mojom.AutofillAgent_SetUserGestureRequired_Params');
autofill.mojom.AutofillAgent_SetUserGestureRequired_Params = class {
constructor() {
/** @type { !boolean } */
this.required;
}
};
goog.provide('autofill.mojom.AutofillAgent_SetSecureContextRequired_Params');
autofill.mojom.AutofillAgent_SetSecureContextRequired_Params = class {
constructor() {
/** @type { !boolean } */
this.required;
}
};
goog.provide('autofill.mojom.AutofillAgent_SetFocusRequiresScroll_Params');
autofill.mojom.AutofillAgent_SetFocusRequiresScroll_Params = class {
constructor() {
/** @type { !boolean } */
this.require;
}
};
goog.provide('autofill.mojom.AutofillAgent_SetQueryPasswordSuggestion_Params');
autofill.mojom.AutofillAgent_SetQueryPasswordSuggestion_Params = class {
constructor() {
/** @type { !boolean } */
this.query;
}
};
goog.provide('autofill.mojom.AutofillAgent_GetElementFormAndFieldData_Params');
autofill.mojom.AutofillAgent_GetElementFormAndFieldData_Params = class {
constructor() {
/** @type { !Array<string> } */
this.selectors;
}
};
goog.provide('autofill.mojom.AutofillAgent_GetElementFormAndFieldData_ResponseParams');
autofill.mojom.AutofillAgent_GetElementFormAndFieldData_ResponseParams = class {
constructor() {
/** @type { !autofill.mojom.FormData } */
this.form;
/** @type { !autofill.mojom.FormFieldData } */
this.field;
}
};
goog.provide('autofill.mojom.PasswordAutofillAgent_FillPasswordForm_Params');
autofill.mojom.PasswordAutofillAgent_FillPasswordForm_Params = class {
constructor() {
/** @type { !autofill.mojom.PasswordFormFillData } */
this.formData;
}
};
goog.provide('autofill.mojom.PasswordAutofillAgent_FillIntoFocusedField_Params');
autofill.mojom.PasswordAutofillAgent_FillIntoFocusedField_Params = class {
constructor() {
/** @type { !boolean } */
this.isPassword;
/** @type { !mojoBase.mojom.String16 } */
this.credential;
}
};
goog.provide('autofill.mojom.PasswordAutofillAgent_SetLoggingState_Params');
autofill.mojom.PasswordAutofillAgent_SetLoggingState_Params = class {
constructor() {
/** @type { !boolean } */
this.active;
}
};
goog.provide('autofill.mojom.PasswordAutofillAgent_AutofillUsernameAndPasswordDataReceived_Params');
autofill.mojom.PasswordAutofillAgent_AutofillUsernameAndPasswordDataReceived_Params = class {
constructor() {
/** @type { !autofill.mojom.FormsPredictionsMap } */
this.predictions;
}
};
goog.provide('autofill.mojom.PasswordGenerationAgent_GeneratedPasswordAccepted_Params');
autofill.mojom.PasswordGenerationAgent_GeneratedPasswordAccepted_Params = class {
constructor() {
/** @type { !mojoBase.mojom.String16 } */
this.generatedPassword;
}
};
goog.provide('autofill.mojom.PasswordGenerationAgent_UserTriggeredGeneratePassword_Params');
autofill.mojom.PasswordGenerationAgent_UserTriggeredGeneratePassword_Params = class {
constructor() {
}
};
goog.provide('autofill.mojom.PasswordGenerationAgent_UserTriggeredGeneratePassword_ResponseParams');
autofill.mojom.PasswordGenerationAgent_UserTriggeredGeneratePassword_ResponseParams = class {
constructor() {
/** @type { autofill.mojom.PasswordGenerationUIData } */
this.data;
}
};
goog.provide('autofill.mojom.PasswordGenerationAgent_FoundFormEligibleForGeneration_Params');
autofill.mojom.PasswordGenerationAgent_FoundFormEligibleForGeneration_Params = class {
constructor() {
/** @type { !autofill.mojom.PasswordFormGenerationData } */
this.form;
}
};