| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.infobar; | 5 package org.chromium.chrome.browser.infobar; |
| 6 | 6 |
| 7 import android.support.design.widget.TabLayout; | 7 import android.support.design.widget.TabLayout; |
| 8 import android.view.LayoutInflater; | 8 import android.view.LayoutInflater; |
| 9 import android.widget.LinearLayout; | 9 import android.widget.LinearLayout; |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 onButtonClicked(ActionType.TRANSLATE); | 86 onButtonClicked(ActionType.TRANSLATE); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 | 89 |
| 90 @Override | 90 @Override |
| 91 public void onTabUnselected(TabLayout.Tab tab) {} | 91 public void onTabUnselected(TabLayout.Tab tab) {} |
| 92 | 92 |
| 93 @Override | 93 @Override |
| 94 public void onTabReselected(TabLayout.Tab tab) {} | 94 public void onTabReselected(TabLayout.Tab tab) {} |
| 95 | 95 |
| 96 private native void nativeApplyTranslateOptions(long nativeTranslateCompactI
nfoBar); | 96 private native void nativeApplyStringTranslateOption( |
| 97 long nativeTranslateCompactInfoBar, int option, String value); |
| 98 private native void nativeApplyBoolTranslateOption( |
| 99 long nativeTranslateCompactInfoBar, int option, boolean value); |
| 97 } | 100 } |
| OLD | NEW |