Home | History | Annotate | Download | only in support_lib_boundary
      1 // Copyright 2018 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.support_lib_boundary;
      6 
      7 // Technically this interface is not needed until we add a method to WebSettings with an
      8 // android.webkit parameter or android.webkit return value. But for forwards compatibility all
      9 // app-facing classes should have a boundary-interface that the WebView glue layer can build
     10 // against.
     11 /**
     12  * Boundary interface for WebSettingsCompat.
     13  */
     14 public interface WebSettingsBoundaryInterface {
     15     void setOffscreenPreRaster(boolean enabled);
     16     boolean getOffscreenPreRaster();
     17 
     18     void setSafeBrowsingEnabled(boolean enabled);
     19     boolean getSafeBrowsingEnabled();
     20 
     21     void setDisabledActionModeMenuItems(int menuItems);
     22     int getDisabledActionModeMenuItems();
     23 }
     24