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

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

Issue 528963003: [Android] Add missing @VisibleForTesting annotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN build Created 6 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.animation.ObjectAnimator; 7 import android.animation.ObjectAnimator;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.graphics.Canvas; 9 import android.graphics.Canvas;
10 import android.graphics.Paint; 10 import android.graphics.Paint;
11 import android.view.Gravity; 11 import android.view.Gravity;
12 import android.view.MotionEvent; 12 import android.view.MotionEvent;
13 import android.view.View; 13 import android.view.View;
14 import android.view.ViewGroup; 14 import android.view.ViewGroup;
15 import android.widget.FrameLayout; 15 import android.widget.FrameLayout;
16 import android.widget.LinearLayout; 16 import android.widget.LinearLayout;
17 import android.widget.ScrollView; 17 import android.widget.ScrollView;
18 18
19 import com.google.common.annotations.VisibleForTesting;
20
21 import org.chromium.base.CalledByNative; 19 import org.chromium.base.CalledByNative;
20 import org.chromium.base.VisibleForTesting;
22 import org.chromium.chrome.R; 21 import org.chromium.chrome.R;
23 import org.chromium.content_public.browser.WebContents; 22 import org.chromium.content_public.browser.WebContents;
24 import org.chromium.ui.UiUtils; 23 import org.chromium.ui.UiUtils;
25 import org.chromium.ui.base.DeviceFormFactor; 24 import org.chromium.ui.base.DeviceFormFactor;
26 25
27 import java.util.ArrayDeque; 26 import java.util.ArrayDeque;
28 import java.util.ArrayList; 27 import java.util.ArrayList;
29 import java.util.Iterator; 28 import java.util.Iterator;
30 import java.util.LinkedList; 29 import java.util.LinkedList;
31 30
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 mNativeInfoBarContainer = nativeInit(webContents, mAutoLoginDelegate); 143 mNativeInfoBarContainer = nativeInit(webContents, mAutoLoginDelegate);
145 } 144 }
146 145
147 /** 146 /**
148 * @return The LinearLayout that holds the infobars (i.e. the ContentWrapper Views). 147 * @return The LinearLayout that holds the infobars (i.e. the ContentWrapper Views).
149 */ 148 */
150 LinearLayout getLinearLayout() { 149 LinearLayout getLinearLayout() {
151 return mLinearLayout; 150 return mLinearLayout;
152 } 151 }
153 152
153 @VisibleForTesting
154 public void setAnimationListener(InfoBarAnimationListener listener) { 154 public void setAnimationListener(InfoBarAnimationListener listener) {
155 mAnimationListener = listener; 155 mAnimationListener = listener;
156 } 156 }
157 157
158 @VisibleForTesting 158 @VisibleForTesting
159 public InfoBarAnimationListener getAnimationListener() { 159 public InfoBarAnimationListener getAnimationListener() {
160 return mAnimationListener; 160 return mAnimationListener;
161 } 161 }
162 162
163 @Override 163 @Override
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 return null; 524 return null;
525 } 525 }
526 526
527 public long getNative() { 527 public long getNative() {
528 return mNativeInfoBarContainer; 528 return mNativeInfoBarContainer;
529 } 529 }
530 530
531 private native long nativeInit(WebContents webContents, AutoLoginDelegate au toLoginDelegate); 531 private native long nativeInit(WebContents webContents, AutoLoginDelegate au toLoginDelegate);
532 private native void nativeDestroy(long nativeInfoBarContainerAndroid); 532 private native void nativeDestroy(long nativeInfoBarContainerAndroid);
533 } 533 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698