2014-02-10 04:13:05 +04: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 04:13:10 +04:00
|
|
|
#include "nsClipboardProxy.h"
|
2014-02-24 00:19:43 +04:00
|
|
|
#include "nsColorPickerProxy.h"
|
2015-04-08 21:48:11 +03:00
|
|
|
#include "nsDragServiceProxy.h"
|
2014-02-10 04:13:05 +04:00
|
|
|
#include "nsFilePickerProxy.h"
|
2014-07-14 21:22:26 +04:00
|
|
|
#include "nsScreenManagerProxy.h"
|
2015-04-11 01:18:05 +03:00
|
|
|
#include "mozilla/widget/PuppetBidiKeyboard.h"
|
2014-02-10 04:13:05 +04:00
|
|
|
|
|
|
|
using namespace mozilla;
|
2015-04-11 01:18:05 +03:00
|
|
|
using namespace mozilla::widget;
|
2014-02-10 04:13:05 +04:00
|
|
|
|
2015-04-15 22:17:00 +03:00
|
|
|
#ifndef MOZ_WIDGET_GONK
|
2014-02-10 04:13:05 +04:00
|
|
|
|
2014-02-10 04:13:10 +04:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsClipboardProxy)
|
2014-02-24 00:19:43 +04:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsColorPickerProxy)
|
2015-04-08 21:48:11 +03:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDragServiceProxy)
|
2014-02-10 04:13:05 +04:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsFilePickerProxy)
|
2014-07-14 21:22:26 +04:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsScreenManagerProxy)
|
2015-04-11 01:18:05 +03:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(PuppetBidiKeyboard)
|
2014-02-10 04:13:05 +04:00
|
|
|
|
2014-02-10 04:13:10 +04:00
|
|
|
NS_DEFINE_NAMED_CID(NS_CLIPBOARD_CID);
|
2014-02-24 00:19:43 +04:00
|
|
|
NS_DEFINE_NAMED_CID(NS_COLORPICKER_CID);
|
2015-04-08 21:48:11 +03:00
|
|
|
NS_DEFINE_NAMED_CID(NS_DRAGSERVICE_CID);
|
2014-02-10 04:13:05 +04:00
|
|
|
NS_DEFINE_NAMED_CID(NS_FILEPICKER_CID);
|
2015-04-11 01:18:05 +03:00
|
|
|
NS_DEFINE_NAMED_CID(PUPPETBIDIKEYBOARD_CID);
|
2014-07-14 21:22:26 +04:00
|
|
|
NS_DEFINE_NAMED_CID(NS_SCREENMANAGER_CID);
|
2014-02-10 04:13:05 +04:00
|
|
|
|
|
|
|
static const mozilla::Module::CIDEntry kWidgetCIDs[] = {
|
2014-02-10 04:13:10 +04:00
|
|
|
{ &kNS_CLIPBOARD_CID, false, nullptr, nsClipboardProxyConstructor,
|
|
|
|
Module::CONTENT_PROCESS_ONLY },
|
2014-02-24 00:19:43 +04:00
|
|
|
{ &kNS_COLORPICKER_CID, false, nullptr, nsColorPickerProxyConstructor,
|
|
|
|
Module::CONTENT_PROCESS_ONLY },
|
2015-04-08 21:48:11 +03:00
|
|
|
{ &kNS_DRAGSERVICE_CID, false, nullptr, nsDragServiceProxyConstructor,
|
|
|
|
Module::CONTENT_PROCESS_ONLY },
|
2014-02-10 04:13:05 +04:00
|
|
|
{ &kNS_FILEPICKER_CID, false, nullptr, nsFilePickerProxyConstructor,
|
|
|
|
Module::CONTENT_PROCESS_ONLY },
|
2014-07-14 21:22:26 +04:00
|
|
|
{ &kNS_SCREENMANAGER_CID, false, nullptr, nsScreenManagerProxyConstructor,
|
|
|
|
Module::CONTENT_PROCESS_ONLY },
|
2015-04-11 01:18:05 +03:00
|
|
|
{ &kPUPPETBIDIKEYBOARD_CID, false, NULL, PuppetBidiKeyboardConstructor,
|
|
|
|
mozilla::Module::CONTENT_PROCESS_ONLY },
|
2014-02-10 04:13:05 +04:00
|
|
|
{ nullptr }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module::ContractIDEntry kWidgetContracts[] = {
|
2014-02-10 04:13:10 +04:00
|
|
|
{ "@mozilla.org/widget/clipboard;1", &kNS_CLIPBOARD_CID, Module::CONTENT_PROCESS_ONLY },
|
2014-02-24 00:19:43 +04:00
|
|
|
{ "@mozilla.org/colorpicker;1", &kNS_COLORPICKER_CID, Module::CONTENT_PROCESS_ONLY },
|
2014-02-10 04:13:05 +04:00
|
|
|
{ "@mozilla.org/filepicker;1", &kNS_FILEPICKER_CID, Module::CONTENT_PROCESS_ONLY },
|
2014-07-14 21:22:26 +04:00
|
|
|
{ "@mozilla.org/gfx/screenmanager;1", &kNS_SCREENMANAGER_CID, Module::CONTENT_PROCESS_ONLY },
|
2015-04-08 21:48:11 +03:00
|
|
|
{ "@mozilla.org/widget/dragservice;1", &kNS_DRAGSERVICE_CID, Module::CONTENT_PROCESS_ONLY },
|
2016-03-22 07:13:09 +03:00
|
|
|
{ "@mozilla.org/widget/bidikeyboard;1", &kPUPPETBIDIKEYBOARD_CID,
|
|
|
|
Module::CONTENT_PROCESS_ONLY },
|
2014-02-10 04:13:05 +04:00
|
|
|
{ nullptr }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module kWidgetModule = {
|
|
|
|
mozilla::Module::kVersion,
|
|
|
|
kWidgetCIDs,
|
|
|
|
kWidgetContracts
|
|
|
|
};
|
|
|
|
|
|
|
|
NSMODULE_DEFN(nsContentProcessWidgetModule) = &kWidgetModule;
|
|
|
|
|
2015-04-15 22:17:00 +03:00
|
|
|
#endif /* MOZ_WIDGET_GONK */
|