mobile/android/base/GeckoViewContent.java

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/GeckoViewContent.java	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +/* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
     1.5 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +package org.mozilla.gecko;
    1.10 +
    1.11 +public class GeckoViewContent implements GeckoView.ContentDelegate {
    1.12 +    /**
    1.13 +    * A Browser has started loading content from the network.
    1.14 +    * @param view The GeckoView that initiated the callback.
    1.15 +    * @param browser The Browser that is loading the content.
    1.16 +    * @param url The resource being loaded.
    1.17 +    */
    1.18 +    public void onPageStart(GeckoView view, GeckoView.Browser browser, String url) {}
    1.19 +
    1.20 +    /**
    1.21 +    * A Browser has finished loading content from the network.
    1.22 +    * @param view The GeckoView that initiated the callback.
    1.23 +    * @param browser The Browser that was loading the content.
    1.24 +    * @param success Whether the page loaded successfully or an error occured.
    1.25 +    */
    1.26 +    public void onPageStop(GeckoView view, GeckoView.Browser browser, boolean success) {}
    1.27 +
    1.28 +    /**
    1.29 +    * A Browser is displaying content. This page could have been loaded via
    1.30 +    * network or from the session history.
    1.31 +    * @param view The GeckoView that initiated the callback.
    1.32 +    * @param browser The Browser that is showing the content.
    1.33 +    */
    1.34 +    public void onPageShow(GeckoView view, GeckoView.Browser browser) {}
    1.35 +
    1.36 +    /**
    1.37 +    * A page title was discovered in the content or updated after the content
    1.38 +    * loaded.
    1.39 +    * @param view The GeckoView that initiated the callback.
    1.40 +    * @param browser The Browser that is showing the content.
    1.41 +    * @param title The title sent from the content.
    1.42 +    */
    1.43 +    public void onReceivedTitle(GeckoView view, GeckoView.Browser browser, String title) {}
    1.44 +
    1.45 +    /**
    1.46 +    * A link element was discovered in the content or updated after the content
    1.47 +    * loaded that specifies a favicon.
    1.48 +    * @param view The GeckoView that initiated the callback.
    1.49 +    * @param browser The Browser that is showing the content.
    1.50 +    * @param url The href of the link element specifying the favicon.
    1.51 +    * @param size The maximum size specified for the favicon, or -1 for any size.
    1.52 +    */
    1.53 +    public void onReceivedFavicon(GeckoView view, GeckoView.Browser browser, String url, int size) {}
    1.54 +}

mercurial