Dokumentacja głównych komponentów, interfejsów i funkcji dostarczanych przez XPCOM.
Documentation of core components, interfaces, and functions provided by XPCOM.
Wszystkie obiekty XPCOM implementują jeden lub więcej interfejsów.
Every XPCOM object implements one or more interfaces.
Niektóre komponenty XPCOM są specjalnymi komponentami nazwanymi usługami.
Some XPCOM components are special components called services.
Firefox obsługuje komponenty XPCOM w rozszerzeniach.
Firefox supports XPCOM components in extensions.
W kodzie XPCOM można teraz korzystać z cyklicznego mechanizmu zbierania, który zwalnia nieużywaną pamięć, nie dopuszczając do jej wyciekania.
XPCOM code can now take advantage of the cycle collector, which helps ensure that unused memory gets released instead of leaking.
Jak używać komponentów XPCOM.
How to talk with XPCOM components.
Nagłówki dla 'zamrożonych interfejsów', funkcje XPCOM, oraz funkcje NSPR (pod include/)
Header files for frozen interfaces, XPCOM functions, and NSPR functions (under include/)
Proces wywoływania XPCOM ze skryptów jest nazywany XPConnect, który jest warstwą tłumaczącą obiekty skryptowe na obiekty wewnętrzne.
The process of calling XPCOM from a script is called XPConnect, which is a layer which translates script objects into native objects.
btoa() jest także dostępna dla komponentów XPCOM zaimplementowanych w JavaScript, nawet jeżeli window nie jest globalnym obiektem w komponencie.
atob() is also available to XPCOM components implemented in JavaScript, even though window is not the global object in components.
Komponenty XPCOM są zazwyczaj zaimplementowane wewnętrznie, co oznacza, że generalnie wykonują rzeczy, których nie może zrobić sam JavaScript.
XPCOM components are typically implemented natively, which means that they generally do things that JavaScript cannot do itself.
Mamy trzy kroki dla wywołania komponentu XPCOM Pobranie komponentu.
There are three steps to calling an XPCOM component. Get a component
Na tej stronie znajduje się kilka fragmentów kodu, użytecznych przy tworzeniu z komponentami XPCOM w JavaScript.
Here are a few useful snippets of code for dealing with XPCOM components in JavaScript.
Za pomocą modułów można także utworzyć globalne obiekty typu singleton, co dotychczas wymagało korzystania z obiektów JavaScript XPCOM.
Modules can also be used to create global JavaScript singletons that previously required using JavaScript XPCOM objects.