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

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

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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.content.Context; 7 import android.content.Context;
8 import android.view.Gravity; 8 import android.view.Gravity;
9 import android.view.View; 9 import android.view.View;
10 import android.widget.FrameLayout; 10 import android.widget.FrameLayout;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 private final InfoBarContainerLayout mLayout; 98 private final InfoBarContainerLayout mLayout;
99 99
100 /** Native InfoBarContainer pointer which will be set by nativeInit(). */ 100 /** Native InfoBarContainer pointer which will be set by nativeInit(). */
101 private final long mNativeInfoBarContainer; 101 private final long mNativeInfoBarContainer;
102 102
103 /** The list of all InfoBars in this container, regardless of whether they'v e been shown yet. */ 103 /** The list of all InfoBars in this container, regardless of whether they'v e been shown yet. */
104 private final ArrayList<InfoBar> mInfoBars = new ArrayList<InfoBar>(); 104 private final ArrayList<InfoBar> mInfoBars = new ArrayList<InfoBar>();
105 105
106 /** True when this container has been emptied and its native counterpart has been destroyed. */ 106 /** True when this container has been emptied and its native counterpart has been destroyed. */
107 private boolean mDestroyed = false; 107 private boolean mDestroyed;
108 108
109 /** The id of the tab associated with us. Set to Tab.INVALID_TAB_ID if no ta b is associated. */ 109 /** The id of the tab associated with us. Set to Tab.INVALID_TAB_ID if no ta b is associated. */
110 private int mTabId; 110 private int mTabId;
111 111
112 /** Parent view that contains the InfoBarContainerLayout. */ 112 /** Parent view that contains the InfoBarContainerLayout. */
113 private TabContentViewParent mParentView; 113 private TabContentViewParent mParentView;
114 114
115 /** Whether or not another View is occupying the same space as this one. */ 115 /** Whether or not another View is occupying the same space as this one. */
116 private boolean mIsObscured; 116 private boolean mIsObscured;
117 117
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 } 362 }
363 363
364 super.onLayout(changed, l, t, r, b); 364 super.onLayout(changed, l, t, r, b);
365 } 365 }
366 366
367 private native long nativeInit(); 367 private native long nativeInit();
368 private native void nativeSetWebContents( 368 private native void nativeSetWebContents(
369 long nativeInfoBarContainerAndroid, WebContents webContents); 369 long nativeInfoBarContainerAndroid, WebContents webContents);
370 private native void nativeDestroy(long nativeInfoBarContainerAndroid); 370 private native void nativeDestroy(long nativeInfoBarContainerAndroid);
371 } 371 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698