LCOV - code coverage report
Current view: top level - dom/payments - PaymentAddress.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 8 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim:set ts=2 sw=2 sts=2 et cindent: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef mozilla_dom_PaymentAddress_h
       8             : #define mozilla_dom_PaymentAddress_h
       9             : 
      10             : #include "nsPIDOMWindow.h"
      11             : #include "nsWrapperCache.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16             : class PaymentAddress final : public nsISupports,
      17             :                              public nsWrapperCache
      18             : {
      19             : public:
      20             :   NS_DECL_CYCLE_COLLECTING_ISUPPORTS
      21           0 :   NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(PaymentAddress)
      22             : 
      23             :   PaymentAddress(nsPIDOMWindowInner* aWindow,
      24             :                  const nsAString& aCountry,
      25             :                  const nsTArray<nsString>& aAddressLine,
      26             :                  const nsAString& aRegion,
      27             :                  const nsAString& aCity,
      28             :                  const nsAString& aDependentLocality,
      29             :                  const nsAString& aPostalCode,
      30             :                  const nsAString& aSortingCode,
      31             :                  const nsAString& aLanguageCode,
      32             :                  const nsAString& aOrganization,
      33             :                  const nsAString& aRecipient,
      34             :                  const nsAString& aPhone);
      35             : 
      36           0 :   nsPIDOMWindowInner* GetParentObject() const
      37             :   {
      38           0 :     return mOwner;
      39             :   }
      40             : 
      41             :   virtual JSObject* WrapObject(JSContext* aCx,
      42             :                                JS::Handle<JSObject*> aGivenProto) override;
      43             : 
      44             :   // Getter functions
      45             :   void GetCountry(nsAString& aRetVal) const;
      46             : 
      47             :   void GetAddressLine(nsTArray<nsString>& aRetVal) const;
      48             : 
      49             :   void GetRegion(nsAString& aRetVal) const;
      50             : 
      51             :   void GetCity(nsAString& aRetVal) const;
      52             : 
      53             :   void GetDependentLocality(nsAString& aRetVal) const;
      54             : 
      55             :   void GetPostalCode(nsAString& aRetVal) const;
      56             : 
      57             :   void GetSortingCode(nsAString& aRetVal) const;
      58             : 
      59             :   void GetLanguageCode(nsAString& aRetVal) const;
      60             : 
      61             :   void GetOrganization(nsAString& aRetVal) const;
      62             : 
      63             :   void GetRecipient(nsAString& aRetVal) const;
      64             : 
      65             :   void GetPhone(nsAString& aRetVal) const;
      66             : 
      67             : private:
      68             :   ~PaymentAddress();
      69             : 
      70             :   nsString mCountry;
      71             :   nsTArray<nsString> mAddressLine;
      72             :   nsString mRegion;
      73             :   nsString mCity;
      74             :   nsString mDependentLocality;
      75             :   nsString mPostalCode;
      76             :   nsString mSortingCode;
      77             :   nsString mLanguageCode;
      78             :   nsString mOrganization;
      79             :   nsString mRecipient;
      80             :   nsString mPhone;
      81             : 
      82             :   nsCOMPtr<nsPIDOMWindowInner> mOwner;
      83             : };
      84             : 
      85             : } // namespace dom
      86             : } // namespace mozilla
      87             : 
      88             : #endif // mozilla_dom_PaymentAddress_h

Generated by: LCOV version 1.13