[go: nahoru, domu]

blob: 7065ada92919d857be26804377ed1b48c8286d6b [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.browser_ui.util;
import org.chromium.base.supplier.ObservableSupplierImpl;
import org.chromium.cc.input.BrowserControlsState;
/**
* A delegate to determine visibility of the browser controls.
*/
public class BrowserControlsVisibilityDelegate extends ObservableSupplierImpl<Integer> {
/**
* Constructs a delegate that controls the visibility of the browser controls.
* @param initialValue The initial browser state visibility.
*/
public BrowserControlsVisibilityDelegate(@BrowserControlsState int initialValue) {
set(initialValue);
}
@Override
public void set(@BrowserControlsState Integer value) {
assert value != null;
super.set(value);
}
}