summaryrefslogtreecommitdiffstats
path: root/widget/gtk/components.conf
blob: a2759a3c45cc020f54799ce61151dd45c03210fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.

Headers = [
    '/widget/gtk/nsWidgetFactory.h',
]

InitFunc = 'nsWidgetGtk2ModuleCtor'
UnloadFunc = 'nsWidgetGtk2ModuleDtor'

Classes = [
    {
        'cid': '{2d96b3df-c051-11d1-a827-0040959a28c9}',
        'contract_ids': ['@mozilla.org/widget/appshell/gtk;1'],
        'legacy_constructor': 'nsAppShellConstructor',
        'headers': ['/widget/gtk/nsWidgetFactory.h'],
        'processes': ProcessSelector.ALLOW_IN_GPU_RDD_VR_SOCKET_AND_UTILITY_PROCESS,
    },
    {
        'cid': '{e9537f8f-c07e-4435-8ab3-83f1ad6e3bbf}',
        'contract_ids': ['@mozilla.org/gfx/parent/screenmanager;1'],
        'singleton': True,
        'type': 'mozilla::widget::ScreenManager',
        'headers': ['mozilla/StaticPtr.h', 'mozilla/widget/ScreenManager.h'],
        'constructor': 'mozilla::widget::ScreenManager::GetAddRefedSingleton',
        'processes': ProcessSelector.ALLOW_IN_GPU_AND_MAIN_PROCESS,
    },
    {
        'cid': '{a9339876-0027-430f-b953-84c9c11c2da3}',
        'contract_ids': ['@mozilla.org/widget/taskbarprogress/gtk;1'],
        'type': 'TaskbarProgress',
        'headers': ['/widget/gtk/TaskbarProgress.h'],
    },
    {
        'cid': '{4364de1a-798e-419c-a6f5-ca28866b6d5f}',
        'contract_ids': ['@mozilla.org/parent/colorpicker;1'],
        'type': 'nsColorPicker',
        'headers': ['/widget/gtk/nsColorPicker.h'],
        'processes': ProcessSelector.MAIN_PROCESS_ONLY,
    },
    {
        'cid': '{1940fed5-7d02-4122-8acf-7abaac698983}',
        'contract_ids': ['@mozilla.org/parent/filepicker;1'],
        'type': 'nsFilePicker',
        'headers': ['/widget/gtk/nsFilePicker.h'],
        'processes': ProcessSelector.MAIN_PROCESS_ONLY,
    },
    {
        'cid': '{948a0023-e3a7-11d2-96cf-0060b0fb9956}',
        'contract_ids': ['@mozilla.org/widget/htmlformatconverter;1'],
        'type': 'nsHTMLFormatConverter',
        'headers': ['/widget/nsHTMLFormatConverter.h'],
    },
    {
        'cid': '{e711c28b-c1f1-4b87-8448-e1e0da0a7b7d}',
        'contract_ids': ['@mozilla.org/parent/sound;1'],
        'singleton': True,
        'type': 'nsISound',
        'constructor': 'nsSound::GetInstance',
        'headers': ['/widget/gtk/nsSound.h'],
        'processes': ProcessSelector.MAIN_PROCESS_ONLY,
    },
    {
        'cid': '{8b5314bc-db01-11d2-96ce-0060b0fb9956}',
        'contract_ids': ['@mozilla.org/widget/transferable;1'],
        'type': 'nsTransferable',
        'headers': ['/widget/nsTransferable.h'],
    },
    {
        'cid': '{e221df9b-3d66-4045-9a66-5720949f8d10}',
        'contract_ids': ['@mozilla.org/applicationchooser;1'],
        'type': 'nsApplicationChooser',
        'headers': ['/widget/gtk/nsApplicationChooser.h'],
        'processes': ProcessSelector.MAIN_PROCESS_ONLY,
    },
    {
        'cid': '{f55f5d31-dbb7-4d0d-9f6f-a4f4cd8e8ef1}',
        'contract_ids': ['@mozilla.org/widget/parent/clipboard;1'],
        'interfaces': ['nsIClipboard'],
        'type': 'nsIClipboard',
        'processes': ProcessSelector.MAIN_PROCESS_ONLY,
    },
    {
        'cid': '{77221d5a-1dd2-11b2-8c69-c710f15d2ed5}',
        'contract_ids': ['@mozilla.org/widget/clipboardhelper;1'],
        'type': 'nsClipboardHelper',
        'headers': ['/widget/nsClipboardHelper.h'],
    },
    {
        'cid': '{0ba77e04-2adb-422f-af01-5a57b8013100}',
        'contract_ids': ['@mozilla.org/widget/parent/dragservice;1'],
        'singleton': True,
        'type': 'nsDragService',
        'headers': ['/widget/gtk/nsDragService.h'],
        'constructor': 'nsDragService::GetInstance',
        'processes': ProcessSelector.MAIN_PROCESS_ONLY,
    },
    {
        'name': 'GfxInfo',
        'cid': '{d755a760-9f27-11df-0800-200c9a664242}',
        'contract_ids': ['@mozilla.org/gfx/info;1'],
        'type': 'mozilla::widget::GfxInfo',
        'headers': ['/widget/gtk/GfxInfo.h'],
        'init_method': 'Init',
        'processes': ProcessSelector.ALLOW_IN_GPU_PROCESS,
    },
    {
        'cid': '{6987230e-0098-4e78-bc5f-1493ee7519fa}',
        'contract_ids': ['@mozilla.org/widget/useridleservice;1'],
        'singleton': True,
        'type': 'nsUserIdleService',
        'headers': ['/widget/gtk/nsUserIdleServiceGTK.h'],
        'constructor': 'nsUserIdleServiceGTK::GetInstance',
    },
]

if defined('NS_PRINTING'):
    Classes += [
        {
            'cid': '{d3f69889-e13a-4321-980c-a39332e21f34}',
            'contract_ids': ['@mozilla.org/gfx/devicecontextspec;1'],
            'type': 'nsDeviceContextSpecGTK',
            'headers': ['/widget/gtk/nsDeviceContextSpecG.h'],
            'processes': ProcessSelector.MAIN_PROCESS_ONLY,
        },
        {
            'cid': '{06beec76-a183-4d9f-85dd-085f26da565a}',
            'contract_ids': ['@mozilla.org/widget/printdialog-service;1'],
            'type': 'nsPrintDialogServiceGTK',
            'headers': ['/widget/gtk/nsPrintDialogGTK.h'],
            'init_method': 'Init',
            'processes': ProcessSelector.MAIN_PROCESS_ONLY,
        },
        {
            'cid': '{841387c8-72e6-484b-9296-bf6eea80d58a}',
            'contract_ids': ['@mozilla.org/gfx/printsettings-service;1'],
            'type': 'nsPrintSettingsServiceGTK',
            'headers': ['/widget/gtk/nsPrintSettingsServiceGTK.h'],
            'init_method': 'Init',
        },
        {
            'cid': '{a6cf9129-15b3-11d2-932e-00805f8add32}',
            'contract_ids': ['@mozilla.org/gfx/printerlist;1'],
            'type': 'nsPrinterListCUPS',
            'headers': ['/widget/nsPrinterListCUPS.h'],
            'processes': ProcessSelector.MAIN_PROCESS_ONLY,
        },
    ]