07 2015 档案

摘要:TODO:gecko/toolkit/mozapps/update/UpdateTelemetry.jsm 阅读全文
posted @ 2015-07-28 14:55 coding4范儿 阅读(129) 评论(0) 推荐(0)
摘要:AUM是App Usage Metrics的缩写,用于统计FFOS中一些应用的使用情况,并且在用户允许的情况下(Settings中设置),将统计信息上报Telemetry Server。 1. AUM会监控FFOS中的几种应用。 Apps pre-installed with the phon... 阅读全文
posted @ 2015-07-27 15:26 coding4范儿 阅读(457) 评论(0) 推荐(0)
摘要:1. JavaScript Component (1) add a CustomComponent.manifest# The {classID} here must match the classID in CustomComponent.jscomponent {e6b866e3-41b2-4... 阅读全文
posted @ 2015-07-21 10:58 coding4范儿 阅读(283) 评论(0) 推荐(0)
摘要:1. Using a service in C++nsCOMPtr servManager;nsresult rv = NS_GetServiceManager(getter_AddRefs(servManager));if (NS_FAILED(rv)) { // get ServiceManag... 阅读全文
posted @ 2015-07-20 16:11 coding4范儿 阅读(180) 评论(0) 推荐(0)
摘要:NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS is used for classes that have JS references or a mix of JS and C++ references to report. This participant... 阅读全文
posted @ 2015-07-17 18:21 coding4范儿 阅读(109) 评论(0) 推荐(0)
摘要:Mozilla FireFox Gecko内核源代码解析(1.nsParser) 阅读全文
posted @ 2015-07-17 18:17 coding4范儿 阅读(123) 评论(0) 推荐(0)
摘要:MOZ_FINAL:http://whereswalden.com/2011/11/26/introducing-moz_final-prevent-inheriting-from-a-class-or-prevent-overriding-a-virtual-function/MOZ_OVERRI... 阅读全文
posted @ 2015-07-17 18:13 coding4范儿 阅读(167) 评论(0) 推荐(0)
摘要:当我们实现了一个module,并且通过navigator.mozCustomModule访问根据module的实现方式的不同,有几种不同的做法。1. XPCOM component(Javascript实现): 在chrome.manifest中配置(加粗部分):component {Compon... 阅读全文
posted @ 2015-07-17 16:05 coding4范儿 阅读(303) 评论(0) 推荐(0)