void updateBackgroundColor() {
   // If fullscreenMode, background should not show original window.
   // If narrowMode, it is always full-width.
   // If isFloatingMode, background should be transparent.
   int resourceId =
       (fullscreenMode || (!narrowMode && !insetsCalculator.isFloatingMode(this)))
           ? R.color.input_frame_background
           : 0;
   getBottomBackground().setBackgroundResource(resourceId);
 }
 /** This function is called to compute insets. */
 public void setInsets(int contentViewWidth, int contentViewHeight, Insets outInsets) {
   insetsCalculator.setInsets(this, contentViewWidth, contentViewHeight, outInsets);
 }