Index: sky/viewer/internals.cc |
diff --git a/sky/viewer/internals.cc b/sky/viewer/internals.cc |
index 0dcdd42e967c57797885ea70ccb5ea19a07cc4ee..3070f98273ffb79953d5c52b4981e6b345ffee8f 100644 |
--- a/sky/viewer/internals.cc |
+++ b/sky/viewer/internals.cc |
@@ -44,10 +44,15 @@ void NotifyTestComplete(Dart_NativeArguments args) { |
GetInternals()->NotifyTestComplete(StdStringFromDart(test_result)); |
} |
+void PassShellProxyHandle(Dart_NativeArguments args) { |
+ Dart_SetIntegerReturnValue(args, GetInternals()->PassShellProxyHandle().value()); |
+} |
+ |
const DartBuiltin::Natives kNativeFunctions[] = { |
{"renderTreeAsText", RenderTreeAsText, 0}, |
{"contentAsText", ContentAsText, 0}, |
{"notifyTestComplete", NotifyTestComplete, 1}, |
+ {"passShellProxyHandle", PassShellProxyHandle, 0}, |
}; |
const DartBuiltin& GetBuiltin() { |
@@ -71,6 +76,7 @@ const char kLibrarySource[] = R"DART( |
String renderTreeAsText() native "renderTreeAsText"; |
String contentAsText() native "contentAsText"; |
void notifyTestComplete(String test_result) native "notifyTestComplete"; |
+int passShellProxyHandle() native "passShellProxyHandle"; |
)DART"; |
} // namespace |