chromium/components/global_media_controls/media_view_utils.cc

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

#include "components/global_media_controls/media_view_utils.h"

#include <algorithm>
#include <string>

#include "base/i18n/number_formatting.h"
#include "base/i18n/time_formatting.h"
#include "base/i18n/unicodestring.h"
#include "base/no_destructor.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/time.h"
#include "third_party/icu/source/i18n/unicode/measfmt.h"
#include "third_party/icu/source/i18n/unicode/measunit.h"
#include "third_party/icu/source/i18n/unicode/measure.h"

namespace global_media_controls {

namespace {

// Returns a singleton `icu::MeasureFormat` object, so that it doesn't have to
// be recreated each time when formatting a time duration.
const icu::MeasureFormat& GetMeasureFormat() {}

}  // namespace

gfx::Size ScaleImageSizeToFitView(const gfx::Size& image_size,
                                  const gfx::Size& view_size) {}

std::u16string GetFormattedDuration(const base::TimeDelta& duration) {}

}  // namespace global_media_controls