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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
gone 2017/03/24 20:34:31 2017.
ramyasharma 2017/03/27 03:36:59 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_UTILS_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_UTILS_H_
7
8 #include "base/android/jni_android.h"
9 #include "base/android/scoped_java_ref.h"
10
11 namespace translate {
12 class TranslateInfoBarDelegate;
13 }
14
15 class TranslateUtils {
16 public:
17 static base::android::ScopedJavaLocalRef<jobjectArray> GetJavaLanguages(
18 JNIEnv* env,
19 translate::TranslateInfoBarDelegate* delegate);
20 static base::android::ScopedJavaLocalRef<jobjectArray> GetJavaLanguageCodes(
21 JNIEnv* env,
22 translate::TranslateInfoBarDelegate* delegate);
23 static base::android::ScopedJavaLocalRef<jstring> GetLanguageCode(
24 JNIEnv* env,
25 std::string language_code);
26 };
27
28 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698