Skip to content

Commit 3e0a982

Browse files
committed
Remove dead view-control C API orphaned by FlutterView removal
1 parent 2cd9cc0 commit 3e0a982

4 files changed

Lines changed: 3 additions & 112 deletions

File tree

flutter/shell/platform/tizen/BUILD.gn

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,9 @@ template("embedder") {
155155
}
156156

157157
if (api_version != "6.0") {
158-
sources += [
159-
"tizen_clipboard.cc",
160-
]
158+
sources += [ "tizen_clipboard.cc" ]
161159

162-
defines += [
163-
"CLIPBOARD_SUPPORT",
164-
]
160+
defines += [ "CLIPBOARD_SUPPORT" ]
165161
}
166162

167163
configs += [

flutter/shell/platform/tizen/flutter_tizen.cc

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
228223
uint32_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-
295228
void FlutterDesktopRegisterViewFactory(
296229
FlutterDesktopPluginRegistrarRef registrar,
297230
const char* view_type,

flutter/shell/platform/tizen/flutter_tizen_view.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#include "flutter/shell/platform/tizen/logger.h"
99
#include "flutter/shell/platform/tizen/system_utils.h"
10-
#include "flutter/shell/platform/tizen/tizen_view.h"
1110
#include "flutter/shell/platform/tizen/tizen_renderer_egl.h"
11+
#include "flutter/shell/platform/tizen/tizen_view.h"
1212
#include "flutter/shell/platform/tizen/tizen_window.h"
1313

1414
namespace {

flutter/shell/platform/tizen/public/flutter_tizen.h

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -183,48 +183,10 @@ FLUTTER_EXPORT FlutterDesktopViewRef FlutterDesktopViewCreateFromNewWindow(
183183
// @warning This API is a work-in-progress and may change.
184184
FLUTTER_EXPORT void FlutterDesktopViewDestroy(FlutterDesktopViewRef view);
185185

186-
// Returns a native UI toolkit handle for manipulation in host application.
187-
//
188-
// Cast the returned void*
189-
// - window ecore wl2 : to Ecore_Wl2_Window*
190-
// @warning This API is a work-in-progress and may change.
191-
FLUTTER_EXPORT void* FlutterDesktopViewGetNativeHandle(
192-
FlutterDesktopViewRef view);
193-
194186
// Returns the resource id of current window.
195187
FLUTTER_EXPORT uint32_t
196188
FlutterDesktopViewGetResourceId(FlutterDesktopViewRef view);
197189

198-
// Resizes the view.
199-
// @warning This API is a work-in-progress and may change.
200-
FLUTTER_EXPORT void FlutterDesktopViewResize(FlutterDesktopViewRef view,
201-
int32_t width,
202-
int32_t height);
203-
204-
FLUTTER_EXPORT void FlutterDesktopViewOnPointerEvent(
205-
FlutterDesktopViewRef view,
206-
FlutterDesktopPointerEventType type,
207-
double x,
208-
double y,
209-
size_t timestamp,
210-
int32_t device_id);
211-
212-
FLUTTER_EXPORT void FlutterDesktopViewOnKeyEvent(FlutterDesktopViewRef view,
213-
const char* device_name,
214-
uint32_t device_class,
215-
uint32_t device_subclass,
216-
const char* key,
217-
const char* string,
218-
uint32_t modifiers,
219-
uint32_t scan_code,
220-
size_t timestamp,
221-
bool is_down);
222-
223-
FLUTTER_EXPORT void FlutterDesktopViewSetFocus(FlutterDesktopViewRef view,
224-
bool focused);
225-
226-
FLUTTER_EXPORT bool FlutterDesktopViewIsFocused(FlutterDesktopViewRef view);
227-
228190
// ========== Plugin Registrar (extensions) ==========
229191

230192
// Returns the view associated with this registrar's engine instance.

0 commit comments

Comments
 (0)