Flutter Engine
 
Loading...
Searching...
No Matches
dart_runtime_hooks.h
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
5#ifndef FLUTTER_LIB_UI_DART_RUNTIME_HOOKS_H_
6#define FLUTTER_LIB_UI_DART_RUNTIME_HOOKS_H_
7
9#include "third_party/dart/runtime/include/dart_api.h"
11
12namespace flutter {
13
15 public:
16 static void Install(bool is_ui_isolate,
17 bool enable_microtask_profiling,
18 const std::string& script_uri);
19
20 static void Logger_PrintDebugString(const std::string& message);
21
22 static void Logger_PrintString(const std::string& message);
23
24 static void ScheduleMicrotask(Dart_Handle closure);
25
26 static Dart_Handle GetCallbackHandle(Dart_Handle func);
27
28 static Dart_Handle GetCallbackFromHandle(int64_t handle);
29
30 private:
32};
33
35
36} // namespace flutter
37
38#endif // FLUTTER_LIB_UI_DART_RUNTIME_HOOKS_H_
static Dart_Handle GetCallbackHandle(Dart_Handle func)
static Dart_Handle GetCallbackFromHandle(int64_t handle)
static void ScheduleMicrotask(Dart_Handle closure)
static void Logger_PrintDebugString(const std::string &message)
static void Install(bool is_ui_isolate, bool enable_microtask_profiling, const std::string &script_uri)
static void Logger_PrintString(const std::string &message)
G_BEGIN_DECLS GBytes * message
#define FML_DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName)
Definition macros.h:37
void DartPluginRegistrant_EnsureInitialized()