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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ErrorEventDispatcher.h

Issue 2244203002: Fix "report the exception" in Custom Elements V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed to ErrorEventDispatcher Created 4 years, 4 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
Index: third_party/WebKit/Source/bindings/core/v8/ErrorEventDispatcher.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ErrorEventDispatcher.h b/third_party/WebKit/Source/bindings/core/v8/ErrorEventDispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..f9b9c16d4c3ea9be831ea20951f770bfe10d5cf0
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/core/v8/ErrorEventDispatcher.h
@@ -0,0 +1,36 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ErrorEventDispatcher_h
+#define ErrorEventDispatcher_h
+
+#include "core/CoreExport.h"
+#include "core/fetch/AccessControlStatus.h"
+#include "wtf/text/WTFString.h"
+#include <v8.h>
+
+namespace blink {
+
+class ExceptionState;
+class ScriptState;
+class SourceLocation;
+
+class CORE_EXPORT ErrorEventDispatcher {
+ STATIC_ONLY(ErrorEventDispatcher);
+public:
+ static void dispatchErrorEvent(ScriptState*, ExceptionState&,
+ v8::Local<v8::Function>);
+ static void dispatchErrorEvent(ScriptState*, v8::Local<v8::Value> exception,
+ const String& message, v8::Local<v8::Function>);
+ static void dispatchErrorEvent(ScriptState*, v8::Local<v8::Value> exception,
+ const String& message,
+ std::unique_ptr<SourceLocation>, const v8::ScriptOriginOptions&);
+
+ static AccessControlStatus accessControlStatusFromScriptOriginOptions(
+ const v8::ScriptOriginOptions&);
+};
+
+} // namespace blink
+
+#endif // ErrorEventDispatcher_h

Powered by Google App Engine
This is Rietveld 408576698