Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: Source/core/events/MouseEventInit.idl

Issue 1159113007: Sync event interfaces with the UI Events spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // http://www.w3.org/TR/DOM-Level-3-Events/#interface-MouseEvent 5 // https://w3c.github.io/uievents/#idl-def-MouseEventInit
6 // Note: this event init is somewhat different from the spec for compatibility r eason.
7 6
8 dictionary MouseEventInit : SharedKeyboardAndMouseEventInit { 7 dictionary MouseEventInit : EventModifierInit {
9 long screenX = 0; 8 long screenX = 0;
10 long screenY = 0; 9 long screenY = 0;
11 long clientX = 0; 10 long clientX = 0;
12 long clientY = 0; 11 long clientY = 0;
12 // TODO(philipj): button should be short, not unsigned short.
13 unsigned short button = 0; 13 unsigned short button = 0;
14 unsigned short buttons = 0; 14 unsigned short buttons = 0;
15 EventTarget? relatedTarget = null; 15 EventTarget? relatedTarget = null;
16 16
17 // Pointer Lock
17 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-mouseeventinit-dictionary 18 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-mouseeventinit-dictionary
18 long movementX = 0; 19 long movementX = 0;
19 long movementY = 0; 20 long movementY = 0;
20 }; 21 };
OLDNEW
« no previous file with comments | « Source/core/events/MouseEvent.idl ('k') | Source/core/events/SharedKeyboardAndMouseEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698