Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | """ -*- Mode: Python -*- |
michael@0 | 2 | This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | |
michael@0 | 6 | The name of the event which real interface should have nsIDOM-prefix, |
michael@0 | 7 | and should be in nsIDOM<name>.idl file and which should have |
michael@0 | 8 | <name>Init dictionary for the event constructor. """ |
michael@0 | 9 | |
michael@0 | 10 | simple_events = [ |
michael@0 | 11 | 'ProgressEvent', |
michael@0 | 12 | 'StorageEvent', |
michael@0 | 13 | 'MozSettingsEvent', |
michael@0 | 14 | 'CustomEvent', |
michael@0 | 15 | 'PageTransitionEvent', |
michael@0 | 16 | 'DOMTransactionEvent', |
michael@0 | 17 | 'PopStateEvent', |
michael@0 | 18 | 'HashChangeEvent', |
michael@0 | 19 | 'CloseEvent', |
michael@0 | 20 | 'DeviceOrientationEvent', |
michael@0 | 21 | 'MozApplicationEvent', |
michael@0 | 22 | 'SmartCardEvent', |
michael@0 | 23 | 'StyleRuleChangeEvent', |
michael@0 | 24 | 'StyleSheetChangeEvent', |
michael@0 | 25 | 'StyleSheetApplicableStateChangeEvent', |
michael@0 | 26 | #ifdef MOZ_WIDGET_GONK |
michael@0 | 27 | 'MozWifiP2pStatusChangeEvent', |
michael@0 | 28 | 'MozWifiStatusChangeEvent', |
michael@0 | 29 | 'MozWifiConnectionInfoEvent', |
michael@0 | 30 | #endif |
michael@0 | 31 | #ifdef MOZ_B2G_RIL |
michael@0 | 32 | 'MozCellBroadcastEvent', |
michael@0 | 33 | 'MozVoicemailEvent', |
michael@0 | 34 | #endif |
michael@0 | 35 | 'ElementReplaceEvent', |
michael@0 | 36 | 'MozSmsEvent', |
michael@0 | 37 | 'MozMmsEvent', |
michael@0 | 38 | #ifdef MOZ_WEBSPEECH |
michael@0 | 39 | 'SpeechSynthesisEvent', |
michael@0 | 40 | #endif |
michael@0 | 41 | 'DeviceStorageChangeEvent', |
michael@0 | 42 | 'PopupBlockedEvent', |
michael@0 | 43 | 'RecordErrorEvent', |
michael@0 | 44 | #ifdef MOZ_WEBSPEECH |
michael@0 | 45 | 'SpeechRecognitionEvent', |
michael@0 | 46 | #endif |
michael@0 | 47 | ] |
michael@0 | 48 | |
michael@0 | 49 | """ include file names """ |
michael@0 | 50 | special_includes = [ |
michael@0 | 51 | 'nsContentUtils.h', |
michael@0 | 52 | 'nsIDOMApplicationRegistry.h', |
michael@0 | 53 | 'nsIDOMFile.h' |
michael@0 | 54 | ] |
michael@0 | 55 | |
michael@0 | 56 | """ name of the type to not include using #include "typename.h" """ |
michael@0 | 57 | exclude_automatic_type_include = [ |
michael@0 | 58 | 'nsISupports', |
michael@0 | 59 | 'mozIDOMApplication', |
michael@0 | 60 | 'nsIDOMBlob' |
michael@0 | 61 | ] |
michael@0 | 62 | |
michael@0 | 63 | """ Map xpidl interface names to implementation classes. The third column is the canonical interface. """ |
michael@0 | 64 | xpidl_to_native = [ |
michael@0 | 65 | ['nsIDOMDocument', 'nsIDocument', 'nsIDocument'], |
michael@0 | 66 | ['nsIDOMElement', 'mozilla::dom::Element', 'mozilla::dom::Element'], |
michael@0 | 67 | ['nsIDOMCSSStyleSheet', 'nsCSSStyleSheet', 'nsIStyleSheet'], |
michael@0 | 68 | ['nsIDOMWindow', 'nsGlobalWindow', 'nsIDOMEventTarget'] |
michael@0 | 69 | ] |
michael@0 | 70 |