2014-02-10 00:13:05 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim:expandtab:shiftwidth=4:tabstop=4:
|
|
|
|
*/
|
|
|
|
/* 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 "mozilla/ModuleUtils.h"
|
|
|
|
#include "nsWidgetsCID.h"
|
2014-02-10 00:13:10 +00:00
|
|
|
#include "nsClipboardProxy.h"
|
2014-02-23 20:19:43 +00:00
|
|
|
#include "nsColorPickerProxy.h"
|
2014-02-10 00:13:05 +00:00
|
|
|
#include "nsFilePickerProxy.h"
|
2014-07-14 17:22:26 +00:00
|
|
|
#include "nsScreenManagerProxy.h"
|
2014-02-10 00:13:05 +00:00
|
|
|
|
|
|
|
using namespace mozilla;
|
|
|
|
|
|
|
|
#ifndef MOZ_B2G
|
|
|
|
|
2014-02-10 00:13:10 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsClipboardProxy)
|
2014-02-23 20:19:43 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsColorPickerProxy)
|
2014-02-10 00:13:05 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsFilePickerProxy)
|
2014-07-14 17:22:26 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsScreenManagerProxy)
|
2014-02-10 00:13:05 +00:00
|
|
|
|
2014-02-10 00:13:10 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_CLIPBOARD_CID);
|
2014-02-23 20:19:43 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_COLORPICKER_CID);
|
2014-02-10 00:13:05 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_FILEPICKER_CID);
|
2014-07-14 17:22:26 +00:00
|
|
|
NS_DEFINE_NAMED_CID(NS_SCREENMANAGER_CID);
|
2014-02-10 00:13:05 +00:00
|
|
|
|
|
|
|
static const mozilla::Module::CIDEntry kWidgetCIDs[] = {
|
2014-02-10 00:13:10 +00:00
|
|
|
{ &kNS_CLIPBOARD_CID, false, nullptr, nsClipboardProxyConstructor,
|
|
|
|
Module::CONTENT_PROCESS_ONLY },
|
2014-02-23 20:19:43 +00:00
|
|
|
{ &kNS_COLORPICKER_CID, false, nullptr, nsColorPickerProxyConstructor,
|
|
|
|
Module::CONTENT_PROCESS_ONLY },
|
2014-02-10 00:13:05 +00:00
|
|
|
{ &kNS_FILEPICKER_CID, false, nullptr, nsFilePickerProxyConstructor,
|
|
|
|
Module::CONTENT_PROCESS_ONLY },
|
2014-07-14 17:22:26 +00:00
|
|
|
{ &kNS_SCREENMANAGER_CID, false, nullptr, nsScreenManagerProxyConstructor,
|
|
|
|
Module::CONTENT_PROCESS_ONLY },
|
2014-02-10 00:13:05 +00:00
|
|
|
{ nullptr }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module::ContractIDEntry kWidgetContracts[] = {
|
2014-02-10 00:13:10 +00:00
|
|
|
{ "@mozilla.org/widget/clipboard;1", &kNS_CLIPBOARD_CID, Module::CONTENT_PROCESS_ONLY },
|
2014-02-23 20:19:43 +00:00
|
|
|
{ "@mozilla.org/colorpicker;1", &kNS_COLORPICKER_CID, Module::CONTENT_PROCESS_ONLY },
|
2014-02-10 00:13:05 +00:00
|
|
|
{ "@mozilla.org/filepicker;1", &kNS_FILEPICKER_CID, Module::CONTENT_PROCESS_ONLY },
|
2014-07-14 17:22:26 +00:00
|
|
|
{ "@mozilla.org/gfx/screenmanager;1", &kNS_SCREENMANAGER_CID, Module::CONTENT_PROCESS_ONLY },
|
2014-02-10 00:13:05 +00:00
|
|
|
{ nullptr }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module kWidgetModule = {
|
|
|
|
mozilla::Module::kVersion,
|
|
|
|
kWidgetCIDs,
|
|
|
|
kWidgetContracts
|
|
|
|
};
|
|
|
|
|
|
|
|
NSMODULE_DEFN(nsContentProcessWidgetModule) = &kWidgetModule;
|
|
|
|
|
|
|
|
#endif /* MOZ_B2G */
|