Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions flutter/shell/platform/tizen/channels/window_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "flutter/shell/platform/common/client_wrapper/include/flutter/standard_method_codec.h"
#include "flutter/shell/platform/tizen/channels/encodable_value_holder.h"
#include "flutter/shell/platform/tizen/logger.h"
#include "flutter/shell/platform/tizen/tizen_window.h"
#include "flutter/shell/platform/tizen/tizen_window_ecore_wl2.h"

namespace flutter {

Expand Down Expand Up @@ -72,6 +74,15 @@ void WindowChannel::HandleMethodCall(
result->Success(EncodableValue(map));
} else if (method_name == "getRotation") {
result->Success(EncodableValue(window_->GetRotation()));
} else if (method_name == "activateWindow") {
window_->ActivateWindow();
result->Success();
} else if (method_name == "raiseWindow") {
window_->RaiseWindow();
result->Success();
} else if (method_name == "lowerWindow") {
window_->LowerWindow();
result->Success();
} else {
result->NotImplemented();
}
Expand Down
6 changes: 6 additions & 0 deletions flutter/shell/platform/tizen/tizen_window.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ class TizenWindow : public TizenViewBase {

virtual void BindKeys(const std::vector<std::string>& keys) = 0;

virtual void ActivateWindow() = 0;

virtual void RaiseWindow() = 0;

virtual void LowerWindow() = 0;

protected:
explicit TizenWindow(TizenGeometry geometry,
bool transparent,
Expand Down
12 changes: 12 additions & 0 deletions flutter/shell/platform/tizen/tizen_window_ecore_wl2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -848,4 +848,16 @@ void TizenWindowEcoreWl2::PrepareInputMethod() {
[this](std::string str) { view_delegate_->OnCommit(str); });
}

void TizenWindowEcoreWl2::ActivateWindow() {
ecore_wl2_window_activate(ecore_wl2_window_);
}

void TizenWindowEcoreWl2::RaiseWindow() {
ecore_wl2_window_raise(ecore_wl2_window_);
}

void TizenWindowEcoreWl2::LowerWindow() {
ecore_wl2_window_lower(ecore_wl2_window_);
}

} // namespace flutter
6 changes: 6 additions & 0 deletions flutter/shell/platform/tizen/tizen_window_ecore_wl2.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ class TizenWindowEcoreWl2 : public TizenWindow {

void UpdateFlutterCursor(const std::string& kind) override;

void ActivateWindow() override;

void RaiseWindow() override;

void LowerWindow() override;

private:
bool CreateWindow(void* window_handle);

Expand Down
12 changes: 12 additions & 0 deletions flutter/shell/platform/tizen/tizen_window_elementary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -425,4 +425,16 @@ void TizenWindowElementary::PrepareInputMethod() {
[this](std::string str) { view_delegate_->OnCommit(str); });
}

void TizenWindowElementary::ActivateWindow() {
elm_win_activate(elm_win_);
}

void TizenWindowElementary::RaiseWindow() {
elm_win_raise(elm_win_);
}

void TizenWindowElementary::LowerWindow() {
elm_win_lower(elm_win_);
}

} // namespace flutter
6 changes: 6 additions & 0 deletions flutter/shell/platform/tizen/tizen_window_elementary.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ class TizenWindowElementary : public TizenWindow {

void UpdateFlutterCursor(const std::string& kind) override;

void ActivateWindow() override;

void RaiseWindow() override;

void LowerWindow() override;

private:
bool CreateWindow();

Expand Down