aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetooth.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename Promise::new to Promise::new_in_current_compartmentAron Zwaan2019-04-031-3/+6
|
* Remove now-unnecessary must_root and allow(unrooted_must_root) annotationsManish Goregaokar2019-01-041-3/+0
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+1
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Format remaining filesPyfisch2018-11-061-2/+4
|
* Sort `use` statementsSimon Sapin2018-11-061-2/+3
|
* `cargo fix --edition`Simon Sapin2018-11-061-21/+21
|
* Format script componentchansuke2018-09-191-103/+182
|
* Updates Bluetooth type to use BufferSourceAnthony Urena2018-03-241-3/+11
|
* Implements profiler for blocked recvNakul Jindal2018-03-221-1/+2
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Replace uses of libcore with libstd in components/scriptSimon Sapin2017-10-161-1/+0
|
* Remove use of unstable box syntax.Simon Sapin2017-10-161-3/+3
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-2/+2
| | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
* Rename DOMRefCell<T> to DomRefCell<T>Anthony Ramine2017-09-261-6/+6
| | | | | | | | I don't want to do such a gratuitous rename, but with all the other types now having "Dom" as part of their name, and especially with "DomOnceCell", I feel like the other cell type that we already have should also follow the convention. That argument loses weight though when we realise there is still DOMString and other things.
* Rename JS<T> to Dom<T>Anthony Ramine2017-09-261-5/+5
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Remove JSContext argument from AsyncBluetoothListener::handle_responseAnthony Ramine2017-09-221-11/+8
|
* Make Promise::reject_error soundAnthony Ramine2017-09-221-21/+30
|
* Make Promise::resolve_native actually soundAnthony Ramine2017-09-211-5/+5
| | | | | We shouldn't have to pass a raw JSContext pointer, and to enter the promise's context's compartment by hand.
* Introduce TaskOnceAnthony Ramine2017-09-201-7/+6
| | | | | Having both TaskBox and TaskOnce allows us to remove the superfluous inner boxing from CancellableTask<T>.
* Rename Task to TaskBoxAnthony Ramine2017-09-201-3/+3
|
* Move Task to its own moduleAnthony Ramine2017-09-181-1/+1
|
* Rename Runnable to TaskAnthony Ramine2017-09-161-6/+9
| | | | | | | | | | | | The changes are: * `*Runnable` -> `*Task`; * `RunnableMsg` -> `Task`; * `RunnableWrapper` -> `TaskCanceller`; * `MainThreadRunnable` -> `MainThreadTask`; * `wrap_runnable` -> `wrap_task`; * `get_runnable_wrapper` -> `task_canceller`; * `handler` -> `run`; * `main_thread_handler` -> `run_with_script_thread`.
* Use absolute paths in the event handlers macrosAnthony Ramine2017-09-011-1/+0
|
* Untry scriptSimon Sapin2017-06-181-4/+4
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* refactor extra permission dataAttila Dusnoki2017-02-141-54/+17
|
* Move extra permission data to windowAttila Dusnoki2017-02-131-26/+46
|
* Fix BluetoothPermissionResult return stateAttila Dusnoki2017-02-131-2/+2
|
* Use rooted_vec instead of Vec<JS<T>>Zakor Gyula2017-02-131-5/+4
|
* Add pref to ignore popup in testingAttila Dusnoki2017-02-131-6/+4
|
* Fix comments, and lesser modificationsZakor Gyula2017-02-131-8/+7
|
* Bluetooth Permission API integrationZakor Gyula2017-02-131-8/+221
|
* Implement GetAvailability for BluetoothAttila Dusnoki2017-02-081-0/+17
|
* Remove the 29 byte length restriction, when requesting bluetooth devicesZakor Gyula2017-02-031-12/+1
|
* Cleaned up ripples due to MutJS to JS type changePrudhvi Rampey2017-01-071-5/+5
|
* Auto merge of #14612 - szeged:connect-disconnect-update, r=jdmbors-servo2016-12-221-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating GATTServer's Connect/Disconnect calls <!-- Please describe your changes on the following line: --> Added the missing [Step 5.2.3](https://github.com/servo/servo/compare/master...szeged:connect-disconnect-update#diff-1dbe29f87740f5aec93f37adbecace6cR213) to the `connect` function. Updated the [disconnect](https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattserver-disconnect) function to its current state in the specification, including the `clean_up_disconnected_device` and the `garbage_collect_the connection` functions. Added new tests for checking the invalid state of JS objects after disconnection. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14612) <!-- Reviewable:end -->
| * refactor Connect/Disconnect callsZakor Gyula2016-12-221-0/+4
| |
* | Separate the async bluetooth handling from networking code.Ms2ger2016-12-211-11/+25
|/ | | | | | | | | They're not at all related, besides both being asynchronous. This change adds a little extra code in response_async(), but makes this code more readable and reduces the unnecessary indirection. This change also makes the build system slightly more parallel, by dropping the dependency on bluetooth_traits from net_traits.
* Implement GetGATTChildrenAttila Dusnoki2016-12-161-3/+54
|
* Replace AdvertisingData with AdvertisingEventAttila Dusnoki2016-12-141-6/+0
|
* Remove HeapGCValueAnthony Ramine2016-12-121-3/+3
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-5/+5
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Moved the AttributeInstanceMaps from bluetooth to bluetoothDevice.Valentin Fokin2016-12-021-22/+0
|
* Step annotations for WebBluetooth functionsZakor Gyula2016-11-291-11/+11
|
* Update requestDevice step annotations.Zakor Gyula2016-11-291-22/+51
|
* Move convert_request_device_options into request_bluetooth_devices.Zakor Gyula2016-11-291-48/+46
|
* Add event target for bluetoothAttila Dusnoki2016-11-281-3/+8
|
* serviceData and manufacturerData supportzakorgyula2016-11-231-27/+68
|