Chromium Code Reviews| Index: public/web/WebViewClient.h |
| diff --git a/public/web/WebViewClient.h b/public/web/WebViewClient.h |
| index 7056dd64b7dc427d90fcf9c4d787ef0943c3f5e8..a1374bbc8a8e92a4e59ec5f74662f2db519ae5a9 100644 |
| --- a/public/web/WebViewClient.h |
| +++ b/public/web/WebViewClient.h |
| @@ -45,6 +45,7 @@ |
| #include "WebTextAffinity.h" |
| #include "WebTextDirection.h" |
| #include "WebWidgetClient.h" |
| +#include <v8.h> |
|
abarth-chromium
2013/07/19 03:12:17
Hum... This is suspicious. We probably don't wan
|
| namespace WebKit { |
| @@ -126,9 +127,16 @@ public: |
| // Misc ---------------------------------------------------------------- |
| - // A new message was added to the console. |
| + // Whether or not we should report a detailed message for the given source. |
| + virtual bool shouldReportDetailedMessageForContext(v8::Handle<v8::Context>) { return false; } |
| + virtual bool shouldReportDetailedMessageForURL(const WebString& source) { return false; } |
| + |
| + // A new message was added to the console. If a detailed message should be |
| + // reported, a stringified JSON object is included; otherwise, |details| is |
| + // empty. |
| virtual void didAddMessageToConsole( |
| - const WebConsoleMessage&, const WebString& sourceName, unsigned sourceLine) { } |
| + const WebConsoleMessage&, const WebString& sourceName, |
| + unsigned sourceLine, const WebString& details) { } |
| // Called when script in the page calls window.print(). If frame is |
| // non-null, then it selects a particular frame, including its |