摘要: c++.static&const1.staticstatic change the field and the life circlea. variable with static in the file, this variable could only used in this file.b. variable with static in the function, the variable will exist till then program end rather then the end of the function.c. variable with static in 阅读全文
posted @ 2012-05-06 09:53 cascais 阅读(172) 评论(0) 推荐(0) 编辑
摘要: basic1.appoachesWays or purpose for modoling.Application domains, programming languages, platform configuration.StartUML provide 5 approaches4+1 View Model, Default Approach method, Ratioan Approach, UML Component, EmptyProjectWe can configurate it with "File->New Project By Approach"2. 阅读全文
posted @ 2012-05-06 09:51 cascais 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 1. Class object"Class object" represent the type information of java.Class object is used to create all "regular" objects.All class has a "Class object", JVM use class loader to load "Class object" to create class.All "Class objects" belongs to " 阅读全文
posted @ 2012-04-14 22:52 cascais 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1.How will the HTML call video player in the webpage?HTMLMediaElement::updatePlayState()->HTMLMediaElement::m_player->play()->MediaPlayer.cpp(in webkit)->play()//(this file use factory create player)->MediaPlayerPrivateInterface->play()->MediaPlayerPrivateAndroid.play()->andr 阅读全文
posted @ 2012-04-08 00:11 cascais 阅读(8237) 评论(0) 推荐(0) 编辑
摘要: video 1.create videoElement HTMLTreeBuilder::processStartTagForInBody HTMLConstructionSite::insertHTMLElement(此时已经解析出了end) cHTMLConstructionSite::createHTMLElement HTMLElementFactory::createHTMLElement HTMLElementFactory::videoConstructor HTMLVideoElement::create 2.get element attribute in "vid 阅读全文
posted @ 2012-04-06 22:29 cascais 阅读(334) 评论(0) 推荐(0) 编辑
摘要: There are many things in Android.mk especially jni's makefile.here are some key information in the make file.a. target namewhat's the code's target name is defined in "LOCAL_MODULE"for example[plain] view plaincopyLOCAL_MODULE:=libwebcore//webkitLOCAL_MODULE:=libskia//skiaLOCAL 阅读全文
posted @ 2012-04-06 22:07 cascais 阅读(471) 评论(0) 推荐(0) 编辑
摘要: Plugin files 1. Npapi.hdeclaration of NPP_XXX and NPN_XXX, also NPP and NPStreamin external/webkit/webcore/bridge/Npapi.h2.Npfunctions.hdeclaration function pointer of NPP_XXX and NPN_XXX, like NPP_XXXProcPtr and NPN_XXXProcPtr,also define structor holding these pointersin external/webkit/webcore/pl 阅读全文
posted @ 2012-04-06 22:07 cascais 阅读(188) 评论(0) 推荐(0) 编辑
摘要: JNI entrance1.WebCoreJniOnLoad.cpp,[cpp] view plaincopyEXPORTjintJNI_OnLoad(JavaVM*vm,void*reserved){JSC::Bindings::setJavaVM(vm);.....constRegistrationMethod*method=gWebCoreRegMethods;constRegistrationMethod*end=method+sizeof(gWebCoreRegMethods)/sizeof(RegistrationMethod);while(method!=end){if(meth 阅读全文
posted @ 2012-04-06 22:06 cascais 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 1. use given .so a. make lib dir under the app's dir b.copy your libXX.so into the dir. c.modify the Android.mkadd "COCAL_JNI_SHARED_LIBRARIES :=libXX"[cpp] view plaincopyLOCAL_PATH:=$(callmy-dir)include$(CLEAR_VARS)LOCAL_MODULE_TAGS:=optionalLOCAL_SRC_FILES:=$(callall-java-files-under 阅读全文
posted @ 2012-04-06 21:56 cascais 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1.SkImage decoded procedure SkImageDecoder.DecodeMemory/SkImageDecoder.DecodeFile SkImageDecoder.DecodeStream SkImageDecoder.decode SkImageDecoder.onDecode SkJPEGImageDecoder.onDecode(SkImageDecoder_libjpeg.cpp) SkImageDecoder.return_flase(error) 2.factory mode a.client use abs product in it's c 阅读全文
posted @ 2012-04-06 21:54 cascais 阅读(490) 评论(0) 推荐(0) 编辑