chromium/chrome/browser/media/webrtc/desktop_media_list_base.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "chrome/browser/media/webrtc/desktop_media_list_base.h"

#include <set>
#include <utility>

#include "base/functional/bind.h"
#include "base/hash/hash.h"
#include "chrome/browser/media/webrtc/desktop_media_list.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/image/image.h"

BrowserThread;
DesktopMediaID;

DesktopMediaListBase::DesktopMediaListBase(base::TimeDelta update_period)
    :{}

DesktopMediaListBase::DesktopMediaListBase(base::TimeDelta update_period,
                                           DesktopMediaListObserver* observer)
    :{}

DesktopMediaListBase::~DesktopMediaListBase() = default;

void DesktopMediaListBase::SetUpdatePeriod(base::TimeDelta period) {}

void DesktopMediaListBase::SetThumbnailSize(const gfx::Size& thumbnail_size) {}

void DesktopMediaListBase::SetViewDialogWindowId(DesktopMediaID dialog_id) {}

void DesktopMediaListBase::StartUpdating(DesktopMediaListObserver* observer) {}

void DesktopMediaListBase::Update(UpdateCallback callback) {}

int DesktopMediaListBase::GetSourceCount() const {}

const DesktopMediaList::Source& DesktopMediaListBase::GetSource(
    int index) const {}

DesktopMediaList::Type DesktopMediaListBase::GetMediaListType() const {}

bool DesktopMediaListBase::IsSourceListDelegated() const {}

void DesktopMediaListBase::ClearDelegatedSourceListSelection() {}

void DesktopMediaListBase::FocusList() {}
void DesktopMediaListBase::HideList() {}
void DesktopMediaListBase::ShowDelegatedList() {}

DesktopMediaListBase::SourceDescription::SourceDescription(
    DesktopMediaID id,
    const std::u16string& name)
    :{}

void DesktopMediaListBase::UpdateSourcesList(
    const std::vector<SourceDescription>& new_sources) {}

void DesktopMediaListBase::UpdateSourceThumbnail(const DesktopMediaID& id,
                                                 const gfx::ImageSkia& image) {}

void DesktopMediaListBase::UpdateSourcePreview(const DesktopMediaID& id,
                                               const gfx::ImageSkia& image) {}

// static
uint32_t DesktopMediaListBase::GetImageHash(const gfx::Image& image) {}

void DesktopMediaListBase::OnRefreshComplete() {}

void DesktopMediaListBase::ScheduleNextRefresh() {}

void DesktopMediaListBase::OnDelegatedSourceListSelection() {}

void DesktopMediaListBase::OnDelegatedSourceListDismissed() {}