diff --git a/index.html b/index.html index ced4382..1121018 100644 --- a/index.html +++ b/index.html @@ -161,10 +161,6 @@

Pressure sources

global system thermals and the central [=processing unit=], also known as the CPU. Future levels of this specification MAY introduce additional [=source types=].

-

- If a [=virtual pressure source=] exists, the [=supported source types=] is equal to the - [=source types=] [=map/keys=] in the [=virtual pressure source mapping=] [=ordered map=]. -

       enum PressureSource { "thermals", "cpu" };
     
@@ -1098,10 +1094,10 @@

Data Collection and Delivery

- The data collection steps given |relevantGlobal| as input, is run when + The data collection steps given |relevantGlobal| as input, are run when the |relevantGlobal| associated [=platform collector=] needs to obtain new |data| for a [=source type=] |source:PressureSource| and are as follows:

    @@ -1730,17 +1726,6 @@

    yes - - - samples - - - Array of strings - - - yes - -

    The [=remote end steps=] given |session|, |URL variables| and |parameters| are: @@ -1760,24 +1745,6 @@

  1. If |sampleInterval| is not an Number, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
  2. -
  3. - Let |samples| be the result of invoking - get a property "samples" from |parameters|. -
  4. -
  5. - If |samples| is not an Array, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=]. -
  6. -
  7. - For each |sample| in |samples|: -
      -
    1. - If |sample| is not a [=string=] and a valid {{PressureState}}, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=]. -
    2. -
    3. - [=queue/Enqueue=] |sample| to |virtualPressureSource|'s [=pending samples=]. -
    4. -
    -
  8. Let |topLevelTraversable| be the current browsing context's [=browsing context/top-level traversable=]. @@ -1832,8 +1799,8 @@

    - This [=extension command=] deletes a given [=source type=] of [=virtual pressure source=] and returns - pressure source updates back to hardware. + This [=extension command=] deletes a given [=source type=] of [=virtual pressure source=], meaning that, + if available, data will be delivered the regular way, by non-virtual means.

    The [=remote end steps=] given |session|, |URL variables| and |parameters| are: @@ -1842,6 +1809,9 @@

  9. Let |virtualPressureSourceType| be the value of the |URL variables|["type"].
  10. +
  11. + If |virtualPressureSourceType| is not a [=valid source type=], return [=error=] with [=error code|WebDriver error code=] [=invalid argument=]. +
  12. Let |topLevelTraversable| be the current browsing context's [=browsing context/top-level traversable=]. @@ -1850,8 +1820,7 @@

    Let |topLevelVirtualPressureSourceMapping| be the |topLevelTraversable|'s [=virtual pressure source mapping=].

  13. - Remove |topLevelVirtualPressureSourceMapping|[|virtualPressureSourceType|] and any data associated with its - [=virtual pressure source=]. + [map/Remove] |topLevelVirtualPressureSourceMapping|[|virtualPressureSourceType|].
  14. Return [=success=] with data null. @@ -1925,7 +1894,7 @@

    Let |virtualPressureSourceType| be the value of the |URL variables|["type"].

  15. - If |virtualPressureSourceType| is not a [=string=], return [=error=] with [=error code|WebDriver error code=] [=invalid argument=]. + If |virtualPressureSourceType| is not a [=valid source type=], return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
  16. Let |topLevelTraversable| be the current browsing @@ -1955,6 +1924,9 @@

  17. If |sample| is not a [=string=] and a valid {{PressureState}}, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
  18. +

+ For each |sample| in |samples|: +
  1. [=queue/Enqueue=] |sample| to |virtualPressureSource|'s [=pending samples=].