author Xidorn Quan <>
Wed, 13 Jul 2016 09:01:25 +1000
changeset 305792 875e441f8b804adaf67ad704171c8b2f04015499
parent 282426 e22b3043887ed36bf2c634c2924a7c8d39d226b1
permissions -rw-r--r--
Bug 1286089 - Ensure servo can be linked properly for different compilers. r=glandium MozReview-Commit-ID: 71NofEtZx6B

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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_MobileMessageError_h
#define mozilla_dom_MobileMessageError_h

#include "mozilla/dom/DOMError.h"

namespace mozilla {
namespace dom {

class MmsMessage;
class OwningSmsMessageOrMmsMessage;
class SmsMessage;

class DOMMobileMessageError final : public DOMError

  DOMMobileMessageError(nsPIDOMWindowInner* aWindow, const nsAString& aName,
                        SmsMessage* aSms);

  DOMMobileMessageError(nsPIDOMWindowInner* aWindow, const nsAString& aName,
                        MmsMessage* aMms);

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

  void GetData(OwningSmsMessageOrMmsMessage& aRetVal) const;

  ~DOMMobileMessageError() {}

  RefPtr<SmsMessage> mSms;
  RefPtr<MmsMessage> mMms;

} // namespace dom
} // namespace mozilla

#endif // mozilla_dom_MobileMessageError_h