#ifdef UNSAFE_BUFFERS_BUILD
#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) { … }
uint32_t DesktopMediaListBase::GetImageHash(const gfx::Image& image) { … }
void DesktopMediaListBase::OnRefreshComplete() { … }
void DesktopMediaListBase::ScheduleNextRefresh() { … }
void DesktopMediaListBase::OnDelegatedSourceListSelection() { … }
void DesktopMediaListBase::OnDelegatedSourceListDismissed() { … }