#include "chrome/browser/ui/views/webauthn/authenticator_client_pin_entry_view.h"
#include <memory>
#include <utility>
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "chrome/grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/border.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/layout/table_layout.h"
#include "ui/views/style/typography.h"
namespace {
class PinTextfield : public views::Textfield { … };
BEGIN_METADATA(…)
}
AuthenticatorClientPinEntryView::AuthenticatorClientPinEntryView(
Delegate* delegate,
bool show_confirmation_text_field)
: … { … }
AuthenticatorClientPinEntryView::~AuthenticatorClientPinEntryView() = default;
void AuthenticatorClientPinEntryView::RequestFocus() { … }
void AuthenticatorClientPinEntryView::OnThemeChanged() { … }
void AuthenticatorClientPinEntryView::ContentsChanged(
views::Textfield* sender,
const std::u16string& new_contents) { … }
bool AuthenticatorClientPinEntryView::HandleKeyEvent(
views::Textfield* sender,
const ui::KeyEvent& key_event) { … }
BEGIN_METADATA(…)