author Mike de Boer <>
Fri, 10 Apr 2015 13:23:14 +0200
changeset 267072 719d7e41abeac7fee33b6d7ab4676ed6b537c3af
parent 253321 bbd37e7c0d082f380fcc1373fefa23491cd30da9
child 308585 5f4725e5f83b0e3f13030650b1164753e9e59874
permissions -rw-r--r--
Bug 1132301 - Part 5: Add unit tests for the Social Sharing feature of Loop. r=Standard8, a=lizzard

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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

callback SilentSmsCallback = void (optional MozSmsMessage message);

dictionary PaymentIccInfo {
  DOMString mcc;
  DOMString mnc;
  DOMString iccId;
  boolean dataPrimary;

interface PaymentProvider {
  readonly attribute DOMString? paymentServiceId;
  // We expose to the payment provider the information of all the SIMs
  // available in the device.
  [Cached, Pure] readonly attribute sequence<PaymentIccInfo>? iccInfo;

  void paymentSuccess(optional DOMString result);
  void paymentFailed(optional DOMString error);

  DOMRequest sendSilentSms(DOMString number, DOMString message);
  void observeSilentSms(DOMString number, SilentSmsCallback callback);
  void removeSilentSmsObserver(DOMString number, SilentSmsCallback callback);