Skip to content

Commit 45ccc85

Browse files
authored
Add get rotation for window channel (#79)
1 parent f4293b0 commit 45ccc85

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

flutter/shell/platform/tizen/channels/window_channel.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ void WindowChannel::HandleMethodCall(
7070
map[EncodableValue("width")] = EncodableValue(geometry.width);
7171
map[EncodableValue("height")] = EncodableValue(geometry.height);
7272
result->Success(EncodableValue(map));
73+
} else if (method_name == "getRotation") {
74+
result->Success(EncodableValue(window_->GetRotation()));
7375
} else {
7476
result->NotImplemented();
7577
}

flutter/shell/platform/tizen/tizen_window_ecore_wl2.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ void TizenWindowEcoreWl2::RegisterEventHandlers() {
225225
int32_t degree = rotation_event->angle;
226226
self->view_delegate_->OnRotate(degree);
227227
TizenGeometry geometry = self->GetGeometry();
228+
ecore_wl2_window_rotation_set(self->ecore_wl2_window_, degree);
228229
ecore_wl2_window_rotation_change_done_send(
229230
self->ecore_wl2_window_, rotation_event->rotation,
230231
geometry.width, geometry.height);

0 commit comments

Comments
 (0)