Commit 1f080e8f authored by bttk's avatar bttk Committed by Commit Bot

Remove ToolbarManager#getToolbarView

Bug: 865801
Change-Id: I8025699a43df94a67991799983f03f0f242d7d55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2212996Reviewed-by: default avatarPatrick Noland <pnoland@chromium.org>
Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Auto-Submit: who/bttk <bttk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#771899}
parent ed3219e6
...@@ -1276,14 +1276,6 @@ public class ToolbarManager implements UrlFocusChangeListener, ThemeColorObserve ...@@ -1276,14 +1276,6 @@ public class ToolbarManager implements UrlFocusChangeListener, ThemeColorObserve
if (toolbarShadow != null) toolbarShadow.setVisibility(visibility); if (toolbarShadow != null) toolbarShadow.setVisibility(visibility);
} }
/**
* Gets the Toolbar view.
*/
@Nullable
public View getToolbarView() {
return mControlContainer.findViewById(R.id.toolbar);
}
/** /**
* We use getTopControlOffset to position the top controls. However, the toolbar's height may * We use getTopControlOffset to position the top controls. However, the toolbar's height may
* be less than the total top controls height. If that's the case, this method will return the * be less than the total top controls height. If that's the case, this method will return the
......
...@@ -1592,7 +1592,8 @@ public class TabsTest { ...@@ -1592,7 +1592,8 @@ public class TabsTest {
private void performToolbarSideSwipe(@ScrollDirection int direction) { private void performToolbarSideSwipe(@ScrollDirection int direction) {
Assert.assertTrue("Unexpected direction for side swipe " + direction, Assert.assertTrue("Unexpected direction for side swipe " + direction,
direction == ScrollDirection.LEFT || direction == ScrollDirection.RIGHT); direction == ScrollDirection.LEFT || direction == ScrollDirection.RIGHT);
final View toolbar = mActivityTestRule.getActivity().getToolbarManager().getToolbarView(); final View toolbar = mActivityTestRule.getActivity().findViewById(R.id.toolbar);
int[] toolbarPos = new int[2]; int[] toolbarPos = new int[2];
toolbar.getLocationOnScreen(toolbarPos); toolbar.getLocationOnScreen(toolbarPos);
final int width = toolbar.getWidth(); final int width = toolbar.getWidth();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment