@@ -161,10 +161,6 @@ <h3>Pressure sources</h3>
161
161
< em > global system thermals</ em > and the < em > central [=processing unit=]</ em > , also known as the CPU.
162
162
Future levels of this specification MAY introduce additional [=source types=].
163
163
</ p >
164
- < p >
165
- If a [=virtual pressure source=] exists, the [=supported source types=] is equal to the
166
- [=source types=] [=map/keys=] in the [=virtual pressure source mapping=] [=ordered map=].
167
- </ p >
168
164
< pre class ="idl ">
169
165
enum PressureSource { "thermals", "cpu" };
170
166
</ pre >
@@ -1098,10 +1094,10 @@ <h3>Data Collection and Delivery</h3>
1098
1094
</ p >
1099
1095
< aside class ="note ">
1100
1096
It is recommended that the [=platform collector=] suspends low-level data collection
1101
- when there is no active [=data collection=] to any {{PressureObserver}} [=relevant global object=].
1097
+ when there is no active [=data collection=] to any {{PressureObserver}}'s [=relevant global object=].
1102
1098
</ aside >
1103
1099
< p >
1104
- The < dfn > data collection</ dfn > steps given |relevantGlobal| as input, is run when
1100
+ The < dfn > data collection</ dfn > steps given |relevantGlobal| as input, are run when
1105
1101
the |relevantGlobal| associated [=platform collector=] needs to obtain new |data|
1106
1102
for a [=source type=] |source:PressureSource| and are as follows:
1107
1103
< ol >
@@ -1730,17 +1726,6 @@ <h4>
1730
1726
yes
1731
1727
</ td >
1732
1728
</ tr >
1733
- < tr >
1734
- < td >
1735
- samples
1736
- </ td >
1737
- < td >
1738
- Array of strings
1739
- </ td >
1740
- < td >
1741
- yes
1742
- </ td >
1743
- </ tr >
1744
1729
</ table >
1745
1730
< p >
1746
1731
The [=remote end steps=] given |session|, |URL variables| and |parameters| are:
@@ -1760,24 +1745,6 @@ <h4>
1760
1745
< li >
1761
1746
If |sampleInterval| is not an Number, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1762
1747
</ li >
1763
- < li >
1764
- Let |samples| be the result of invoking
1765
- < a data-cite ="!WEBDRIVER2#dfn-getting-properties "> get a property</ a > "samples" from |parameters|.
1766
- </ li >
1767
- < li >
1768
- If |samples| is not an Array, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1769
- </ li >
1770
- < li >
1771
- For each |sample| in |samples|:
1772
- < ol >
1773
- < li >
1774
- If |sample| is not a [=string=] and a valid {{PressureState}}, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1775
- </ li >
1776
- < li >
1777
- [=queue/Enqueue=] |sample| to |virtualPressureSource|'s [=pending samples=].
1778
- </ li >
1779
- </ ol >
1780
- </ li >
1781
1748
< li >
1782
1749
Let |topLevelTraversable| be the < a data-cite ="webdriver2/#dfn-current-browsing-context "> current browsing
1783
1750
context</ a > 's [=browsing context/top-level traversable=].
@@ -1832,8 +1799,8 @@ <h4>
1832
1799
</ tr >
1833
1800
</ table >
1834
1801
< p >
1835
- This [=extension command=] deletes a given [=source type=] of [=virtual pressure source=] and returns
1836
- pressure source updates back to hardware .
1802
+ This [=extension command=] deletes a given [=source type=] of [=virtual pressure source=], meaning that,
1803
+ if available, data will be delivered the regular way, by non-virtual means .
1837
1804
</ p >
1838
1805
< p >
1839
1806
The [=remote end steps=] given |session|, |URL variables| and |parameters| are:
@@ -1842,6 +1809,9 @@ <h4>
1842
1809
< li >
1843
1810
Let |virtualPressureSourceType| be the value of the |URL variables|["type"].
1844
1811
</ li >
1812
+ < li >
1813
+ If |virtualPressureSourceType| is not a [=valid source type=], return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1814
+ </ li >
1845
1815
< li >
1846
1816
Let |topLevelTraversable| be the < a data-cite ="webdriver2/#dfn-current-browsing-context "> current browsing
1847
1817
context</ a > 's [=browsing context/top-level traversable=].
@@ -1850,8 +1820,7 @@ <h4>
1850
1820
Let |topLevelVirtualPressureSourceMapping| be the |topLevelTraversable|'s [=virtual pressure source mapping=].
1851
1821
</ li >
1852
1822
< li >
1853
- Remove |topLevelVirtualPressureSourceMapping|[|virtualPressureSourceType|] and any data associated with its
1854
- [=virtual pressure source=].
1823
+ [map/Remove] |topLevelVirtualPressureSourceMapping|[|virtualPressureSourceType|].
1855
1824
</ li >
1856
1825
< li >
1857
1826
Return [=success=] with data < code > null</ code > .
@@ -1925,7 +1894,7 @@ <h4>
1925
1894
Let |virtualPressureSourceType| be the value of the |URL variables|["type"].
1926
1895
</ li >
1927
1896
< li >
1928
- If |virtualPressureSourceType| is not a [=string =], return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1897
+ If |virtualPressureSourceType| is not a [=valid source type =], return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1929
1898
</ li >
1930
1899
< li >
1931
1900
Let |topLevelTraversable| be the < a data-cite ="webdriver2/#dfn-current-browsing-context "> current browsing
@@ -1955,6 +1924,9 @@ <h4>
1955
1924
< li >
1956
1925
If |sample| is not a [=string=] and a valid {{PressureState}}, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1957
1926
</ li >
1927
+ </ ol >
1928
+ For each |sample| in |samples|:
1929
+ < ol >
1958
1930
< li >
1959
1931
[=queue/Enqueue=] |sample| to |virtualPressureSource|'s [=pending samples=].
1960
1932
</ li >
0 commit comments