问题
Since Android has such pathetic documentation, I'm looking for the source code for the browser so I can see what objects it provides to JavaScript. Where should I look? Is there an online source code browser?
回答1:
It's in the Git repository:
https://android.googlesource.com/platform/packages/apps/Browser
https://android.googlesource.com/platform/external/webkit/+/android-3.2.4_r1/WebCore/xml/XMLHttpRequest.h
Edit:
The applications are now mirrored on github. You can find the browser here: https://github.com/android/platform_packages_apps_browser.git
回答2:
Or try GrepCode: You can even throw a stack trace at it and it shows all relevant java files in all platform versions.
回答3:
you can also use the link below in case you need more options
https://android.googlesource.com/platform/packages/apps/Browser
来源:https://stackoverflow.com/questions/6962368/where-is-the-source-code-for-androids-web-browser