diff options
author | dtrainor@chromium.org <dtrainor@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-25 21:17:00 +0000 |
---|---|---|
committer | dtrainor@chromium.org <dtrainor@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-25 21:17:00 +0000 |
commit | c8598d4fbb9f0e7535a1e94d3dbeb9da9382b949 (patch) | |
tree | e5e0d1bae17f4c391b12c4730a7d2a1b811c02fc /chrome/app/android | |
parent | 38affd13309de2d8f8f92db9bde38df3387164b0 (diff) | |
download | chromium_src-c8598d4fbb9f0e7535a1e94d3dbeb9da9382b949.zip chromium_src-c8598d4fbb9f0e7535a1e94d3dbeb9da9382b949.tar.gz chromium_src-c8598d4fbb9f0e7535a1e94d3dbeb9da9382b949.tar.bz2 |
Add rendering support to the TestShell.
- Tie the Compositor into the TestShell.
- Tie a really basic Tab into the TestShell.
BUG=http://crbug.com/136786
Review URL: https://chromiumcodereview.appspot.com/10968003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/android')
-rw-r--r-- | chrome/app/android/chrome_main_delegate_android.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/chrome/app/android/chrome_main_delegate_android.cc b/chrome/app/android/chrome_main_delegate_android.cc index f0b6d4f..bf28f4a 100644 --- a/chrome/app/android/chrome_main_delegate_android.cc +++ b/chrome/app/android/chrome_main_delegate_android.cc @@ -5,13 +5,19 @@ #include "chrome/app/android/chrome_main_delegate_android.h" #include "base/android/jni_android.h" +#include "base/android/jni_registrar.h" #include "base/command_line.h" #include "base/logging.h" #include "chrome/browser/android/chrome_jni_registrar.h" #include "chrome/browser/android/chrome_startup_flags.h" +#include "chrome/browser/android/tab_base_android_impl.h" #include "chrome/common/chrome_switches.h" #include "content/public/browser/browser_main_runner.h" +static base::android::RegistrationMethod kRegistrationMethods[] = { + { "TabBaseAndroidImpl", TabBaseAndroidImpl::RegisterTabBaseAndroidImpl }, +}; + // ChromeMainDelegateAndroid is created when the library is loaded. It is always // done in the process's main Java thread. But for non browser process, e.g. // renderer process, it is not the native Chrome's main thread. @@ -51,5 +57,10 @@ bool ChromeMainDelegateAndroid::BasicStartupComplete(int* exit_code) { } bool ChromeMainDelegateAndroid::RegisterApplicationNativeMethods(JNIEnv* env) { - return chrome::android::RegisterJni(env); + if (!chrome::android::RegisterJni(env)) + return false; + + return base::android::RegisterNativeMethods(env, + kRegistrationMethods, + arraysize(kRegistrationMethods)); } |