Flutter Engine
The Flutter Engine
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
8#include "flutter/fml/macros.h"
9#include "third_party/dart/runtime/include/dart_api.h"
11
12namespace flutter {
13
15 public:
16 static void Install(bool is_ui_isolate, const std::string& script_uri);
17
18 static void Logger_PrintDebugString(const std::string& message);
19
20 static void Logger_PrintString(const std::string& message);
21
23
25
26 static Dart_Handle GetCallbackFromHandle(int64_t handle);
27
28 private:
29 FML_DISALLOW_IMPLICIT_CONSTRUCTORS(DartRuntimeHooks);
30};
31
33
34} // namespace flutter
35
36#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 Logger_PrintString(const std::string &message)
static void Install(bool is_ui_isolate, const std::string &script_uri)
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
Win32Message message
void DartPluginRegistrant_EnsureInitialized()
std::function< void()> closure
Definition: closure.h:14