Code example for ZoomButtonsController

Methods: getZoomControls

    // This method is used in tests. It doesn't modify the state of zoom controls. 
    View getZoomControlsViewForTest() {
        return mZoomButtonsController != null ? mZoomButtonsController.getZoomControls() : null;
    void updateZoomControls() { 
        if (mZoomButtonsController == null) return;
        boolean canZoomIn = mContentViewCore.canZoomIn();
        boolean canZoomOut = mContentViewCore.canZoomOut();
        if (!canZoomIn && !canZoomOut) {
            // Hide the zoom in and out buttons if the page cannot zoom 
        } else { 
            // Set each one individually, as a page may be able to zoom in or out 
    private class ZoomListener implements ZoomButtonsController.OnZoomListener {
Connect your IDE to all the code out there  Get Codota for Java