Chromium Code Reviews| Index: chrome/browser/ui/android/infobars/translate_utils.h |
| diff --git a/chrome/browser/ui/android/infobars/translate_utils.h b/chrome/browser/ui/android/infobars/translate_utils.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..18c2c9b9c8ebdc1a50a85d2743c8198753bbd0d1 |
| --- /dev/null |
| +++ b/chrome/browser/ui/android/infobars/translate_utils.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
|
gone
2017/03/24 20:34:31
2017.
ramyasharma
2017/03/27 03:36:59
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_UTILS_H_ |
| +#define CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_UTILS_H_ |
| + |
| +#include "base/android/jni_android.h" |
| +#include "base/android/scoped_java_ref.h" |
| + |
| +namespace translate { |
| +class TranslateInfoBarDelegate; |
| +} |
| + |
| +class TranslateUtils { |
| + public: |
| + static base::android::ScopedJavaLocalRef<jobjectArray> GetJavaLanguages( |
| + JNIEnv* env, |
| + translate::TranslateInfoBarDelegate* delegate); |
| + static base::android::ScopedJavaLocalRef<jobjectArray> GetJavaLanguageCodes( |
| + JNIEnv* env, |
| + translate::TranslateInfoBarDelegate* delegate); |
| + static base::android::ScopedJavaLocalRef<jstring> GetLanguageCode( |
| + JNIEnv* env, |
| + std::string language_code); |
| +}; |
| + |
| +#endif |