Searched refs:PasteboardObserverInstance (Results 1 – 2 of 2) sorted by relevance
35 class PasteboardObserverInstance : public std::enable_shared_from_this<PasteboardObserverInstance> {41 … void SetObserverWrapper(const std::shared_ptr<PasteboardObserverInstance> &observerInstance);44 std::weak_ptr<PasteboardObserverInstance> wrapper_;47 explicit PasteboardObserverInstance(const napi_env &env, const napi_ref &ref);48 ~PasteboardObserverInstance();105 std::shared_ptr<PasteboardObserverInstance> observer = nullptr;260 static void DeleteObserver(const std::shared_ptr<PasteboardObserverInstance> &observer);285 static void SetObserver(napi_ref ref, std::shared_ptr<PasteboardObserverInstance> observer);286 … static std::shared_ptr<PasteboardObserverInstance> GetObserver(napi_env env, napi_value observer);305 static thread_local std::map<napi_ref, std::shared_ptr<PasteboardObserverInstance>> observers_;
42 PasteboardObserverInstance::PasteboardObserverInstance(const napi_env &env, const napi_ref &ref) : … in PasteboardObserverInstance() function in OHOS::MiscServicesNapi::PasteboardObserverInstance44 stub_ = new (std::nothrow) PasteboardObserverInstance::PasteboardObserverImpl(); in PasteboardObserverInstance()47 PasteboardObserverInstance::~PasteboardObserverInstance() in ~PasteboardObserverInstance()52 sptr<PasteboardObserverInstance::PasteboardObserverImpl> PasteboardObserverInstance::GetStub() in GetStub()95 void PasteboardObserverInstance::OnPasteboardChanged() in OnPasteboardChanged()289 observer = std::make_shared<PasteboardObserverInstance>(env, ref); in On()310 std::shared_ptr<PasteboardObserverInstance> observer = nullptr; in Off()1150 std::vector<std::shared_ptr<PasteboardObserverInstance>> observers; in DeleteObserver()1173 void PasteboardObserverInstance::PasteboardObserverImpl::OnPasteboardChanged() in OnPasteboardChanged()1183 void PasteboardObserverInstance::PasteboardObserverImpl::SetObserverWrapper( in SetObserverWrapper()[all …]