summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-01-28 14:47:28 +0000
committerBen Murdoch <benm@google.com>2010-02-04 10:15:54 +0000
commitedfe3a5175efb80966f71463612aaa1a169074a4 (patch)
treebdc8fa212bfa4e3b89cee6b9f537b33644d7571c /WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
parentd7a7a76b919b1d8bdca7fe04a45594c3bccb1dde (diff)
downloadexternal_webkit-edfe3a5175efb80966f71463612aaa1a169074a4.zip
external_webkit-edfe3a5175efb80966f71463612aaa1a169074a4.tar.gz
external_webkit-edfe3a5175efb80966f71463612aaa1a169074a4.tar.bz2
Forward the console message level from WebCore to Java land.
This change requires a change to frameworks/base to receive the extra information. BUG=2401755 Change-Id: I27b1059dbc24ad2687e8ef0223599b0efcd74eca
Diffstat (limited to 'WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
index 17dc0d0..8d4032d 100644
--- a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
@@ -223,8 +223,8 @@ void ChromeClientAndroid::setResizable(bool) { notImplemented(); }
// This function is called by the JavaScript bindings to print usually an error to
// a message console. Pass the message to the java side so that the client can
// handle it as it sees fit.
-void ChromeClientAndroid::addMessageToConsole(MessageSource, MessageType, MessageLevel, const String& message, unsigned int lineNumber, const String& sourceID) {
- android::WebViewCore::getWebViewCore(m_webFrame->page()->mainFrame()->view())->addMessageToConsole(message, lineNumber, sourceID);
+void ChromeClientAndroid::addMessageToConsole(MessageSource, MessageType, MessageLevel msgLevel, const String& message, unsigned int lineNumber, const String& sourceID) {
+ android::WebViewCore::getWebViewCore(m_webFrame->page()->mainFrame()->view())->addMessageToConsole(message, lineNumber, sourceID, msgLevel);
}
bool ChromeClientAndroid::canRunBeforeUnloadConfirmPanel() { return true; }