FlutterDartProject_Internal.h 978 字节
Newer Older
1 2 3 4
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5 6 7 8
#ifndef SKY_SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
#define SKY_SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_

#include "sky/shell/platform/ios/framework/Headers/FlutterDartProject.h"
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

#include "sky/services/engine/sky_engine.mojom.h"

enum VMType {
  // An invalid VM configuration.
  VMTypeInvalid = 0,
  // VM can execute Dart code as an interpreter.
  VMTypeInterpreter,
  // VM can execute precompiled Dart code.
  VMTypePrecompilation,
};

typedef void (^LaunchResult)(BOOL success, NSString* message);

@interface FlutterDartProject ()

- (void)launchInEngine:(sky::SkyEnginePtr&)engine
        embedderVMType:(VMType)type
                result:(LaunchResult)result;

@end
30 31

#endif  // SKY_SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_