Chromium Code Reviews| Index: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.idl |
| diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.idl b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.idl |
| index ab9840d907f36f04175ed659d10998481dbd67a9..0cc35548dc251d890f43ef65b0eefdef4f5a7455 100644 |
| --- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.idl |
| +++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.idl |
| @@ -23,11 +23,18 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| +// http://w3c.github.io/deviceorientation/spec-source-orientation.html#deviceorientation |
| + |
| +// TODO(philipj): DeviceMotionEvent should have a constructor. |
|
timvolodine
2015/10/02 11:47:17
-> DeviceOrientationEvent
|
| interface DeviceOrientationEvent : Event { |
| readonly attribute double? alpha; |
| readonly attribute double? beta; |
| readonly attribute double? gamma; |
| + // TODO(philipj): absolute should not be nullable. |
| readonly attribute boolean? absolute; |
| + |
| + // TODO(philipj): The init*Event() methods are not in the spec: |
| + // https://github.com/w3c/deviceorientation/issues/18 |
| [Measure] void initDeviceOrientationEvent([Default=Undefined] optional DOMString type, |
| [Default=Undefined] optional boolean bubbles, |
| [Default=Undefined] optional boolean cancelable, |