feat(constellation): add handler for scriptmsg

This commit is contained in:
OJ Kwon 2018-04-06 12:57:18 -07:00
parent 6fa74133dd
commit 5574b42126
No known key found for this signature in database
GPG key ID: FFCFEF3460FD1901

View file

@ -931,8 +931,13 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
} }
} }
fn handle_request_from_bluetoothmanager(&mut self, message:BluetoothManagerMsg) { fn handle_request_from_bluetoothmanager(&mut self, message: BluetoothManagerMsg) {
match message {
BluetoothManagerMsg::OpenDeviceSelectDialog(devices, sender) => {
let msg = EmbedderMsg::GetSelectedBluetoothDevice(devices, sender);
self.embedder_proxy.send(msg);
}
}
} }
fn handle_request_from_compositor(&mut self, message: FromCompositorMsg) { fn handle_request_from_compositor(&mut self, message: FromCompositorMsg) {