Skip to content

Commit b5b01b2

Browse files
committed
[webview_flutter] Apply PlatformView's Intreface
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
1 parent b2e3f4d commit b5b01b2

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

packages/webview_flutter/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@
1515
## 0.2.2
1616
* Update lightweight web engine binary & header file (6263be6c888d5cb9dcca5466dfc3941a70b424eb)
1717
* Activate resizing function
18-
* Apply embedder's texture APIs change
18+
* Apply embedder's texture APIs change
19+
20+
## 0.3.0
21+
* Apply PlatformView, PlatformViewFactory APIs change

packages/webview_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: webview_flutter_tizen
22
description: Tizen implementation of the webview plugin
33
homepage: https://github.com/flutter-tizen/plugins
4-
version: 0.2.2
4+
version: 0.3.0
55

66
environment:
77
sdk: ">=2.12.0 <3.0.0"

packages/webview_flutter/tizen/src/webview.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ double ExtractDoubleFromMap(const flutter::EncodableValue& arguments,
157157

158158
WebView::WebView(flutter::PluginRegistrar* registrar, int viewId,
159159
flutter::TextureRegistrar* texture_registrar, double width,
160-
double height, flutter::EncodableMap& params)
161-
: PlatformView(registrar, viewId),
160+
double height, flutter::EncodableMap& params, void* winHandle)
161+
: PlatformView(registrar, viewId, winHandle),
162162
texture_registrar_(texture_registrar),
163163
webview_instance_(nullptr),
164164
width_(width),

packages/webview_flutter/tizen/src/webview.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class WebView : public PlatformView {
2727
public:
2828
WebView(flutter::PluginRegistrar* registrar, int viewId,
2929
flutter::TextureRegistrar* textureRegistrar, double width,
30-
double height, flutter::EncodableMap& params);
30+
double height, flutter::EncodableMap& params, void* winHandle);
3131
~WebView();
3232
virtual void Dispose() override;
3333
virtual void Resize(double width, double height) override;

packages/webview_flutter/tizen/src/webview_factory.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ PlatformView* WebViewFactory::Create(int viewId, double width, double height,
5151

5252
try {
5353
return new WebView(GetPluginRegistrar(), viewId, texture_registrar_, width,
54-
height, params);
54+
height, params, platform_window_);
5555
} catch (const std::invalid_argument& ex) {
5656
LOG_ERROR("[Exception] %s\n", ex.what());
5757
return nullptr;

0 commit comments

Comments
 (0)