Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5310)

Unified Diff: chrome/browser/translate/android/translate_utils.h

Issue 2762393003: Creates translate_compact_infobar class, which holds the logic for the new translate UI (Closed)
Patch Set: a Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/translate/android/translate_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/android/translate_utils.h
diff --git a/chrome/browser/translate/android/translate_utils.h b/chrome/browser/translate/android/translate_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..a1c35e170406e991c1d436cb3dc34c323e3e18eb
--- /dev/null
+++ b/chrome/browser/translate/android/translate_utils.h
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// 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);
+};
+
+#endif
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/translate/android/translate_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698