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

Unified Diff: sky/engine/core/dom/custom/custom_element.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/scheduled_action.cc ('k') | sky/engine/core/script/dart_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/custom/custom_element.cc
diff --git a/sky/engine/core/dom/custom/custom_element.cc b/sky/engine/core/dom/custom/custom_element.cc
index 1661c03edb5c69842bef14f2cab9d590c6fb7cd2..c9099e8d08938aaf6c662a4faf562eab660102bf 100644
--- a/sky/engine/core/dom/custom/custom_element.cc
+++ b/sky/engine/core/dom/custom/custom_element.cc
@@ -13,6 +13,7 @@
#include "sky/engine/core/dom/custom/custom_element_callback_scope.h"
#include "sky/engine/core/dom/custom/custom_element_registry.h"
#include "sky/engine/tonic/dart_converter.h"
+#include "sky/engine/tonic/dart_invoke.h"
#include "sky/engine/tonic/dart_state.h"
#include "sky/engine/wtf/text/AtomicString.h"
@@ -42,7 +43,7 @@ void CallAttributeDidChangedCallback(RefPtr<Element> element,
StringToDart(dart_state, oldValue),
StringToDart(dart_state, newValue),
};
- LogIfError(Dart_Invoke(wrapper, callback, arraysize(args), args));
+ DartInvokeAppField(wrapper, callback, arraysize(args), args);
}
void CallDidAttachedCallback(RefPtr<Element> element, RefPtr<Document> document) {
« no previous file with comments | « sky/engine/bindings/scheduled_action.cc ('k') | sky/engine/core/script/dart_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698