diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-06 16:03:39 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-02-06 16:03:39 -0500 |
commit | 5483f807c2663be8c63caf8d59ee151b3ef499d3 (patch) | |
tree | 13b912637e69511529d15676a905e7fe0ef2d169 /dom/presentation/PresentationReceiver.h | |
parent | e80e4595b9034fb06592c083c80feb7613ff9518 (diff) | |
download | UXP-5483f807c2663be8c63caf8d59ee151b3ef499d3.tar UXP-5483f807c2663be8c63caf8d59ee151b3ef499d3.tar.gz UXP-5483f807c2663be8c63caf8d59ee151b3ef499d3.tar.lz UXP-5483f807c2663be8c63caf8d59ee151b3ef499d3.tar.xz UXP-5483f807c2663be8c63caf8d59ee151b3ef499d3.zip |
Issue #1390 - Get rid of the Presentation API
Diffstat (limited to 'dom/presentation/PresentationReceiver.h')
-rw-r--r-- | dom/presentation/PresentationReceiver.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/dom/presentation/PresentationReceiver.h b/dom/presentation/PresentationReceiver.h deleted file mode 100644 index ee72f587b..000000000 --- a/dom/presentation/PresentationReceiver.h +++ /dev/null @@ -1,71 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim:set ts=2 sw=2 sts=2 et cindent: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#ifndef mozilla_dom_PresentationReceiver_h -#define mozilla_dom_PresentationReceiver_h - -#include "mozilla/ErrorResult.h" -#include "nsCOMPtr.h" -#include "nsCycleCollectionParticipant.h" -#include "nsIPresentationListener.h" -#include "nsWrapperCache.h" -#include "nsString.h" - -class nsPIDOMWindowInner; - -namespace mozilla { -namespace dom { - -class PresentationConnection; -class PresentationConnectionList; -class Promise; - -class PresentationReceiver final : public nsIPresentationRespondingListener - , public nsWrapperCache -{ -public: - NS_DECL_CYCLE_COLLECTING_ISUPPORTS - NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(PresentationReceiver) - NS_DECL_NSIPRESENTATIONRESPONDINGLISTENER - - static already_AddRefed<PresentationReceiver> Create(nsPIDOMWindowInner* aWindow); - - virtual JSObject* WrapObject(JSContext* aCx, - JS::Handle<JSObject*> aGivenProto) override; - - nsPIDOMWindowInner* GetParentObject() const - { - return mOwner; - } - - // WebIDL (public APIs) - already_AddRefed<Promise> GetConnectionList(ErrorResult& aRv); - -private: - explicit PresentationReceiver(nsPIDOMWindowInner* aWindow); - - virtual ~PresentationReceiver(); - - MOZ_IS_CLASS_INIT bool Init(); - - void Shutdown(); - - void CreateConnectionList(); - - // Store the inner window ID for |UnregisterRespondingListener| call in - // |Shutdown| since the inner window may not exist at that moment. - uint64_t mWindowId; - - nsCOMPtr<nsPIDOMWindowInner> mOwner; - nsString mUrl; - RefPtr<Promise> mGetConnectionListPromise; - RefPtr<PresentationConnectionList> mConnectionList; -}; - -} // namespace dom -} // namespace mozilla - -#endif // mozilla_dom_PresentationReceiver_h |