File tree Expand file tree Collapse file tree 3 files changed +2
-27
lines changed
shell/platform/fuchsia/dart-pkg/zircon/sdk_ext Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -25,18 +25,4 @@ struct TextBox {
2525
2626} // namespace flutter
2727
28- namespace tonic {
29-
30- template <>
31- struct DartConverter <flutter::TextBox> {
32- static Dart_Handle ToDart (const flutter::TextBox& val);
33- };
34-
35- template <>
36- struct DartListFactory <flutter::TextBox> {
37- static Dart_Handle NewList (intptr_t length);
38- };
39-
40- } // namespace tonic
41-
4228#endif // FLUTTER_LIB_UI_TEXT_TEXT_BOX_H_
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ Dart_Handle MakeHandleList(const std::vector<zx_handle_t>& in_handles) {
9898 tonic::DartClassLibrary& class_library =
9999 tonic::DartState::Current ()->class_library ();
100100 Dart_Handle handle_type = class_library.GetClass (" zircon" , " Handle" );
101- Dart_Handle list = Dart_NewListOfType (handle_type, in_handles.size ());
101+ Dart_Handle list = Dart_NewListOfTypeFilled (
102+ handle_type, Handle::CreateInvalid (), in_handles.size ());
102103 if (Dart_IsError (list))
103104 return list;
104105 for (size_t i = 0 ; i < in_handles.size (); i++) {
Original file line number Diff line number Diff line change @@ -166,18 +166,6 @@ struct DartConverter<PTR<T>> {
166166 }
167167};
168168
169- template <template <typename T> class PTR , typename T>
170- struct DartListFactory <
171- PTR<T>,
172- typename std::enable_if<
173- std::is_convertible<T*, const DartWrappable*>::value>::type> {
174- static Dart_Handle NewList (intptr_t length) {
175- Dart_PersistentHandle type = T::GetDartType (DartState::Current ());
176- TONIC_DCHECK (!LogIfError (type));
177- return Dart_NewListOfType (Dart_HandleFromPersistent (type), length);
178- }
179- };
180-
181169template <typename T>
182170inline T* GetReceiver (Dart_NativeArguments args) {
183171 intptr_t receiver;
You can’t perform that action at this time.
0 commit comments