Flutter Engine
The Flutter Engine
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
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
static void operation(T operation, uint32_t &a, uint32_t b, uint32_t c, uint32_t d, uint32_t x, uint8_t s, uint32_t t)
Definition: SkMD5.cpp:144
GLenum type
zx_handle_op_t operation() const
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)
struct _Dart_NativeArguments * Dart_NativeArguments
Definition: dart_api.h:3019
#define DART_NATIVE_CALLBACK_STATIC(CLASS, METHOD)
#define DART_NATIVE_NO_UI_CHECK_CALLBACK(CLASS, METHOD)
#define DART_REGISTER_NATIVE(CLASS, METHOD)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
#define FOR_EACH_STATIC_BINDING(V)
#define FOR_EACH_BINDING(V)
#define DART_REGISTER_NATIVE_STATIC_(CLASS, METHOD)
Definition: dart_vm.cc:33
void DartCallConstructor(Sig func, Dart_NativeArguments args)
Definition: dart_args.h:230
Dart_Handle ToDart(const T &object)
IMPLEMENT_WRAPPERTYPEINFO(zircon, Handle)
void HandleDisposition_constructor(Dart_NativeArguments args)
Definition: handle.cc:14