// Copyright (c) 2014 The Chromium Embedded Framework 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.cef.handler; import org.cef.CefSettings; import org.cef.browser.CefBrowser; import org.cef.browser.CefFrame; /** * Implement this interface to handle events related to browser display state. * The methods of this class will be called on the UI thread. */ public interface CefDisplayHandler { /** * Browser address changed. * @param browser The browser generating the event. * @param frame The frame generating the event. * @param url The new address. */ public void onAddressChange(CefBrowser browser, CefFrame frame, String url); /** * Browser title changed. * @param browser The browser generating the event. * @param title The new title. */ public void onTitleChange(CefBrowser browser, String title); /** * Browser fullscreen mode changed. * @param browser The browser generating the event. * @param fullscreen True if fullscreen mode is on. */ public void onFullscreenModeChange(CefBrowser browser, boolean fullscreen); /** * About to display a tooltip. * @param browser The browser generating the event. * @param text Contains the text that will be displayed in the tooltip. * @return true to handle the tooltip display yourself. */ public boolean onTooltip(CefBrowser browser, String text); /** * Received a status message. * @param browser The browser generating the event. * @param value Contains the text that will be displayed in the status message. */ public void onStatusMessage(CefBrowser browser, String value); /** * Display a console message. * @param browser The browser generating the event. * @param level * @param message * @param source * @param line * @return true to stop the message from being output to the console. */ public boolean onConsoleMessage(CefBrowser browser, CefSettings.LogSeverity level, String message, String source, int line); /** * Handle cursor changes. * @param browser The browser generating the event. * @param cursorType The new cursor type. * @return true if the cursor change was handled. */ public boolean onCursorChange(CefBrowser browser, int cursorType); }