Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 package org.mozilla.gecko;
8 public class GeckoViewContent implements GeckoView.ContentDelegate {
9 /**
10 * A Browser has started loading content from the network.
11 * @param view The GeckoView that initiated the callback.
12 * @param browser The Browser that is loading the content.
13 * @param url The resource being loaded.
14 */
15 public void onPageStart(GeckoView view, GeckoView.Browser browser, String url) {}
17 /**
18 * A Browser has finished loading content from the network.
19 * @param view The GeckoView that initiated the callback.
20 * @param browser The Browser that was loading the content.
21 * @param success Whether the page loaded successfully or an error occured.
22 */
23 public void onPageStop(GeckoView view, GeckoView.Browser browser, boolean success) {}
25 /**
26 * A Browser is displaying content. This page could have been loaded via
27 * network or from the session history.
28 * @param view The GeckoView that initiated the callback.
29 * @param browser The Browser that is showing the content.
30 */
31 public void onPageShow(GeckoView view, GeckoView.Browser browser) {}
33 /**
34 * A page title was discovered in the content or updated after the content
35 * loaded.
36 * @param view The GeckoView that initiated the callback.
37 * @param browser The Browser that is showing the content.
38 * @param title The title sent from the content.
39 */
40 public void onReceivedTitle(GeckoView view, GeckoView.Browser browser, String title) {}
42 /**
43 * A link element was discovered in the content or updated after the content
44 * loaded that specifies a favicon.
45 * @param view The GeckoView that initiated the callback.
46 * @param browser The Browser that is showing the content.
47 * @param url The href of the link element specifying the favicon.
48 * @param size The maximum size specified for the favicon, or -1 for any size.
49 */
50 public void onReceivedFavicon(GeckoView view, GeckoView.Browser browser, String url, int size) {}
51 }