#include "ui/base/clipboard/clipboard_monitor.h"
#include "base/no_destructor.h"
#include "base/observer_list.h"
#include "build/chromeos_buildflags.h"
#include "ui/base/clipboard/clipboard_observer.h"
namespace ui {
ClipboardMonitor::ClipboardMonitor() = default;
ClipboardMonitor::~ClipboardMonitor() { … }
ClipboardMonitor* ClipboardMonitor::GetInstance() { … }
void ClipboardMonitor::NotifyClipboardDataChanged() { … }
#if BUILDFLAG(IS_CHROMEOS_ASH)
void ClipboardMonitor::NotifyClipboardDataRead() {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
for (ClipboardObserver& observer : observers_)
observer.OnClipboardDataRead();
}
#endif
void ClipboardMonitor::AddObserver(ClipboardObserver* observer) { … }
void ClipboardMonitor::RemoveObserver(ClipboardObserver* observer) { … }
}