#include "chrome/browser/ui/views/web_apps/file_handler_launch_dialog_view.h"
#include <algorithm>
#include <memory>
#include <string>
#include "base/i18n/message_formatter.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/ui/web_applications/web_app_dialogs.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/browser/web_applications/web_app_utils.h"
#include "chrome/grit/generated_resources.h"
#include "components/vector_icons/vector_icons.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/gfx/text_elider.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/flex_layout.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/view_class_properties.h"
namespace web_app {
FileHandlerLaunchDialogView::FileHandlerLaunchDialogView(
const std::vector<base::FilePath>& file_paths,
Profile* profile,
const webapps::AppId& app_id,
WebAppLaunchAcceptanceCallback close_callback)
: … { … }
FileHandlerLaunchDialogView::~FileHandlerLaunchDialogView() = default;
std::unique_ptr<views::View>
FileHandlerLaunchDialogView::CreateAboveAppInfoView() { … }
std::unique_ptr<views::View>
FileHandlerLaunchDialogView::CreateBelowAppInfoView() { … }
std::u16string FileHandlerLaunchDialogView::GetRememberChoiceString() { … }
BEGIN_METADATA(…)
void ShowWebAppFileLaunchDialog(const std::vector<base::FilePath>& file_paths,
Profile* profile,
const webapps::AppId& app_id,
WebAppLaunchAcceptanceCallback close_callback) { … }
}