| 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 org.chromium.base.annotations.CalledByNative; | 7 import org.chromium.base.annotations.CalledByNative; |
| 8 import org.chromium.chrome.R; | 8 import org.chromium.chrome.R; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 @CalledByNative | 38 @CalledByNative |
| 39 private void setNativePtr(long nativePtr) { | 39 private void setNativePtr(long nativePtr) { |
| 40 mNativeTranslateInfoBarPtr = nativePtr; | 40 mNativeTranslateInfoBarPtr = nativePtr; |
| 41 } | 41 } |
| 42 | 42 |
| 43 @Override | 43 @Override |
| 44 protected void onNativeDestroyed() { | 44 protected void onNativeDestroyed() { |
| 45 mNativeTranslateInfoBarPtr = 0; | 45 mNativeTranslateInfoBarPtr = 0; |
| 46 super.onNativeDestroyed(); | 46 super.onNativeDestroyed(); |
| 47 } | 47 } |
| 48 |
| 49 private native void nativeApplyTranslateOptions(long nativeTranslateCompactI
nfoBar); |
| 48 } | 50 } |
| OLD | NEW |