#include "chrome/browser/ui/views/crypto_module_password_dialog_view.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/grit/generated_resources.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/events/event.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/widget/widget.h"
CryptoModulePasswordDialogView::CryptoModulePasswordDialogView(
const std::string& slot_name,
CryptoModulePasswordReason reason,
const std::string& hostname,
CryptoModulePasswordCallback callback)
: … { … }
CryptoModulePasswordDialogView::~CryptoModulePasswordDialogView() { … }
views::View* CryptoModulePasswordDialogView::GetInitiallyFocusedView() { … }
std::u16string CryptoModulePasswordDialogView::GetWindowTitle() const { … }
void CryptoModulePasswordDialogView::ContentsChanged(
views::Textfield* sender,
const std::u16string& new_contents) { … }
bool CryptoModulePasswordDialogView::HandleKeyEvent(
views::Textfield* sender,
const ui::KeyEvent& keystroke) { … }
void CryptoModulePasswordDialogView::Init(const std::string& hostname,
const std::string& slot_name,
CryptoModulePasswordReason reason) { … }
void CryptoModulePasswordDialogView::DialogAcceptedOrCancelled(bool accepted) { … }
BEGIN_METADATA(…)
void ShowCryptoModulePasswordDialog(const std::string& slot_name,
bool retry,
CryptoModulePasswordReason reason,
const std::string& hostname,
gfx::NativeWindow parent,
CryptoModulePasswordCallback callback) { … }