Lines Matching refs:PasteboardObserverInstance
33 thread_local std::map<napi_ref, std::shared_ptr<PasteboardObserverInstance>> SystemPasteboardNapi::observers_;
41 PasteboardObserverInstance::PasteboardObserverInstance(const napi_env &env, const napi_ref &ref) : env_(env), ref_(ref)
43 stub_ = new (std::nothrow) PasteboardObserverInstance::PasteboardObserverImpl();
46 PasteboardObserverInstance::~PasteboardObserverInstance()
51 sptr<PasteboardObserverInstance::PasteboardObserverImpl> PasteboardObserverInstance::GetStub()
94 void PasteboardObserverInstance::OnPasteboardChanged()
288 observer = std::make_shared<PasteboardObserverInstance>(env, ref);
309 std::shared_ptr<PasteboardObserverInstance> observer = nullptr;
1105 std::shared_ptr<PasteboardObserverInstance> SystemPasteboardNapi::GetObserver(napi_env env, napi_value observer)
1120 void SystemPasteboardNapi::DeleteObserver(const std::shared_ptr<PasteboardObserverInstance> &observer)
1124 std::vector<std::shared_ptr<PasteboardObserverInstance>> observers;
1147 void PasteboardObserverInstance::PasteboardObserverImpl::OnPasteboardChanged()
1149 std::shared_ptr<PasteboardObserverInstance> observerInstance(wrapper_.lock());
1157 void PasteboardObserverInstance::PasteboardObserverImpl::SetObserverWrapper(
1158 const std::shared_ptr<PasteboardObserverInstance> &observerInstance)