am c26197e0: am 7caaeecc: Rename WebChromeClient.addMessageToConsole to WebChromeClient.onConsoleMessage.

Merge commit 'c26197e02cb0dc76d7d621f88f120c1ccfc31c25'

* commit 'c26197e02cb0dc76d7d621f88f120c1ccfc31c25':
  Rename WebChromeClient.addMessageToConsole to WebChromeClient.onConsoleMessage.
This commit is contained in:
Ben Murdoch
2009-11-20 02:24:03 -08:00
committed by Android Git Automerger
4 changed files with 15 additions and 15 deletions

View File

@@ -665,7 +665,7 @@ class CallbackProxy extends Handler {
String message = msg.getData().getString("message");
String sourceID = msg.getData().getString("sourceID");
int lineNumber = msg.getData().getInt("lineNumber");
mWebChromeClient.addMessageToConsole(message, lineNumber, sourceID);
mWebChromeClient.onConsoleMessage(message, lineNumber, sourceID);
break;
case GET_VISITED_HISTORY:

View File

@@ -257,13 +257,13 @@ public class WebChromeClient {
}
/**
* Add a JavaScript error message to the console. Clients should override
* this to process the log message as they see fit.
* Report a JavaScript error message to the host application. The ChromeClient
* should override this to process the log message as they see fit.
* @param message The error message to report.
* @param lineNumber The line number of the error.
* @param sourceID The name of the source file that caused the error.
*/
public void addMessageToConsole(String message, int lineNumber, String sourceID) {}
public void onConsoleMessage(String message, int lineNumber, String sourceID) {}
/**
* When not playing, video elements are represented by a 'poster' image. The