OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // https://w3c.github.io/uievents/#idl-def-MouseEventInit | 5 // https://w3c.github.io/uievents/#idl-def-MouseEventInit |
6 | 6 |
7 dictionary MouseEventInit : EventModifierInit { | 7 dictionary MouseEventInit : EventModifierInit { |
8 long screenX = 0; | 8 long screenX = 0; |
9 long screenY = 0; | 9 long screenY = 0; |
10 long clientX = 0; | 10 long clientX = 0; |
11 long clientY = 0; | 11 long clientY = 0; |
12 // TODO(philipj): button should be short, not unsigned short. | 12 short button = 0; |
13 unsigned short button = 0; | |
14 unsigned short buttons = 0; | 13 unsigned short buttons = 0; |
15 EventTarget? relatedTarget = null; | 14 EventTarget? relatedTarget = null; |
16 | 15 |
17 // Pointer Lock | 16 // Pointer Lock |
18 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-mouseeventinit-dictionary | 17 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions
-to-the-mouseeventinit-dictionary |
19 long movementX = 0; | 18 long movementX = 0; |
20 long movementY = 0; | 19 long movementY = 0; |
21 }; | 20 }; |
OLD | NEW |