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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java

Issue 2762393003: Creates translate_compact_infobar class, which holds the logic for the new translate UI (Closed)
Patch Set: a Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698