extensions/spellcheck/src/mozSpellI18NManager.cpp
author Andreas Pehrson <pehrsons@gmail.com>
Thu, 05 Nov 2015 15:42:24 +0800
changeset 306659 481d2dace480c02b375a91e902ece00eef223c2b
parent 301569 e8c7dfe727cd970e2c3294934e2927b14143c205
child 489668 cbb8fdf1daf98a15f7d57f6b08d273bdf96aa1a0
child 648192 c236dfe7dc98c387219d7cb45d0693560db708fd
child 694109 98e2b4ee9775a2a2b5cc1bb8a390bfe901814f38
permissions -rw-r--r--
Bug 1208371 - Various cleanups in DOMMediaStream/MediaStreamTrack. r?jib

/* -*- Mode: C++; 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 http://mozilla.org/MPL/2.0/. */

#include "mozSpellI18NManager.h"
#include "mozEnglishWordUtils.h"
#include "nsString.h"
#include "mozilla/RefPtr.h"

NS_IMPL_ISUPPORTS(mozSpellI18NManager, mozISpellI18NManager)

mozSpellI18NManager::mozSpellI18NManager()
{
}

mozSpellI18NManager::~mozSpellI18NManager()
{
}

NS_IMETHODIMP mozSpellI18NManager::GetUtil(const char16_t *aLanguage, mozISpellI18NUtil **_retval)
{
 if (!_retval) {
   return NS_ERROR_NULL_POINTER;
 }

 // XXX TODO Actually handle multiple languages.
 RefPtr<mozEnglishWordUtils> utils = new mozEnglishWordUtils;
 utils.forget(_retval);

 return NS_OK;
}