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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/compositor/layouts/MockLayoutHost.java

Issue 1584993002: Delete code involving overdraw bottom height. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete more mCachedVisibleViewport lines Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.compositor.layouts; 5 package org.chromium.chrome.browser.compositor.layouts;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.graphics.Rect; 8 import android.graphics.Rect;
9 9
10 import org.chromium.chrome.browser.compositor.TitleCache; 10 import org.chromium.chrome.browser.compositor.TitleCache;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 @Override 57 @Override
58 public void onSwapBuffersCompleted(int pendingSwapBuffersCount) { } 58 public void onSwapBuffersCompleted(int pendingSwapBuffersCount) { }
59 59
60 @Override 60 @Override
61 public void onSurfaceCreated() { } 61 public void onSurfaceCreated() { }
62 62
63 @Override 63 @Override
64 public void onPhysicalBackingSizeChanged(int width, int height) { } 64 public void onPhysicalBackingSizeChanged(int width, int height) { }
65 65
66 @Override 66 @Override
67 public void onOverdrawBottomHeightChanged(int overdrawHeight) {}
68
69 @Override
70 public int getCurrentOverdrawBottomHeight() {
71 return 0;
72 }
73
74 @Override
75 public Context getContext() { 67 public Context getContext() {
76 return mContext; 68 return mContext;
77 } 69 }
78 70
79 @Override 71 @Override
80 public int getWidth() { 72 public int getWidth() {
81 final float density = mContext.getResources().getDisplayMetrics().densit y; 73 final float density = mContext.getResources().getDisplayMetrics().densit y;
82 final float size = mPortrait ? LAYOUT_HOST_PORTRAIT_WIDTH : LAYOUT_HOST_ PORTRAIT_HEIGHT; 74 final float size = mPortrait ? LAYOUT_HOST_PORTRAIT_WIDTH : LAYOUT_HOST_ PORTRAIT_HEIGHT;
83 return (int) (density * size); 75 return (int) (density * size);
84 } 76 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 149
158 @Override 150 @Override
159 public float getTopControlsUrlBarAlpha() { 151 public float getTopControlsUrlBarAlpha() {
160 return 1f; 152 return 1f;
161 } 153 }
162 154
163 @Override 155 @Override
164 public void hideKeyboard(Runnable postHideTask) { 156 public void hideKeyboard(Runnable postHideTask) {
165 } 157 }
166 } 158 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698