зеркало из https://github.com/mozilla/gecko-dev.git
34 строки
1.2 KiB
Python
34 строки
1.2 KiB
Python
# -*- 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/.
|
|
|
|
HAVE_SIDEBAR = buildconfig.substs['MOZ_BUILD_APP'] in ('browser', 'mobile/android', 'xulrunner')
|
|
|
|
Classes = [
|
|
{
|
|
'cid': '{7319788a-fe93-4db3-9f39-818cf08f4256}',
|
|
'contract_ids': ['@mozilla.org/browser/search-service;1'],
|
|
'jsm': 'resource://gre/modules/SearchService.jsm',
|
|
'constructor': 'SearchService',
|
|
'processes': ProcessSelector.MAIN_PROCESS_ONLY,
|
|
},
|
|
{
|
|
'cid': '{aa892eb4-ffbf-477d-9f9a-06c995ae9f27}',
|
|
'contract_ids': ['@mozilla.org/autocomplete/search;1?name=search-autocomplete'],
|
|
'jsm': 'resource://gre/modules/SearchSuggestions.jsm',
|
|
'constructor': 'SearchSuggestAutoComplete',
|
|
},
|
|
]
|
|
|
|
if HAVE_SIDEBAR:
|
|
Classes += [
|
|
{
|
|
'cid': '{22117140-9c6e-11d3-aaf1-00805f8a4905}',
|
|
'contract_ids': ['@mozilla.org/sidebar;1'],
|
|
'jsm': 'resource://gre/modules/Sidebar.jsm',
|
|
'constructor': 'nsSidebar',
|
|
},
|
|
]
|