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

Unified Diff: chrome/browser/ui/android/infobars/translate_compact_infobar.h

Issue 2899893004: Code cleanup for Translate Compact Infobar. (Closed)
Patch Set: fix Created 3 years, 7 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_compact_infobar.h
diff --git a/chrome/browser/ui/android/infobars/translate_compact_infobar.h b/chrome/browser/ui/android/infobars/translate_compact_infobar.h
index 43a4605b270208a321d2b4539cb352f4cea6c3e4..4c52b60e829cddec0e070714a8eaccf1fc52b75a 100644
--- a/chrome/browser/ui/android/infobars/translate_compact_infobar.h
+++ b/chrome/browser/ui/android/infobars/translate_compact_infobar.h
@@ -44,7 +44,8 @@ class TranslateCompactInfoBar
// Check whether we should automatically trigger "Never Translate Language".
jboolean ShouldAutoNeverTranslate(
JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj);
+ const base::android::JavaParamRef<jobject>& obj,
+ jboolean menu_expanded);
// TranslateInfoBarDelegate::Observer implementation.
void OnTranslateStepChanged(translate::TranslateStep step,
@@ -72,6 +73,7 @@ class TranslateCompactInfoBar
FLAG_ALWAYS_TRANSLATE = 1 << 2,
FLAG_NEVER_LANGUAGE = 1 << 3,
FLAG_NEVER_SITE = 1 << 4,
+ FLAG_EXPAND_MENU = 1 << 5,
};
// If number of consecutive translations is equal to this number, infobar will

Powered by Google App Engine
This is Rietveld 408576698