mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
58e84c8bf0
* Re-land "Support multiple shells in a single process. (#4932)"
This reverts commit 723c7d0143.
42 lines
918 B
C++
42 lines
918 B
C++
// Copyright 2015 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.
|
|
|
|
#ifndef SHELL_PLATFORM_ANDROID_FLUTTER_MAIN_H_
|
|
#define SHELL_PLATFORM_ANDROID_FLUTTER_MAIN_H_
|
|
|
|
#include <jni.h>
|
|
|
|
#include "flutter/common/settings.h"
|
|
#include "lib/fxl/macros.h"
|
|
|
|
namespace shell {
|
|
|
|
class FlutterMain {
|
|
public:
|
|
~FlutterMain();
|
|
|
|
static bool Register(JNIEnv* env);
|
|
|
|
static FlutterMain& Get();
|
|
|
|
const blink::Settings& GetSettings() const;
|
|
|
|
private:
|
|
const blink::Settings settings_;
|
|
|
|
FlutterMain(blink::Settings settings);
|
|
|
|
static void Init(JNIEnv* env,
|
|
jclass clazz,
|
|
jobject context,
|
|
jobjectArray jargs,
|
|
jstring bundlePath);
|
|
|
|
FXL_DISALLOW_COPY_AND_ASSIGN(FlutterMain);
|
|
};
|
|
|
|
} // namespace shell
|
|
|
|
#endif // SHELL_PLATFORM_ANDROID_FLUTTER_MAIN_H_
|