michael@0: /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko; michael@0: michael@0: public class GeckoViewContent implements GeckoView.ContentDelegate { michael@0: /** michael@0: * A Browser has started loading content from the network. michael@0: * @param view The GeckoView that initiated the callback. michael@0: * @param browser The Browser that is loading the content. michael@0: * @param url The resource being loaded. michael@0: */ michael@0: public void onPageStart(GeckoView view, GeckoView.Browser browser, String url) {} michael@0: michael@0: /** michael@0: * A Browser has finished loading content from the network. michael@0: * @param view The GeckoView that initiated the callback. michael@0: * @param browser The Browser that was loading the content. michael@0: * @param success Whether the page loaded successfully or an error occured. michael@0: */ michael@0: public void onPageStop(GeckoView view, GeckoView.Browser browser, boolean success) {} michael@0: michael@0: /** michael@0: * A Browser is displaying content. This page could have been loaded via michael@0: * network or from the session history. michael@0: * @param view The GeckoView that initiated the callback. michael@0: * @param browser The Browser that is showing the content. michael@0: */ michael@0: public void onPageShow(GeckoView view, GeckoView.Browser browser) {} michael@0: michael@0: /** michael@0: * A page title was discovered in the content or updated after the content michael@0: * loaded. michael@0: * @param view The GeckoView that initiated the callback. michael@0: * @param browser The Browser that is showing the content. michael@0: * @param title The title sent from the content. michael@0: */ michael@0: public void onReceivedTitle(GeckoView view, GeckoView.Browser browser, String title) {} michael@0: michael@0: /** michael@0: * A link element was discovered in the content or updated after the content michael@0: * loaded that specifies a favicon. michael@0: * @param view The GeckoView that initiated the callback. michael@0: * @param browser The Browser that is showing the content. michael@0: * @param url The href of the link element specifying the favicon. michael@0: * @param size The maximum size specified for the favicon, or -1 for any size. michael@0: */ michael@0: public void onReceivedFavicon(GeckoView view, GeckoView.Browser browser, String url, int size) {} michael@0: }