flutter_flutter/lib/ui/text/text_box.h

27 lines
705 B
C++

// 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 FLUTTER_LIB_UI_TEXT_TEXT_BOX_H_
#define FLUTTER_LIB_UI_TEXT_TEXT_BOX_H_
#include "flutter/sky/engine/platform/text/TextBox.h"
#include "lib/tonic/converter/dart_converter.h"
#include "third_party/dart/runtime/include/dart_api.h"
namespace tonic {
template <>
struct DartConverter<blink::TextBox> {
static Dart_Handle ToDart(const blink::TextBox& val);
};
template <>
struct DartListFactory<blink::TextBox> {
static Dart_Handle NewList(intptr_t length);
};
} // namespace tonic
#endif // FLUTTER_LIB_UI_TEXT_TEXT_BOX_H_