Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: public/web/WebViewClient.h

Issue 20191003: Route JS Error Info From Blink to Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@gclient
Patch Set: Adam's requests Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« Source/devtools/protocol.json ('K') | « public/testing/WebTestProxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebViewClient.h
diff --git a/public/web/WebViewClient.h b/public/web/WebViewClient.h
index 3aeab92416ab29172981acaf960648ed72eb7a21..c7eccc46030f98606f7204b31f1a5fa77b004f83 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>
namespace WebKit {
@@ -125,9 +126,13 @@ public:
// Misc ----------------------------------------------------------------
+ // 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.
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
« Source/devtools/protocol.json ('K') | « public/testing/WebTestProxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698