diff --git a/index.html b/index.html index e3386bf..1c22785 100644 --- a/index.html +++ b/index.html @@ -5,12 +5,10 @@ Gyroscope - - + - - - + - + - + - + - - + - - + - - +

Gyroscope

-

Editor’s Draft,

+

Editor’s Draft,

More details about this document
@@ -851,7 +915,7 @@

Gyroscope

- +
@@ -878,7 +942,7 @@

public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.

-

This document is governed by the 2 November 2021 W3C Process Document.

+

This document is governed by the 12 June 2023 W3C Process Document.

This document is maintained and updated at any time. Some parts of this document are work in progress.

@@ -911,11 +975,7 @@

Table of Contents

  1. 7.1 Construct a Gyroscope object
-
  • - 8 Automation -
      -
    1. 8.1 Mock Sensor Type -
    +
  • 8 Automation
  • 9 Acknowledgements
  • 10 Conformance
  • @@ -970,22 +1030,6 @@

    5. The Gyroscope is a powerful feature that is identified by the name "gyroscope", which is also its associated sensor permission name. Its permission revocation algorithm is the result of calling the generic sensor permission revocation algorithm with "gyroscope".

    -
    - -
    -

    Headers/Feature-Policy/gyroscope

    -

    In only one current engine.

    -
    - FirefoxNoneSafariNoneChrome67+ -
    - Opera?Edge79+ -
    - Edge (Legacy)?IENone -
    - Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile? -
    -
    -

    The Gyroscope is a policy-controlled feature identified by the string "gyroscope". Its default allowlist is 'self'.

    A latest reading of a Sensor of Gyroscope sensor type includes three entries whose keys are "x", "y", "z" and whose values contain current angular velocity about the corresponding axes.

    @@ -1001,38 +1045,6 @@

    device coordinate system or the screen coordinate system.

    6. API

    6.1. The Gyroscope Interface

    -
    - -
    -

    Gyroscope

    -

    In only one current engine.

    -
    - FirefoxNoneSafariNoneChrome67+ -
    - Opera?Edge79+ -
    - Edge (Legacy)?IENone -
    - Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile? -
    -
    -
    -
    - -
    -

    Gyroscope/Gyroscope

    -

    In only one current engine.

    -
    - FirefoxNoneSafariNoneChrome67+ -
    - Opera?Edge79+ -
    - Edge (Legacy)?IENone -
    - Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile? -
    -
    -
    [SecureContext, Exposed=Window]
     interface Gyroscope : Sensor {
       constructor(optional GyroscopeSensorOptions sensorOptions = {});
    @@ -1052,60 +1064,12 @@ 

    Supported sensor options for Gyroscope are "frequency" and "referenceFrame".

    6.1.1. Gyroscope.x

    -
    - -
    -

    Gyroscope/x

    -

    In only one current engine.

    -
    - FirefoxNoneSafariNoneChrome67+ -
    - Opera?Edge79+ -
    - Edge (Legacy)?IENone -
    - Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile? -
    -
    -

    The x attribute of the Gyroscope interface represents the current angular velocity around X-axis. In other words, this attribute returns the result of invoking get value from latest reading with this and "x" as arguments.

    6.1.2. Gyroscope.y

    -
    - -
    -

    Gyroscope/y

    -

    In only one current engine.

    -
    - FirefoxNoneSafariNoneChrome67+ -
    - Opera?Edge79+ -
    - Edge (Legacy)?IENone -
    - Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile? -
    -
    -

    The y attribute of the Gyroscope interface represents the current angular velocity around Y-axis. In other words, this attribute returns the result of invoking get value from latest reading with this and "y" as arguments.

    6.1.3. Gyroscope.z

    -
    - -
    -

    Gyroscope/z

    -

    In only one current engine.

    -
    - FirefoxNoneSafariNoneChrome67+ -
    - Opera?Edge79+ -
    - Edge (Legacy)?IENone -
    - Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile? -
    -
    -

    The z attribute of the Gyroscope interface represents the current angular velocity around Z-axis. In other words, this attribute returns the result of invoking get value from latest reading with this and "z" as arguments.

    7. Abstract Operations

    @@ -1145,16 +1109,16 @@

    8. Automation

    - This section extends the automation section defined in the Generic Sensor API [GENERIC-SENSOR] to provide mocking information about the rate of rotation around the device’s local three primary axes -for the purposes of testing a user agent’s implementation of Gyroscope API. -

    8.1. Mock Sensor Type

    -

    The Gyroscope class has an associated mock sensor type which is "gyroscope", its mock sensor reading values dictionary is defined as follows:

    -
    dictionary GyroscopeReadingValues {
    -  required double? x;
    -  required double? y;
    -  required double? z;
    -};
    -
    + This section extends Generic Sensor API § 9 Automation by providing Gyroscope-specific virtual sensor metadata. +

    The per-type virtual sensor metadata map must have the following entry:

    +
    +
    key +
    +

    "gyroscope"

    +
    value +
    +

    A virtual sensor metadata whose virtual sensor type is Gyroscope and reading parsing algorithm is parse xyz reading.

    +

    9. Acknowledgements

    Tobie Langel for the work on Generic Sensor API.

    10. Conformance

    @@ -1190,337 +1154,82 @@

    Gyroscope(), in § 6.1
  • GyroscopeLocalCoordinateSystem, in § 6.1 -
  • GyroscopeReadingValues, in § 8.1
  • Gyroscope(sensorOptions), in § 6.1
  • GyroscopeSensorOptions, in § 6.1
  • referenceFrame, in § 6.1
  • "screen", in § 6.1 -
  • - x - -
  • - y - -
  • - z - +
  • x, in § 6.1 +
  • y, in § 6.1 +
  • z, in § 6.1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Terms defined by reference

    • [ACCELEROMETER] defines the following terms:
        -
      • device coordinate system -
      • screen coordinate system +
      • device coordinate system +
      • screen coordinate system
    • [GENERIC-SENSOR] defines the following terms:
        -
      • "gyroscope" -
      • Sensor -
      • SensorOptions -
      • automation -
      • check sensor policy-controlled features -
      • default sensor -
      • eavesdropping -
      • fingerprinting -
      • generic mitigations -
      • generic sensor permission revocation algorithm -
      • get value from latest reading -
      • initialize a sensor object -
      • keylogging -
      • latest reading -
      • local coordinate system -
      • location tracking -
      • mock sensor reading values -
      • mock sensor type -
      • sensor permission name -
      • sensor reading -
      • sensor type -
      • supported sensor options -
      • user identifying +
      • Sensor +
      • SensorOptions +
      • check sensor policy-controlled features +
      • default sensor +
      • eavesdropping +
      • fingerprinting +
      • generic mitigations +
      • generic sensor permission revocation algorithm +
      • get value from latest reading +
      • initialize a sensor object +
      • keylogging +
      • latest reading +
      • local coordinate system +
      • location tracking +
      • parse xyz reading +
      • per-type virtual sensor metadata +
      • reading parsing algorithm +
      • sensor permission name +
      • sensor reading +
      • sensor type +
      • supported sensor options +
      • user identifying +
      • virtual sensor metadata +
      • virtual sensor type
    • [INFRA] defines the following terms:
        -
      • entry -
      • keys -
      • values +
      • entry +
      • key +
      • keys +
      • map +
      • value +
      • values
    • [PERMISSIONS] defines the following terms:
        -
      • name -
      • permission revocation algorithm -
      • powerful feature +
      • name +
      • permission revocation algorithm +
      • powerful feature
    • [PERMISSIONS-POLICY-1] defines the following terms:
        -
      • default allowlist -
      • policy-controlled feature +
      • default allowlist +
      • policy-controlled feature
    • [WEBIDL] defines the following terms:
        -
      • DOMException -
      • Exposed -
      • SecureContext -
      • SecurityError -
      • double -
      • throw +
      • DOMException +
      • Exposed +
      • SecureContext +
      • SecurityError +
      • double +
      • throw

    References

    @@ -1565,231 +1274,800 @@

    I GyroscopeLocalCoordinateSystem referenceFrame = "device"; }; -dictionary GyroscopeReadingValues { - required double? x; - required double? y; - required double? z; -}; -

  • - - - - - - - - - - - + - - + + + + \ No newline at end of file + function previousHighlightIndex(algoName, varName) { + return indexNames.get(algoName+"///"+varName); + } + function nameFromIndex(index) { + return "selected" + index; + } +} + \ No newline at end of file