1 // Copyright 2019 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.components.thinwebview; 6 7 import android.graphics.Color; 8 9 /** Various constraints associated with the thin webview based on the usage. */ 10 public class ThinWebViewConstraints implements Cloneable { 11 /** 12 * Whether this view will support opacity. 13 */ 14 public boolean supportsOpacity; 15 16 /** 17 * Background color of this view. 18 */ 19 public int backgroundColor = Color.WHITE; 20 21 @Override clone()22 public ThinWebViewConstraints clone() { 23 ThinWebViewConstraints clone = new ThinWebViewConstraints(); 24 clone.supportsOpacity = supportsOpacity; 25 clone.backgroundColor = backgroundColor; 26 return clone; 27 } 28 } 29