forked from chromiumembedded/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCefDisplayHandler.java
More file actions
60 lines (53 loc) · 1.99 KB
/
CefDisplayHandler.java
File metadata and controls
60 lines (53 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// 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.browser.CefBrowser;
import org.cef.browser.CefFrame;
import org.cef.CefSettings;
/**
* 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 {
/**
* Handle address changes.
* @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);
/**
* Handle title changes.
* @param browser The browser generating the event.
* @param title The new title.
*/
public void onTitleChange(CefBrowser browser, String title);
/**
* Called when the browser is 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 To handle the display of the tooltip yourself return true.
*/
public boolean onTooltip(CefBrowser browser, String text);
/**
* Called when the browser receives 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);
/**
* Called to 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);
}