LCOV - code coverage report
Current view: top level - dom/base - IntlUtils.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 3 33.3 %
Date: 2017-07-14 16:53:18 Functions: 1 8 12.5 %
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             : #ifndef mozilla_dom_IntlUtils_h
       7             : #define mozilla_dom_IntlUtils_h
       8             : 
       9             : #include "mozilla/dom/IntlUtilsBinding.h"
      10             : 
      11             : class nsPIDOMWindowInner;
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16             : class IntlUtils final : public nsISupports
      17             :                       , public nsWrapperCache
      18             : {
      19             : public:
      20             :   explicit IntlUtils(nsPIDOMWindowInner* aWindow);
      21             : 
      22             :   NS_DECL_CYCLE_COLLECTING_ISUPPORTS
      23           1 :   NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(IntlUtils)
      24             : 
      25           0 :   nsPIDOMWindowInner* GetParentObject() const
      26             :   {
      27           0 :     return mWindow;
      28             :   }
      29             : 
      30             :   JSObject*
      31             :   WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
      32             : 
      33             :   void
      34             :   GetDisplayNames(const Sequence<nsString>& aLocales,
      35             :                   const mozilla::dom::DisplayNameOptions& aOptions,
      36             :                   mozilla::dom::DisplayNameResult& aResult,
      37             :                   mozilla::ErrorResult& aError);
      38             : 
      39             :   void
      40             :   GetLocaleInfo(const Sequence<nsString>& aLocales,
      41             :                 mozilla::dom::LocaleInfo& aResult,
      42             :                 mozilla::ErrorResult& aError);
      43             : 
      44             : private:
      45             :   ~IntlUtils();
      46             : 
      47             :   nsCOMPtr<nsPIDOMWindowInner> mWindow;
      48             : };
      49             : 
      50             : } // namespace dom
      51             : } // namespace mozilla
      52             : #endif

Generated by: LCOV version 1.13