Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
| index edbaa1c0980a64a49dd6cdcdce10687735bf9045..700966859bbbcf7a78627e46fccb4497d4d534f9 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
| @@ -23,9 +23,9 @@ import android.view.ContextThemeWrapper; |
| import android.view.View; |
| import android.view.View.OnClickListener; |
| import android.view.ViewGroup; |
| -import android.view.ViewGroup.LayoutParams; |
| import android.view.accessibility.AccessibilityEvent; |
| import android.widget.FrameLayout; |
| +import android.widget.FrameLayout.LayoutParams; |
| import org.chromium.base.ApiCompatibilityUtils; |
| import org.chromium.base.ApplicationStatus; |
| @@ -2876,6 +2876,19 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener, |
| mFullscreenManager.showControlsTransient(); |
| updateFullscreenEnabledState(); |
| } |
| + |
| + // For blimp, set a top margin equal to the top controls height. |
| + if (getBlimpContents() != null && mFullscreenManager != null) { |
|
Khushal
2016/09/08 00:59:59
Can you also do this when we create the BlimpConte
shaktisahu
2016/09/08 02:19:00
The BlimpContents is created inside the Tab.initia
|
| + ViewGroup blimpView = getBlimpContents().getView(); |
| + FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) blimpView.getLayoutParams(); |
| + if (lp == null) { |
| + lp = new FrameLayout.LayoutParams( |
| + LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); |
| + } |
| + |
| + lp.topMargin = mFullscreenManager.getTopControlsHeight(); |
| + blimpView.setLayoutParams(lp); |
| + } |
| } |
| /** |