author Nick Alexander <>
Tue, 20 Oct 2015 15:32:50 -0700
changeset 302267 479539a438420df4feddae381c74c61be108bf5a
parent 301570 e8c7dfe727cd970e2c3294934e2927b14143c205
child 318762 e22b3043887ed36bf2c634c2924a7c8d39d226b1
permissions -rw-r--r--
Bug 1123416 - Part 5: Make a 'thirdparty' Gradle project in the source directory. r=sebastian I don't want to cut consumers of $OBJDIR/mobile/android/gradle over yet, so this doesn't remove the existing 'thirdparty' project.

/* -*- 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 */

#ifndef mozilla_dom_Presentation_h
#define mozilla_dom_Presentation_h

#include "mozilla/DOMEventTargetHelper.h"

namespace mozilla {
namespace dom {

class Promise;
class PresentationReceiver;
class PresentationRequest;

class Presentation final : public DOMEventTargetHelper

  static already_AddRefed<Presentation> Create(nsPIDOMWindow* aWindow);

  virtual JSObject* WrapObject(JSContext* aCx,
                               JS::Handle<JSObject*> aGivenProto) override;

  // WebIDL (public APIs)
  void SetDefaultRequest(PresentationRequest* aRequest);

  already_AddRefed<PresentationRequest> GetDefaultRequest() const;

  already_AddRefed<PresentationReceiver> GetReceiver() const;

  explicit Presentation(nsPIDOMWindow* aWindow);


  bool Init();

  RefPtr<PresentationRequest> mDefaultRequest;
  RefPtr<PresentationReceiver> mReceiver;

} // namespace dom
} // namespace mozilla

#endif // mozilla_dom_Presentation_h