@@ -220,78 +220,11 @@ FlutterDesktopViewRef FlutterDesktopViewCreateFromNewWindow(
220220 return HandleForView (view.release ());
221221}
222222
223- void * FlutterDesktopViewGetNativeHandle (FlutterDesktopViewRef view_ref) {
224- flutter::FlutterTizenView* view = ViewFromHandle (view_ref);
225- return view->tizen_view ()->GetNativeHandle ();
226- }
227-
228223uint32_t FlutterDesktopViewGetResourceId (FlutterDesktopViewRef view_ref) {
229224 flutter::FlutterTizenView* view = ViewFromHandle (view_ref);
230225 return view->tizen_view ()->GetResourceId ();
231226}
232227
233- void FlutterDesktopViewResize (FlutterDesktopViewRef view,
234- int32_t width,
235- int32_t height) {
236- ViewFromHandle (view)->Resize (width, height);
237- }
238-
239- void FlutterDesktopViewOnPointerEvent (FlutterDesktopViewRef view,
240- FlutterDesktopPointerEventType type,
241- double x,
242- double y,
243- size_t timestamp,
244- int32_t device_id) {
245- // TODO(swift-kim): Add support for mouse devices.
246- FlutterPointerDeviceKind device_kind = kFlutterPointerDeviceKindTouch ;
247- FlutterPointerMouseButtons button = kFlutterPointerButtonMousePrimary ;
248-
249- switch (type) {
250- case FlutterDesktopPointerEventType::kMouseDown :
251- default :
252- ViewFromHandle (view)->OnPointerDown (x, y, button, timestamp, device_kind,
253- device_id);
254- break ;
255- case FlutterDesktopPointerEventType::kMouseUp :
256- ViewFromHandle (view)->OnPointerUp (x, y, button, timestamp, device_kind,
257- device_id);
258- break ;
259- case FlutterDesktopPointerEventType::kMouseMove :
260- ViewFromHandle (view)->OnPointerMove (x, y, timestamp, device_kind,
261- device_id);
262- break ;
263- }
264- }
265-
266- void FlutterDesktopViewOnKeyEvent (FlutterDesktopViewRef view,
267- const char * device_name,
268- uint32_t device_class,
269- uint32_t device_subclass,
270- const char * key,
271- const char * string,
272- uint32_t modifiers,
273- uint32_t scan_code,
274- size_t timestamp,
275- bool is_down) {
276- ViewFromHandle (view)->OnKey (key, string, nullptr , modifiers, scan_code,
277- device_name, is_down);
278- }
279-
280- void FlutterDesktopViewSetFocus (FlutterDesktopViewRef view, bool focused) {
281- if (auto * tizen_view = dynamic_cast <flutter::TizenView*>(
282- ViewFromHandle (view)->tizen_view ())) {
283- tizen_view->SetFocus (focused);
284- }
285- }
286-
287- bool FlutterDesktopViewIsFocused (FlutterDesktopViewRef view) {
288- if (auto * tizen_view = dynamic_cast <flutter::TizenView*>(
289- ViewFromHandle (view)->tizen_view ())) {
290- return tizen_view->focused ();
291- }
292- return false ;
293- }
294-
295228void FlutterDesktopRegisterViewFactory (
296229 FlutterDesktopPluginRegistrarRef registrar,
297230 const char * view_type,
0 commit comments