components.conf (1727B)
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/. 6 7 Classes = [] 8 9 TOOLKIT = buildconfig.substs['MOZ_WIDGET_TOOLKIT'] 10 11 shell_service_contracts = [ 12 '@mozilla.org/browser/shell-service;1', 13 '@mozilla.org/toolkit/shell-service;1', 14 ] 15 16 if TOOLKIT == 'gtk': 17 Classes += [ 18 { 19 'cid': '{63c7b9f4-0cc8-43f8-b666-0a661655cb73}', 20 'contract_ids': shell_service_contracts, 21 'type': 'nsGNOMEShellService', 22 'headers': ['/browser/components/shell/nsGNOMEShellService.h'], 23 'init_method': 'Init', 24 }, 25 ] 26 elif TOOLKIT == 'cocoa': 27 Classes += [ 28 { 29 'cid': '{63c7b9f4-0cc8-43f8-b666-0a661655cb73}', 30 'contract_ids': shell_service_contracts, 31 'type': 'nsMacShellService', 32 'headers': ['/browser/components/shell/nsMacShellService.h'], 33 }, 34 ] 35 elif buildconfig.substs['OS_ARCH'] == 'WINNT': 36 Classes += [ 37 { 38 'cid': '{63c7b9f4-0cc8-43f8-b666-0a661655cb73}', 39 'contract_ids': shell_service_contracts, 40 'type': 'nsWindowsShellService', 41 'headers': ['/browser/components/shell/nsWindowsShellService.h'], 42 }, 43 { 44 'cid': '{93480624-806e-4756-b7cb-0fb7dd746a8f}', 45 'contract_ids': ['@mozilla.org/profile/migrator/iehistoryenumerator;1'], 46 'type': 'nsIEHistoryEnumerator', 47 'headers': ['/browser/components/migration/nsIEHistoryEnumerator.h'], 48 }, 49 ]