// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_WEB_APPLICATIONS_PREINSTALLED_WEB_APPS_PREINSTALLED_WEB_APP_DEFINITION_UTILS_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_PREINSTALLED_WEB_APPS_PREINSTALLED_WEB_APP_DEFINITION_UTILS_H_

#include <initializer_list>

#include "base/containers/span.h"
#include "chrome/browser/web_applications/model/web_app_icon_types.h"

namespace web_app {

OrderedSizeToBitmap LoadBundledIcons(
    const std::initializer_list<int>& icon_resource_ids);

struct Translation {
  const char* bcp47_locale;
  const char* utf8_translation;
};

const char* GetTranslatedName(const char* utf8_default_name,
                              base::span<const Translation> translations);

}  // namespace web_app

#endif  // CHROME_BROWSER_WEB_APPLICATIONS_PREINSTALLED_WEB_APPS_PREINSTALLED_WEB_APP_DEFINITION_UTILS_H_
