1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.chrome.browser.browser_controls;
6 
7 /**
8  * Allows for sizing the browser controls, as well as manipulating visibility and retrieving state.
9  */
10 public interface BrowserControlsSizer extends BrowserControlsVisibilityManager {
11     /**
12      * Sets the height of the bottom controls.
13      */
setBottomControlsHeight(int bottomControlsHeight, int bottomControlsMinHeight)14     void setBottomControlsHeight(int bottomControlsHeight, int bottomControlsMinHeight);
15 
16     /**
17      * Sets the height of the top controls.
18      */
setTopControlsHeight(int topControlsHeight, int topControlsMinHeight)19     void setTopControlsHeight(int topControlsHeight, int topControlsMinHeight);
20 
21     /**
22      * Sets whether the changes to the browser controls heights should be animated.
23      * @param animateBrowserControlsHeightChanges True if the height changes should be animated.
24      */
setAnimateBrowserControlsHeightChanges(boolean animateBrowserControlsHeightChanges)25     void setAnimateBrowserControlsHeightChanges(boolean animateBrowserControlsHeightChanges);
26 }