From 5574b4212632dfbf661a7813ccd9cc670c23a0d0 Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Fri, 6 Apr 2018 12:57:18 -0700 Subject: [PATCH] feat(constellation): add handler for scriptmsg --- components/constellation/constellation.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index 305cc982986..b863421e825 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -931,8 +931,13 @@ impl Constellation } } - 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) {