Skip to content

Commit

Permalink
Add stub for set_clipboard_contents and get_clipboard_contents in lib…
Browse files Browse the repository at this point in the history
…simpleservo jniapi and libmlservo
  • Loading branch information
mmiecz committed Jul 1, 2019
1 parent 02d5588 commit 8da643d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ports/libmlservo/src/lib.rs
Expand Up @@ -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 {
Expand Down
6 changes: 6 additions & 0 deletions ports/libsimpleservo/jniapi/src/lib.rs
Expand Up @@ -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) {
Expand Down

0 comments on commit 8da643d

Please sign in to comment.