Create translate_compact_infobar class, which holds the logic for the new translate UI in the native code, and calls the new Translate infobar in Android UI.
This is a sub-bug of a bigger umbrella bug: https://bugs.chromium.org/p/chromium/issues/detail?id=703887. See parent bug for more details.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4 commit 5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4 Author: ramyasharma <ramyasharma@chromium.org> Date: Tue Mar 28 03:40:01 2017 Creates translate_compact_infobar class, which holds the logic for the new translate UI. This translate_compact_infobar is created in the native code, and calls the new Translate infobar in Android UI. BUG= 705310 TBR=groby@chromium.org Review-Url: https://codereview.chromium.org/2762393003 Cr-Commit-Position: refs/heads/master@{#460002} [modify] https://crrev.com/5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java [modify] https://crrev.com/5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4/chrome/browser/BUILD.gn [modify] https://crrev.com/5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4/chrome/browser/android/chrome_jni_registrar.cc [add] https://crrev.com/5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4/chrome/browser/translate/android/translate_utils.cc [add] https://crrev.com/5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4/chrome/browser/translate/android/translate_utils.h [modify] https://crrev.com/5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4/chrome/browser/ui/BUILD.gn [add] https://crrev.com/5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4/chrome/browser/ui/android/infobars/translate_compact_infobar.cc [add] https://crrev.com/5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4/chrome/browser/ui/android/infobars/translate_compact_infobar.h [modify] https://crrev.com/5f3bcbb0eae7cb2aaf21bd7cc025c86a82d595d4/chrome/browser/ui/android/infobars/translate_infobar.cc
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/da825a1f6e9d71bf54d5832ccacb3b718eaa6f81 commit da825a1f6e9d71bf54d5832ccacb3b718eaa6f81 Author: ramyasharma <ramyasharma@chromium.org> Date: Tue Apr 18 02:28:51 2017 Implements ApplyTranslateOptions in compact infobar Introduces a new enum to capture all possible data that java frontend will save on the native side. And uses this enum, as a parameter passed to ApplyStringTranslateOptions and ApplyBoolTranslateOptions, along with it's value. Value is boolean or string based on the method called. BUG= 705310 TBR=groby@chromium.org Review-Url: https://codereview.chromium.org/2799083004 Cr-Commit-Position: refs/heads/master@{#465102} [modify] https://crrev.com/da825a1f6e9d71bf54d5832ccacb3b718eaa6f81/chrome/android/BUILD.gn [modify] https://crrev.com/da825a1f6e9d71bf54d5832ccacb3b718eaa6f81/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java [modify] https://crrev.com/da825a1f6e9d71bf54d5832ccacb3b718eaa6f81/chrome/browser/translate/android/translate_utils.h [modify] https://crrev.com/da825a1f6e9d71bf54d5832ccacb3b718eaa6f81/chrome/browser/ui/android/infobars/translate_compact_infobar.cc [modify] https://crrev.com/da825a1f6e9d71bf54d5832ccacb3b718eaa6f81/chrome/browser/ui/android/infobars/translate_compact_infobar.h
Comment 1 by ramyasharma@chromium.org
, Mar 27 2017