The Context in question in WebView is, in fact, the Activity it is
associated with (i.e. you can do a runtime check and do a safe cast
from Context), though I'm not quite sure why you would want to do
that.

BrowserFrame is the JNI integration point from the actual webkit side
of things (see external/webkit) and CallbackProxy is used for async
style calls to a WebChromeClient / WebViewClient (if set), which
Tab.java implements. So to be clear, when a title is set on a webkit
frame the path is external/webkit/WebKit/android/jni/
WebCoreFrameBridge.cpp :: setTitle->BrowserFrame.java :: setTitle->
WebChromeClient.java :: onReceivedTitle -> Tab.java ::
mWebChromeClient :: onReceivedTitle

On Feb 21, 1:41 pm, JoeyZee <joeyze...@gmail.com> wrote:
> I am modifying the Android Browser - I'd like to access & set
> properties on the Browser Activity from within the WebKit code in
> frameworks/base. Specifically, WebView.java - see frameworks/base/core/
> java/android/webkit.
>
> There is a context in WebView.java, but it is an Application Context
> and not an Activity Context, so I cannot set UI properties on it. Any
> ideas on the best approach to attain a handle to the container
> activity (Browser Activity in this case) from WebView.java or any
> other classes within frameworks/base ?
>
> Note:
> I did see that BrowserFrame.java calls into CallbackProxy.java to set
> certain Activity properties (e.g. - setTitle, setProgress, etc) where
> those methods are implemented in the Browser's Tab.java page (e.g. -
> onReceivedTitle, onProgressChanged). But, I was not able to figure out
> how/where callbackProxy made the call into the Browser's Tab.java
> page. That could potentially give me a clue into how to approach this

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to