components.conf (3175B)
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 Headers = [ 8 '/image/build/nsImageModule.h', 9 ] 10 11 InitFunc = 'mozilla::image::EnsureModuleInitialized' 12 # This is called by LayoutModuleDtor to ensure it happens at the right time 13 # during shutdown. 14 # UnloadFunc = 'mozilla::image::ShutdownModule' 15 16 Classes = [ 17 # XXX We would like to get rid of the imgLoader factory constructor. See the 18 # comment documenting the imgLoader constructor. 19 { 20 'cid': '{c1354898-e3fe-4602-88a7-c4520c21cb4e}', 21 'contract_ids': [ 22 '@mozilla.org/image/cache;1', 23 '@mozilla.org/image/loader;1', 24 ], 25 'type': 'imgLoader', 26 'headers': ['imgLoader.h'], 27 'init_method': 'Init', 28 'categories': { 29 'content-sniffing-services': '@mozilla.org/image/loader;1', 30 'orb-content-sniffers': '@mozilla.org/image/loader;1', 31 'net-and-orb-content-sniffers': '@mozilla.org/image/loader;1', 32 }, 33 }, 34 { 35 'cid': '{f6fcd651-164b-4416-b001-9c8c393fd93b}', 36 'contract_ids': [ 37 '@mozilla.org/image-blocker-content-policy;1', 38 ], 39 'type': 'mozilla::image::ImageBlocker', 40 'headers': ['ImageBlocker.h'], 41 'categories': {'content-policy': '@mozilla.org/image-blocker-content-policy;1'}, 42 }, 43 { 44 'cid': '{20557898-1dd2-11b2-8f65-9c462ee2bc95}', 45 'contract_ids': ['@mozilla.org/image/request;1'], 46 'type': 'imgRequestProxy', 47 'headers': ['imgRequestProxy.h'], 48 }, 49 { 50 'cid': '{3d8fa16d-c9e1-4b50-bdef-2c7ae249967a}', 51 'contract_ids': ['@mozilla.org/image/tools;1'], 52 'type': 'mozilla::image::imgTools', 53 'headers': ['/image/imgTools.h'], 54 }, 55 { 56 'cid': '{13a5320c-4c91-4fa4-bd16-b081a3ba8c0b}', 57 'contract_ids': ['@mozilla.org/image/encoder;2?type=image/bmp'], 58 'type': 'nsBMPEncoder', 59 'headers': ['/image/encoders/bmp/nsBMPEncoder.h'], 60 }, 61 { 62 'cid': '{92ae3ab2-8968-41b1-8709-b6123bceaf21}', 63 'contract_ids': ['@mozilla.org/image/encoder;2?type=image/vnd.microsoft.icon'], 64 'type': 'nsICOEncoder', 65 'headers': ['/image/encoders/ico/nsICOEncoder.h'], 66 }, 67 { 68 'cid': '{ac2bb8fe-eeeb-4572-b40f-be03932b56e0}', 69 'contract_ids': ['@mozilla.org/image/encoder;2?type=image/jpeg'], 70 'type': 'nsJPEGEncoder', 71 'headers': ['/image/encoders/jpeg/nsJPEGEncoder.h'], 72 }, 73 { 74 'cid': '{38d1592e-b81e-432b-86f8-471878bbfe07}', 75 'contract_ids': ['@mozilla.org/image/encoder;2?type=image/png'], 76 'type': 'nsPNGEncoder', 77 'headers': ['/image/encoders/png/nsPNGEncoder.h'], 78 }, 79 { 80 'cid': '{a8e5a8e5-bebf-4512-9f50-e41e4748ce28}', 81 'contract_ids': ['@mozilla.org/image/encoder;2?type=image/webp'], 82 'type': 'nsWebPEncoder', 83 'headers': ['/image/encoders/webp/nsWebPEncoder.h'], 84 }, 85 ]