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

Unified Diff: sky/engine/bindings/dart_event_listener.cc

Issue 941153003: Add dart_invoke to tonic for calls into App code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cr comments Created 5 years, 10 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
« no previous file with comments | « sky/engine/bindings/dart_callback.cc ('k') | sky/engine/bindings/scheduled_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/dart_event_listener.cc
diff --git a/sky/engine/bindings/dart_event_listener.cc b/sky/engine/bindings/dart_event_listener.cc
index 2c16f656c8efe62938fc3b3b3985d2cbf725984c..b37344901786565decf8285797ac223d48ac4105 100644
--- a/sky/engine/bindings/dart_event_listener.cc
+++ b/sky/engine/bindings/dart_event_listener.cc
@@ -10,6 +10,7 @@
#include "sky/engine/tonic/dart_error.h"
#include "sky/engine/tonic/dart_exception_factory.h"
#include "sky/engine/tonic/dart_gc_visitor.h"
+#include "sky/engine/tonic/dart_invoke.h"
#include "sky/engine/tonic/dart_isolate_scope.h"
namespace blink {
@@ -51,7 +52,7 @@ void DartEventListener::handleEvent(ExecutionContext* context, Event* event) {
DCHECK(event_handle);
Dart_Handle params[] = {event_handle};
- LogIfError(Dart_InvokeClosure(closure_handle, arraysize(params), params));
+ DartInvokeAppClosure(closure_handle, arraysize(params), params);
}
void DartEventListener::AcceptDartGCVisitor(DartGCVisitor& visitor) const {
« no previous file with comments | « sky/engine/bindings/dart_callback.cc ('k') | sky/engine/bindings/scheduled_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698