2019-01-25 04:27:24 +03:00
|
|
|
# -*- 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'],
|
2019-04-10 00:13:16 +03:00
|
|
|
'processes': ProcessSelector.ALLOW_IN_GPU_RDD_VR_AND_SOCKET_PROCESS,
|
2019-01-25 04:27:24 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{c401eb80-f9ea-11d3-bb6f-e732b73ebe7c}',
|
|
|
|
'contract_ids': ['@mozilla.org/gfx/screenmanager;1'],
|
|
|
|
'singleton': True,
|
|
|
|
'type': 'mozilla::widget::ScreenManager',
|
|
|
|
'headers': ['mozilla/StaticPtr.h', 'mozilla/widget/ScreenManager.h'],
|
|
|
|
'constructor': 'mozilla::widget::ScreenManager::GetAddRefedSingleton',
|
2020-08-08 00:31:53 +03:00
|
|
|
'processes': ProcessSelector.ALLOW_IN_GPU_AND_MAIN_PROCESS,
|
2019-01-25 04:27:24 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{a9339876-0027-430f-b953-84c9c11c2da3}',
|
|
|
|
'contract_ids': ['@mozilla.org/widget/taskbarprogress/gtk;1'],
|
|
|
|
'type': 'TaskbarProgress',
|
|
|
|
'headers': ['/widget/gtk/TaskbarProgress.h'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{0f872c8c-3ee6-46bd-92a2-69652c6b474e}',
|
|
|
|
'contract_ids': ['@mozilla.org/colorpicker;1'],
|
|
|
|
'type': 'nsColorPicker',
|
|
|
|
'headers': ['/widget/gtk/nsColorPicker.h'],
|
|
|
|
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{bd57cee8-1dd1-11b2-9fe7-95cf4709aea3}',
|
|
|
|
'contract_ids': ['@mozilla.org/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': '{b148eed2-236d-11d3-b35c-00a0cc3c1cde}',
|
|
|
|
'contract_ids': ['@mozilla.org/sound;1'],
|
|
|
|
'singleton': True,
|
|
|
|
'type': 'nsISound',
|
|
|
|
'constructor': 'nsSound::GetInstance',
|
|
|
|
'headers': ['/widget/gtk/nsSound.h'],
|
|
|
|
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{fc2389b8-c650-4093-9e42-b05e5f0685b7}',
|
|
|
|
'contract_ids': ['@mozilla.org/widget/image-to-gdk-pixbuf;1'],
|
|
|
|
'type': 'nsImageToPixbuf',
|
|
|
|
'headers': ['/widget/gtk/nsImageToPixbuf.h'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{8b5314bc-db01-11d2-96ce-0060b0fb9956}',
|
|
|
|
'contract_ids': ['@mozilla.org/widget/transferable;1'],
|
|
|
|
'type': 'nsTransferable',
|
|
|
|
'headers': ['/widget/nsTransferable.h'],
|
|
|
|
},
|
2019-08-21 15:25:21 +03:00
|
|
|
{
|
|
|
|
'cid': '{e221df9b-3d66-4045-9a66-5720949f8d10}',
|
|
|
|
'contract_ids': ['@mozilla.org/applicationchooser;1'],
|
|
|
|
'type': 'nsApplicationChooser',
|
|
|
|
'headers': ['/widget/gtk/nsApplicationChooser.h'],
|
|
|
|
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
|
|
|
|
},
|
2019-01-25 04:27:24 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
if defined('MOZ_X11'):
|
|
|
|
Classes += [
|
|
|
|
{
|
2020-07-10 00:42:25 +03:00
|
|
|
'js_name': 'clipboard',
|
2019-01-25 04:27:24 +03:00
|
|
|
'cid': '{8b5314ba-db01-11d2-96ce-0060b0fb9956}',
|
|
|
|
'contract_ids': ['@mozilla.org/widget/clipboard;1'],
|
2020-07-10 00:42:25 +03:00
|
|
|
'interfaces': ['nsIClipboard'],
|
2019-01-25 04:27:24 +03:00
|
|
|
'type': 'nsIClipboard',
|
|
|
|
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
|
2020-07-10 00:42:25 +03:00
|
|
|
'overridable': True,
|
2019-01-25 04:27:24 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{77221d5a-1dd2-11b2-8c69-c710f15d2ed5}',
|
|
|
|
'contract_ids': ['@mozilla.org/widget/clipboardhelper;1'],
|
|
|
|
'type': 'nsClipboardHelper',
|
|
|
|
'headers': ['/widget/nsClipboardHelper.h'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{8b5314bb-db01-11d2-96ce-0060b0fb9956}',
|
|
|
|
'contract_ids': ['@mozilla.org/widget/dragservice;1'],
|
|
|
|
'singleton': True,
|
|
|
|
'type': 'nsDragService',
|
|
|
|
'headers': ['/widget/gtk/nsDragService.h'],
|
|
|
|
'constructor': 'nsDragService::GetInstance',
|
|
|
|
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{d755a760-9f27-11df-0800-200c9a664242}',
|
|
|
|
'contract_ids': ['@mozilla.org/gfx/info;1'],
|
|
|
|
'type': 'mozilla::widget::GfxInfo',
|
|
|
|
'headers': ['/widget/GfxInfoX11.h'],
|
|
|
|
'init_method': 'Init',
|
2020-08-08 00:31:53 +03:00
|
|
|
'processes': ProcessSelector.ALLOW_IN_GPU_PROCESS,
|
2019-01-25 04:27:24 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{6987230e-0098-4e78-bc5f-1493ee7519fa}',
|
2020-07-20 19:06:59 +03:00
|
|
|
'contract_ids': ['@mozilla.org/widget/useridleservice;1'],
|
2019-01-25 04:27:24 +03:00
|
|
|
'singleton': True,
|
2020-07-20 19:06:59 +03:00
|
|
|
'type': 'nsUserIdleService',
|
|
|
|
'headers': ['/widget/gtk/nsUserIdleServiceGTK.h'],
|
|
|
|
'constructor': 'nsUserIdleServiceGTK::GetInstance',
|
2019-01-25 04:27:24 +03:00
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
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'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{06beec76-a183-4d9f-85dd-085f26da565a}',
|
|
|
|
'contract_ids': ['@mozilla.org/widget/printdialog-service;1'],
|
|
|
|
'type': 'nsPrintDialogServiceGTK',
|
|
|
|
'headers': ['/widget/gtk/nsPrintDialogGTK.h'],
|
|
|
|
'init_method': 'Init',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'cid': '{2f977d53-5485-11d4-87e2-0010a4e75ef2}',
|
|
|
|
'contract_ids': ['@mozilla.org/gfx/printsession;1'],
|
|
|
|
'type': 'nsPrintSession',
|
|
|
|
'headers': ['/widget/nsPrintSession.h'],
|
|
|
|
'init_method': 'Init',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'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}',
|
2020-07-05 22:00:43 +03:00
|
|
|
'contract_ids': ['@mozilla.org/gfx/printerlist;1'],
|
2020-08-07 15:04:26 +03:00
|
|
|
'type': 'nsPrinterListCUPS',
|
|
|
|
'headers': ['/widget/nsPrinterListCUPS.h'],
|
2019-01-25 04:27:24 +03:00
|
|
|
},
|
|
|
|
]
|