[ios] Add addition configurations for Inforbar Translate Modal
- Add "Show Original" button in Infobar Translate Modal, separating the revert action from the "Translate" action button. This new button will be enabled if the TranslateStep is AFTER_TRANSLATE. A new InfobarTranslateModalDelegate method is added and implemented in the coordinator. - The "Never Translate Language" and "Never Translate Site" buttons will be enabled only if the TranslateStep is BEFORE_TRANSLATE to remove these options when a Translate has finished. - TranslateStep property is added to mediator so that it can check the current state to send the consumer the right button enable prefs. - |translateInfoBarDelegate| in InfobarTranslateCoordinator is renamed to translateInfobarDelegate to set the right precedent. Bug: 1014959 Change-Id: I75c59124431d89963830176bb9866a4bf80e98b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1919829 Commit-Queue: Chris Lu <thegreenfrog@chromium.org> Reviewed-by:Sergio Collazos <sczs@chromium.org> Cr-Commit-Position: refs/heads/master@{#721232}
Showing
Please register or sign in to comment