Files
webview_cef/lib/webview_cef_platform_interface.dart
SinyimZhi 6f6ed6db81 Linux Support! (#88)
* init platform linux

* +linux

* fix cmake link problem

* run cef window on linux (#66)

Co-authored-by: zhixinyan <zhixinyan@baidu.com>

* linux auto download prebuilt files

* off-screen rendering,methodchannel... (#69)

* run cef window on linux

* linux auto download prebuilt files

* off-screen rendering,methodchannel

---------

Co-authored-by: zhixinyan <zhixinyan@baidu.com>

* fix warnings & compile err

* process keyevent for linux

* Merge main to linux (#73)

* Added cookie visitor to manage cookies

* Added cookie visitor to manage cookies

* Macos support cookie visitor

---------

Co-authored-by: zhixinyan <zhixinyan@baidu.com>

* fix opengl support, add support file

* bump ver to 0.0.9

* let CEF detect how to load a specific url

Current example implementation blocked local file loading.

* Jsbridge (#2)

support jsbridge/jschannel

* check bins files are newest version or not

* bump ver to 0.1.0

* bump ver to 0.1.0

* [mac] fix x86 mac frame blink

* Update Instructions of macOS

on macOS, manual work has to be done for placing CEF lib inside the repo. So we can not use the plugin directly as of now.

---------

Co-authored-by: zhixinyan <zhixinyan@baidu.com>
Co-authored-by: Prome <levi.hao96@gmail.com>
Co-authored-by: BullsEye <18664297+BullsEye34@users.noreply.github.com>

* unified windows and linux interface

* fixed some methodchannel bugs

* solve channel run in muti-thread casue some crash

* try to solve cef grab gtk main loop cause crash

* provide arm64 prebuilt package

* fix character type convert errors

* rebuild the data struct of unified interface

* fix build errors on linux

* fix build errors on linux

* unified interface for all three platforms!

* fix build error

---------

Co-authored-by: Prome <levi.hao96@gmail.com>
Co-authored-by: zhixinyan <zhixinyan@baidu.com>
Co-authored-by: BullsEye <18664297+BullsEye34@users.noreply.github.com>
2023-11-17 16:57:30 +08:00

30 lines
977 B
Dart

import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'webview_cef_method_channel.dart';
abstract class WebviewCefPlatform extends PlatformInterface {
/// Constructs a WebviewCefPlatform.
WebviewCefPlatform() : super(token: _token);
static final Object _token = Object();
static WebviewCefPlatform _instance = MethodChannelWebviewCef();
/// The default instance of [WebviewCefPlatform] to use.
///
/// Defaults to [MethodChannelWebviewCef].
static WebviewCefPlatform get instance => _instance;
/// Platform-specific implementations should set this with their own
/// platform-specific class that extends [WebviewCefPlatform] when
/// they register themselves.
static set instance(WebviewCefPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}
Future<String?> getPlatformVersion() {
throw UnimplementedError('platformVersion() has not been implemented.');
}
}