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" |
10 | #include "third_party/tonic/dart_library_natives.h" |
11 | |
12 | namespace flutter { |
13 | |
14 | class DartRuntimeHooks { |
15 | public: |
16 | static void Install(bool is_ui_isolate, const std::string& script_uri); |
17 | static void RegisterNatives(tonic::DartLibraryNatives* natives); |
18 | |
19 | private: |
20 | FML_DISALLOW_IMPLICIT_CONSTRUCTORS(DartRuntimeHooks); |
21 | }; |
22 | |
23 | } // namespace flutter |
24 | |
25 | #endif // FLUTTER_LIB_UI_DART_RUNTIME_HOOKS_H_ |
26 |