2013年8月2日星期五

android webkit add global js function

 

Because adaptation needs , the need to increase global function in webkit support. So it is necessary to manually add the implementation . Such as adding getUrl () implementation.

 

(1) DOMWindow.idl add

 

DOMString getUrl ();

(2), DOMWindow.h add
String getUrl ();

(3), DOMWindow.cpp add getUrl implementation.

String DOMWindow :: getUrl ()
{
/ * C + + implementation * /

 

}

 

没有评论:

发表评论