diff options
author | OJ Kwon <kwon.ohjoong@gmail.com> | 2018-04-06 12:57:18 -0700 |
---|---|---|
committer | OJ Kwon <kwon.ohjoong@gmail.com> | 2018-04-18 11:39:33 -0700 |
commit | 5574b4212632dfbf661a7813ccd9cc670c23a0d0 (patch) | |
tree | a4b5438cdb61d399dcdd1362575fee4845c11b2e /components | |
parent | 6fa74133ddb2410af65ea3058ef0737e436b51fd (diff) | |
download | servo-5574b4212632dfbf661a7813ccd9cc670c23a0d0.tar.gz servo-5574b4212632dfbf661a7813ccd9cc670c23a0d0.zip |
feat(constellation): add handler for scriptmsg
Diffstat (limited to 'components')
-rw-r--r-- | components/constellation/constellation.rs | 9 |
1 files 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<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) { |