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

Unified Diff: chrome/browser/ui/android/infobars/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
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

Powered by Google App Engine
This is Rietveld 408576698