OpenHarmony platform moves the 'copyTextToClipboard' interface from the 'SystemWindow' class to the 'System' class (#14972)

This commit is contained in:
qiuguohua
2023-05-06 09:48:42 +08:00
committed by GitHub
parent d8eb37df33
commit 9be4bb5ae3
4 changed files with 7 additions and 6 deletions
@@ -103,4 +103,8 @@ bool System::openURL(const std::string& url) {
return false;
}
} // namespace cc
void System::copyTextToClipboard(const std::string& text) {
//copyTextToClipboardJNI(text);
}
} // namespace cc
@@ -62,6 +62,7 @@ public:
@return True if the resource located by the URL was successfully opened; otherwise false.
*/
bool openURL(const std::string& url) override;
void copyTextToClipboard(const std::string& text) override;
};
} // namespace cc
@@ -59,10 +59,6 @@ bool SystemWindow::createWindow(const char* title,
void SystemWindow::setCursorEnabled(bool value) {
}
void SystemWindow::copyTextToClipboard(const std::string& text) {
//copyTextToClipboardJNI(text);
}
uint32_t SystemWindow::getWindowId() const {
return _windowId;
}
@@ -51,7 +51,7 @@ public:
@brief enable/disable(lock) the cursor, default is enabled
*/
void setCursorEnabled(bool value) override;
void copyTextToClipboard(const std::string& text) override;
private:
void* _windowHandle{nullptr};
uint32_t _windowId{0};