Bug 1073336 part 12 - Add AnimationPlayer::GetCollection(); r=dbaron
[gecko.git] / widget / nsContentProcessWidgetFactory.cpp
blobf7b7a6e08cd6dd2c7f0c2d90f3bd02fe01c86842
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* vim:expandtab:shiftwidth=4:tabstop=4:
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include "mozilla/ModuleUtils.h"
9 #include "nsWidgetsCID.h"
10 #include "nsClipboardProxy.h"
11 #include "nsColorPickerProxy.h"
12 #include "nsFilePickerProxy.h"
13 #include "nsScreenManagerProxy.h"
15 using namespace mozilla;
17 #ifndef MOZ_B2G
19 NS_GENERIC_FACTORY_CONSTRUCTOR(nsClipboardProxy)
20 NS_GENERIC_FACTORY_CONSTRUCTOR(nsColorPickerProxy)
21 NS_GENERIC_FACTORY_CONSTRUCTOR(nsFilePickerProxy)
22 NS_GENERIC_FACTORY_CONSTRUCTOR(nsScreenManagerProxy)
24 NS_DEFINE_NAMED_CID(NS_CLIPBOARD_CID);
25 NS_DEFINE_NAMED_CID(NS_COLORPICKER_CID);
26 NS_DEFINE_NAMED_CID(NS_FILEPICKER_CID);
27 NS_DEFINE_NAMED_CID(NS_SCREENMANAGER_CID);
29 static const mozilla::Module::CIDEntry kWidgetCIDs[] = {
30 { &kNS_CLIPBOARD_CID, false, nullptr, nsClipboardProxyConstructor,
31 Module::CONTENT_PROCESS_ONLY },
32 { &kNS_COLORPICKER_CID, false, nullptr, nsColorPickerProxyConstructor,
33 Module::CONTENT_PROCESS_ONLY },
34 { &kNS_FILEPICKER_CID, false, nullptr, nsFilePickerProxyConstructor,
35 Module::CONTENT_PROCESS_ONLY },
36 { &kNS_SCREENMANAGER_CID, false, nullptr, nsScreenManagerProxyConstructor,
37 Module::CONTENT_PROCESS_ONLY },
38 { nullptr }
41 static const mozilla::Module::ContractIDEntry kWidgetContracts[] = {
42 { "@mozilla.org/widget/clipboard;1", &kNS_CLIPBOARD_CID, Module::CONTENT_PROCESS_ONLY },
43 { "@mozilla.org/colorpicker;1", &kNS_COLORPICKER_CID, Module::CONTENT_PROCESS_ONLY },
44 { "@mozilla.org/filepicker;1", &kNS_FILEPICKER_CID, Module::CONTENT_PROCESS_ONLY },
45 { "@mozilla.org/gfx/screenmanager;1", &kNS_SCREENMANAGER_CID, Module::CONTENT_PROCESS_ONLY },
46 { nullptr }
49 static const mozilla::Module kWidgetModule = {
50 mozilla::Module::kVersion,
51 kWidgetCIDs,
52 kWidgetContracts
55 NSMODULE_DEFN(nsContentProcessWidgetModule) = &kWidgetModule;
57 #endif /* MOZ_B2G */