// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_GENERATION_UTIL_H_ #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_GENERATION_UTIL_H_ #include <string> #include "base/i18n/rtl.h" #include "components/autofill/core/common/form_data.h" #include "components/autofill/core/common/unique_ids.h" #include "ui/gfx/geometry/rect_f.h" namespace autofill { namespace password_generation { // Minimal length of the generated password. inline constexpr int kMinimumPasswordLength = …; // Minimum password length that allows to label the password as strong in the // UI. Must stay in sync with LENGTH_SUFFICIENT_FOR_STRONG_LABEL in // TouchToFillPasswordGenerationView.java inline constexpr int kLengthSufficientForStrongLabel = …; // Enumerates various events related to the password generation process. // Do not remove items from this enum as they are used for UMA stats logging. enum PasswordGenerationEvent { … }; // The enum, which identifies where the password generation was triggered. // Used to determine the histogram name for metrics reporting. enum class PasswordGenerationType { … }; // Wrapper to store the user interactions with the password generation bubble. struct PasswordGenerationActions { … }; struct PasswordGenerationUIData { … }; void LogPasswordGenerationEvent(PasswordGenerationEvent event); } // namespace password_generation } // namespace autofill #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_GENERATION_UTIL_H_