摘要:
video 1.create videoElement HTMLTreeBuilder::processStartTagForInBody HTMLConstructionSite::insertHTMLElement(此时已经解析出了end) cHTMLConstructionSite::createHTMLElement HTMLElementFactory::createHTMLElement HTMLElementFactory::videoConstructor HTMLVideoElement::create 2.get element attribute in "vid 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
该文被密码保护。 阅读全文
该文被密码保护。 阅读全文
摘要:
FontSet1.FontCache.cpp[cpp] view plaincopyFontPlatformData*FontCache::getCachedFontPlatformData(constFontDescription&fontDescription,constAtomicString&familyName,boolcheckingAlternateName){...result=createFontPlatformData(fontDescription,familyName);....}2.FontCacheAndroid.cpp[cpp] view plai 阅读全文
摘要:
How can adapter display the content of the listview.1.AbsListView.java[cpp] view plaincopyprotectedvoidonMeasure(intwidthMeasureSpec,intheightMeasureSpec){.......finalViewchild=obtainView(0,mIsScrap);.....}//one item, called one time.2.AbsListView.java[java] view plaincopyViewobtainView(intposition, 阅读全文
摘要:
1.const as "const variable" 2.function parameters together with "&" int add(int &a);//can be modified int add(const int &a);//can't be modified //but more efficient than int add(int a); no value copy 3.override function int add(); int add() const; //different func 阅读全文
摘要:
1. receive data to parsea .for chromium stackWebUrlLoaderClient::didReceiveDataResourceLoader::didReceiveDataMainResourceLoader::didReceiveDataResourceLoader::didReceiveDataMainResourceLoader::addDataDocumentLoader::receivedDataDocumentLoader::commitLoadFrameLoaderClient::committedLoad (FrameLoaderC 阅读全文
摘要:
1.sensor type TYPE_ACCELEROMETER=1 TYPE_MAGNETIC_FIELD=2 (what's value mean at x and z axis) TYPE_ORIENTATION=3 TYPE_GYROSCOPE=4 TYPE_LIGHT=5(in ) TYPE_PRESSURE=6 TYPE_TEMPERATURE=7 TYPE_PROXIMITY=8 TYPE_GRAVITY=9TYPE_LINEAR_ACCELERATION=10TYPE_ROTATION_VECTOR=11some function of the sensor may b 阅读全文
该文被密码保护。 阅读全文