Bug 1826326 [wpt PR 39360] - Get rid of ResourceWarnings produced by the tests, a...
[gecko.git] / widget / windows / components.conf
blob0ccaae359826ccf98f67aa3cd515d6c8109fe958
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
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/.
7 Headers = [
8     '/widget/windows/nsWidgetFactory.h',
11 InitFunc = 'nsWidgetWindowsModuleCtor'
12 UnloadFunc = 'nsWidgetWindowsModuleDtor'
14 Classes = [
15     {
16         'cid': '{4c9dee4a-b083-4261-8bbe-c6883d2a6bc9}',
17         'contract_ids': ['@mozilla.org/gfx/parent/screenmanager;1'],
18         'singleton': True,
19         'type': 'mozilla::widget::ScreenManager',
20         'constructor': 'mozilla::widget::ScreenManager::GetAddRefedSingleton',
21         'headers': ['/widget/ScreenManager.h'],
22         'processes': ProcessSelector.ALLOW_IN_GPU_AND_MAIN_PROCESS,
23     },
24     {
25         'cid': '{2d96b3df-c051-11d1-a827-0040959a28c9}',
26         'contract_ids': ['@mozilla.org/widget/appshell/win;1'],
27         'headers': ['/widget/windows/nsWidgetFactory.h'],
28         'legacy_constructor': 'nsAppShellConstructor',
29         'processes': ProcessSelector.ALLOW_IN_GPU_RDD_VR_SOCKET_AND_UTILITY_PROCESS,
30     },
31     {
32         'cid': '{6987230e-0098-4e78-bc5f-1493ee7519fa}',
33         'contract_ids': ['@mozilla.org/widget/useridleservice;1'],
34         'singleton': True,
35         'type': 'nsUserIdleServiceWin',
36         'constructor': 'nsUserIdleServiceWin::GetInstance',
37         'headers': ['/widget/windows/nsUserIdleServiceWin.h', 'nsUserIdleService.h'],
38     },
39     {
40         'cid': '{919f1217-073a-4a14-b034-67d461eccacc}',
41         'contract_ids': ['@mozilla.org/parent/sound;1'],
42         'singleton': True,
43         'type': 'nsISound',
44         'constructor': 'nsSound::GetInstance',
45         'headers': ['/widget/windows/nsSound.h'],
46         'processes': ProcessSelector.MAIN_PROCESS_ONLY,
47     },
48     {
49         'cid': '{77221d5a-1dd2-11b2-8c69-c710f15d2ed5}',
50         'contract_ids': ['@mozilla.org/widget/clipboardhelper;1'],
51         'type': 'nsClipboardHelper',
52         'headers': ['/widget/nsClipboardHelper.h'],
53     },
54     {
55         'cid': '{b8e5bc54-a22f-4eb2-b061-24cb6d19c15f}',
56         'contract_ids': ['@mozilla.org/windows-taskbar;1'],
57         'type': 'mozilla::widget::WinTaskbar',
58         'headers': ['/widget/windows/WinTaskbar.h'],
59     },
60     {
61         'cid': '{73a5946f-608d-454f-9d33-0b8f8c7294b6}',
62         'contract_ids': ['@mozilla.org/windows-jumplistbuilder;1'],
63         'type': 'mozilla::widget::JumpListBuilder',
64         'headers': ['/widget/windows/JumpListBuilder.h'],
65     },
66     {
67         'cid': '{2b9a1f2c-27ce-45b6-8d4e-755d0e34f8db}',
68         'contract_ids': ['@mozilla.org/windows-jumplistitem;1'],
69         'type': 'mozilla::widget::JumpListItem',
70         'headers': ['/widget/windows/JumpListItem.h'],
71     },
72     {
73         'cid': '{21f1f13b-f75a-42ad-867a-d91ad694447e}',
74         'contract_ids': ['@mozilla.org/windows-jumplistseparator;1'],
75         'type': 'mozilla::widget::JumpListSeparator',
76         'headers': ['/widget/windows/JumpListItem.h'],
77     },
78     {
79         'cid': '{f72c5dc4-5a12-47be-be28-ab105f33b08f}',
80         'contract_ids': ['@mozilla.org/windows-jumplistlink;1'],
81         'type': 'mozilla::widget::JumpListLink',
82         'headers': ['/widget/windows/JumpListItem.h'],
83     },
84     {
85         'cid': '{b16656b2-5187-498f-abf4-56346126bfdb}',
86         'contract_ids': ['@mozilla.org/windows-jumplistshortcut;1'],
87         'type': 'mozilla::widget::JumpListShortcut',
88         'headers': ['/widget/windows/JumpListItem.h'],
89     },
90     {
91         'cid': '{e04a55e8-fee3-4ea2-a98b-41d2621adc3c}',
92         'contract_ids': ['@mozilla.org/windows-ui-utils;1'],
93         'type': 'WindowsUIUtils',
94         'headers': ['/widget/windows/WindowsUIUtils.h'],
95     },
96     {
97         'cid': '{8b5314bc-db01-11d2-96ce-0060b0fb9956}',
98         'contract_ids': ['@mozilla.org/widget/transferable;1'],
99         'type': 'nsTransferable',
100         'headers': ['/widget/nsTransferable.h'],
101     },
102     {
103         'cid': '{948a0023-e3a7-11d2-96cf-0060b0fb9956}',
104         'contract_ids': ['@mozilla.org/widget/htmlformatconverter;1'],
105         'type': 'nsHTMLFormatConverter',
106         'headers': ['/widget/nsHTMLFormatConverter.h'],
107     },
108     {
109         'cid': '{f92e733e-33a3-4752-90e5-25801ddeaf7b}',
110         'contract_ids': ['@mozilla.org/widget/parent/dragservice;1'],
111         'type': 'nsDragService',
112         'headers': ['/widget/windows/nsDragService.h'],
113         'processes': ProcessSelector.MAIN_PROCESS_ONLY,
114     },
115     {
116         'cid': '{9a0cb62b-d638-4faf-9588-ae96f5e29093}',
117         'contract_ids': ['@mozilla.org/widget/taskbar-preview-callback;1'],
118         'type': 'mozilla::widget::TaskbarPreviewCallback',
119         'headers': ['/widget/windows/TaskbarPreview.h'],
120     },
121     {
122         'name': 'GfxInfo',
123         'cid': '{d755a760-9f27-11df-0800-200c9a664242}',
124         'contract_ids': ['@mozilla.org/gfx/info;1'],
125         'type': 'mozilla::widget::GfxInfo',
126         'headers': ['/widget/windows/GfxInfo.h'],
127         'init_method': 'Init',
128         'processes': ProcessSelector.ALLOW_IN_GPU_RDD_SOCKET_AND_UTILITY_PROCESS,
129     },
130     {
131         'cid': '{e2fc3e45-c893-4b34-8f6d-b87faf65a897}',
132         'contract_ids': ['@mozilla.org/parent/filepicker;1'],
133         'type': 'nsFilePicker',
134         'headers': ['/widget/windows/nsFilePicker.h'],
135         'processes': ProcessSelector.MAIN_PROCESS_ONLY,
136     },
137     {
138         'cid': '{035d92f3-3802-4cf5-87cb-1758bfc5d4da}',
139         'contract_ids': ['@mozilla.org/parent/colorpicker;1'],
140         'type': 'nsColorPicker',
141         'headers': ['/widget/windows/nsColorPicker.h'],
142         'processes': ProcessSelector.MAIN_PROCESS_ONLY,
143     },
144     {
145         'cid': '{1201d357-8417-4926-a694-e6408fbedcf8}',
146         'contract_ids': ['@mozilla.org/sharepicker;1'],
147         'type': 'nsSharePicker',
148         'headers': ['/widget/windows/nsSharePicker.h'],
149         'processes': ProcessSelector.MAIN_PROCESS_ONLY,
150     },
151     {
152         'cid': '{25b4efa0-7054-4787-9cd6-630efb3fe6fa}',
153         'contract_ids': ['@mozilla.org/widget/parent/clipboard;1'],
154         'interfaces': ['nsIClipboard'],
155         'type': 'nsIClipboard',
156         'processes': ProcessSelector.MAIN_PROCESS_ONLY,
157     },
158     {
159         'cid': '{b6e1a890-b2b8-4883-a65f-9476f6185313}',
160         'contract_ids': ['@mozilla.org/widget/systemstatusbar;1'],
161         'singleton': True,
162         'init_method': 'Init',
163         'type': 'mozilla::widget::SystemStatusBar',
164         'constructor': 'mozilla::widget::SystemStatusBar::GetAddRefedSingleton',
165         'headers': ['/widget/windows/SystemStatusBar.h'],
166         'processes': ProcessSelector.MAIN_PROCESS_ONLY,
167     },
170 if buildconfig.substs['CC_TYPE'] in ('msvc', 'clang-cl'):
171     Classes += [
172         {
173             'cid': '{84e11f80-ca55-11dd-ad8b-0800200c9a66}',
174             'contract_ids': ['@mozilla.org/system-alerts-service;1'],
175             'type': 'mozilla::widget::ToastNotification',
176             'headers': ['/widget/windows/ToastNotification.h'],
177             'init_method': 'Init',
178             'processes': ProcessSelector.MAIN_PROCESS_ONLY,
179         },
180     ]
182 if defined('NS_PRINTING'):
183     Classes += [
184         {
185             'cid': '{d3f69889-e13a-4321-980c-a39332e21f34}',
186             'contract_ids': ['@mozilla.org/gfx/devicecontextspec;1'],
187             'type': 'nsDeviceContextSpecWin',
188             'headers': ['/widget/windows/nsDeviceContextSpecWin.h'],
189             'processes': ProcessSelector.MAIN_PROCESS_ONLY,
190         },
191         {
192             'cid': '{06beec76-a183-4d9f-85dd-085f26da565a}',
193             'contract_ids': ['@mozilla.org/widget/printdialog-service;1'],
194             'type': 'nsPrintDialogServiceWin',
195             'headers': ['/widget/windows/nsPrintDialogWin.h'],
196             'init_method': 'Init',
197             'processes': ProcessSelector.MAIN_PROCESS_ONLY,
198         },
199         {
200             'cid': '{841387c8-72e6-484b-9296-bf6eea80d58a}',
201             'contract_ids': ['@mozilla.org/gfx/printsettings-service;1'],
202             'type': 'nsPrintSettingsServiceWin',
203             'headers': ['/widget/windows/nsPrintSettingsServiceWin.h'],
204             'init_method': 'Init',
205         },
206         {
207             'cid': '{a6cf9129-15b3-11d2-932e-00805f8add32}',
208             'contract_ids': ['@mozilla.org/gfx/printerlist;1'],
209             'type': 'nsPrinterListWin',
210             'headers': ['/widget/windows/nsDeviceContextSpecWin.h'],
211             'processes': ProcessSelector.MAIN_PROCESS_ONLY,
212         },
213     ]