Add stub for set_clipboard_contents and get_clipboard_contents in libsimpleservo jniapi and libmlservo

This commit is contained in:
Michal Mieczkowski 2019-07-01 19:16:21 +02:00
parent 02d55885c8
commit 8da643d998
2 changed files with 12 additions and 0 deletions

View file

@ -354,6 +354,12 @@ impl HostTrait for HostCallbacks {
fn on_ime_state_changed(&self, show: bool) {
(self.keyboard.0)(self.app, show)
}
fn get_clipboard_contents(&self) -> Option<String> {
unimplemented!()
}
fn set_clipboard_contents(&self, contents: String) {}
}
pub struct ServoInstance {

View file

@ -457,6 +457,12 @@ impl HostTrait for HostCallbacks {
}
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) {