Flutter Engine
 
Loading...
Searching...
No Matches
handle_disposition.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
7#include <algorithm>
8
11
12using tonic::ToDart;
13
14namespace zircon {
15namespace dart {
16
18
19void HandleDisposition_constructor(Dart_NativeArguments args) {
20 DartCallConstructor(&HandleDisposition::create, args);
21}
22
24 zx_handle_op_t operation,
26 zx_obj_type_t type,
27 zx_rights_t rights) {
28 return fml::MakeRefCounted<HandleDisposition>(operation, handle, type, rights,
29 ZX_OK);
30}
31
32// clang-format: off
33
34#define FOR_EACH_STATIC_BINDING(V) V(HandleDisposition, create)
35
36#define FOR_EACH_BINDING(V) \
37 V(HandleDisposition, operation) \
38 V(HandleDisposition, handle) \
39 V(HandleDisposition, type) \
40 V(HandleDisposition, rights) \
41 V(HandleDisposition, result)
42
43// clang-format: on
44
45// Tonic is missing a comma.
46#define DART_REGISTER_NATIVE_STATIC_(CLASS, METHOD) \
47 DART_REGISTER_NATIVE_STATIC(CLASS, METHOD),
48
51
52void HandleDisposition::RegisterNatives(tonic::DartLibraryNatives* natives) {
53 natives->Register({{"HandleDisposition_constructor",
57}
58
59} // namespace dart
60} // namespace zircon
GLenum type
fml::RefPtr< dart::Handle > handle() const
static fml::RefPtr< HandleDisposition > create(zx_handle_op_t operation, fml::RefPtr< dart::Handle > handle, zx_obj_type_t type, zx_rights_t rights)
#define DART_NATIVE_CALLBACK_STATIC(CLASS, METHOD)
#define DART_NATIVE_NO_UI_CHECK_CALLBACK(CLASS, METHOD)
#define DART_REGISTER_NATIVE(CLASS, METHOD)
#define IMPLEMENT_WRAPPERTYPEINFO(LibraryName, ClassName)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via dart
Dart_Handle ToDart(const T &object)
void HandleDisposition_constructor(Dart_NativeArguments args)
#define FOR_EACH_STATIC_BINDING(V)
Definition handle.cc:112
#define FOR_EACH_BINDING(V)
Definition handle.cc:114
#define DART_REGISTER_NATIVE_STATIC_(CLASS, METHOD)
Definition handle.cc:126