7

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?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
joeforker
  • 40,459
  • 37
  • 151
  • 246
  • http://stackoverflow.com/questions/449763/where-can-i-browse-android-source-code-on-line – MByD Aug 05 '11 at 20:42

3 Answers3

11

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

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Cristian
  • 198,401
  • 62
  • 356
  • 264
2

Or try GrepCode: You can even throw a stack trace at it and it shows all relevant java files in all platform versions.

Bachi
  • 6,408
  • 4
  • 32
  • 30
2

you can also use the link below in case you need more options

https://android.googlesource.com/platform/packages/apps/Browser

korosmatick
  • 579
  • 4
  • 8