mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Add stub for set_clipboard_contents and get_clipboard_contents in libsimpleservo jniapi and libmlservo
This commit is contained in:
parent
02d55885c8
commit
8da643d998
2 changed files with 12 additions and 0 deletions
|
@ -354,6 +354,12 @@ impl HostTrait for HostCallbacks {
|
||||||
fn on_ime_state_changed(&self, show: bool) {
|
fn on_ime_state_changed(&self, show: bool) {
|
||||||
(self.keyboard.0)(self.app, show)
|
(self.keyboard.0)(self.app, show)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn get_clipboard_contents(&self) -> Option<String> {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn set_clipboard_contents(&self, contents: String) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct ServoInstance {
|
pub struct ServoInstance {
|
||||||
|
|
|
@ -457,6 +457,12 @@ impl HostTrait for HostCallbacks {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn on_ime_state_changed(&self, _show: bool) {}
|
fn on_ime_state_changed(&self, _show: bool) {}
|
||||||
|
|
||||||
|
fn get_clipboard_contents(&self) -> Option<String> {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn set_clipboard_contents(&self, contents: String) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn initialize_android_glue(env: &JNIEnv, activity: JObject) {
|
fn initialize_android_glue(env: &JNIEnv, activity: JObject) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue