mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
OpenHarmony platform moves the 'copyTextToClipboard' interface from the 'SystemWindow' class to the 'System' class (#14972)
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user