flutter_flutter/sky/engine/core/painting/DrawLooperLayerInfo.cpp
Jason Simmons 10ce8a1928 Move the JNI bridge out of dart:ui and into a separate dart:jni library
This also extends DartClassLibrary to support multiple DartClassProviders
for different libraries
2016-01-08 11:04:22 -08:00

42 lines
1.2 KiB
C++

// Copyright 2015 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.
#include "sky/engine/core/painting/DrawLooperLayerInfo.h"
#include "sky/engine/tonic/dart_args.h"
#include "sky/engine/tonic/dart_binding_macros.h"
#include "sky/engine/tonic/dart_converter.h"
#include "sky/engine/tonic/dart_library_natives.h"
namespace blink {
static void DrawLooperLayerInfo_constructor(Dart_NativeArguments args) {
DartCallConstructor(&DrawLooperLayerInfo::create, args);
}
IMPLEMENT_WRAPPERTYPEINFO(ui, DrawLooperLayerInfo);
#define FOR_EACH_BINDING(V) \
V(DrawLooperLayerInfo, setPaintBits) \
V(DrawLooperLayerInfo, setColorMode) \
V(DrawLooperLayerInfo, setOffset) \
V(DrawLooperLayerInfo, setPostTranslate)
FOR_EACH_BINDING(DART_NATIVE_CALLBACK)
void DrawLooperLayerInfo::RegisterNatives(DartLibraryNatives* natives) {
natives->Register({
{ "DrawLooperLayerInfo_constructor", DrawLooperLayerInfo_constructor, 1, true },
FOR_EACH_BINDING(DART_REGISTER_NATIVE)
});
}
DrawLooperLayerInfo::DrawLooperLayerInfo() {
}
DrawLooperLayerInfo::~DrawLooperLayerInfo() {
}
} // namespace blink