| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |