Index: public/web/WebViewClient.h |
diff --git a/public/web/WebViewClient.h b/public/web/WebViewClient.h |
index d26c424f7350ae6d9d597d003866803ab3ed6c22..e084b2f919a6d7f5c3710cc401a608f7600ef8eb 100644 |
--- a/public/web/WebViewClient.h |
+++ b/public/web/WebViewClient.h |
@@ -35,6 +35,7 @@ |
#include "../platform/WebGraphicsContext3D.h" |
#include "../platform/WebString.h" |
#include "WebAccessibilityNotification.h" |
+#include "WebConsoleMessage.h" |
#include "WebContentDetectionResult.h" |
#include "WebDragOperation.h" |
#include "WebEditingAction.h" |
@@ -131,6 +132,12 @@ public: |
virtual void didAddMessageToConsole( |
const WebConsoleMessage&, const WebString& sourceName, unsigned sourceLine) { } |
+ // Whether or not we should report a detailed message from the given source. |
+ virtual bool shouldReportDetailedMessage(const WebString& source) { return false; } |
+ |
+ // Report a detailed message from a Javascript [Log|Error|Exception]. |
+ virtual void reportDetailedMessage(const WebString& source, WebConsoleMessage::Level level, const WebString& message, const WebString& jsonStackTrace) { } |
+ |
// Called when script in the page calls window.print(). If frame is |
// non-null, then it selects a particular frame, including its |
// children, to print. Otherwise, the main frame and its children |