#include "components/javascript_dialogs/views/app_modal_dialog_view_views.h"
#include <memory>
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "components/javascript_dialogs/app_modal_dialog_controller.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/views/controls/message_box_view.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/widget/widget.h"
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#include "components/javascript_dialogs/views/layer_dimmer.h"
#include "ui/aura/window.h"
#endif
namespace javascript_dialogs {
AppModalDialogViewViews::AppModalDialogViewViews(
AppModalDialogController* controller)
: … { … }
AppModalDialogViewViews::~AppModalDialogViewViews() = default;
void AppModalDialogViewViews::ShowAppModalDialog() { … }
void AppModalDialogViewViews::ActivateAppModalDialog() { … }
void AppModalDialogViewViews::CloseAppModalDialog() { … }
void AppModalDialogViewViews::AcceptAppModalDialog() { … }
void AppModalDialogViewViews::CancelAppModalDialog() { … }
bool AppModalDialogViewViews::IsShowing() const { … }
std::u16string AppModalDialogViewViews::GetWindowTitle() const { … }
ui::mojom::ModalType AppModalDialogViewViews::GetModalType() const { … }
views::View* AppModalDialogViewViews::GetContentsView() { … }
views::View* AppModalDialogViewViews::GetInitiallyFocusedView() { … }
bool AppModalDialogViewViews::ShouldShowCloseButton() const { … }
void AppModalDialogViewViews::WindowClosing() { … }
views::Widget* AppModalDialogViewViews::GetWidget() { … }
const views::Widget* AppModalDialogViewViews::GetWidget() const { … }
}