Lines Matching refs:PasteboardObserverInstance
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();
106 std::shared_ptr<PasteboardObserverInstance> observer = nullptr;
242 static void DeleteObserver(const std::shared_ptr<PasteboardObserverInstance> &observer);
266 static void SetObserver(napi_ref ref, std::shared_ptr<PasteboardObserverInstance> observer);
267 static std::shared_ptr<PasteboardObserverInstance> GetObserver(napi_env env, napi_value observer);
286 static thread_local std::map<napi_ref, std::shared_ptr<PasteboardObserverInstance>> observers_;