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

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

Issue 1201193005: Move UIEvent.pageX/pageY/layerX/layerY to MouseEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase again; UseCounter changed already again Created 5 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 [Default=Undefined] optional boolean altK ey, 51 [Default=Undefined] optional boolean altK ey,
52 [Default=Undefined] optional boolean shif tKey, 52 [Default=Undefined] optional boolean shif tKey,
53 [Default=Undefined] optional boolean meta Key, 53 [Default=Undefined] optional boolean meta Key,
54 [Default=Undefined] optional unsigned sho rt button, 54 [Default=Undefined] optional unsigned sho rt button,
55 [Default=Undefined] optional EventTarget? relatedTarget); 55 [Default=Undefined] optional EventTarget? relatedTarget);
56 56
57 // CSSOM View Module 57 // CSSOM View Module
58 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-mouseevent-interfac e 58 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-mouseevent-interfac e
59 // TODO(philipj): These attributes should be of type double, and the spec 59 // TODO(philipj): These attributes should be of type double, and the spec
60 // also redefines screenX/Y and clientX/Y as double. 60 // also redefines screenX/Y and clientX/Y as double.
61 readonly attribute long pageX;
62 readonly attribute long pageY;
61 [MeasureAs=MouseEventX] readonly attribute long x; 63 [MeasureAs=MouseEventX] readonly attribute long x;
62 [MeasureAs=MouseEventY] readonly attribute long y; 64 [MeasureAs=MouseEventY] readonly attribute long y;
63 [MeasureAs=MouseEventOffsetX] readonly attribute long offsetX; 65 [MeasureAs=MouseEventOffsetX] readonly attribute long offsetX;
64 [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY; 66 [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY;
65 67
66 // Pointer Lock 68 // Pointer Lock
67 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-mouseevent-interface 69 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-mouseevent-interface
68 [MeasureAs=MouseEventMovementX] readonly attribute long movementX; 70 [MeasureAs=MouseEventMovementX] readonly attribute long movementX;
69 [MeasureAs=MouseEventMovementY] readonly attribute long movementY; 71 [MeasureAs=MouseEventMovementY] readonly attribute long movementY;
70 72
71 // Non-standard 73 // Non-standard
72 [MeasureAs=MouseEventFromElement] readonly attribute Node fromElement; 74 [MeasureAs=MouseEventFromElement] readonly attribute Node fromElement;
73 [MeasureAs=MouseEventToElement] readonly attribute Node toElement; 75 [MeasureAs=MouseEventToElement] readonly attribute Node toElement;
74 [MeasureAs=MouseEventWhich] readonly attribute long which; 76 [MeasureAs=MouseEventWhich] readonly attribute long which;
75 [DeprecateAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly attribute long webkitMovementX; 77 [DeprecateAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly attribute long webkitMovementX;
76 [DeprecateAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly attribute long webkitMovementY; 78 [DeprecateAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly attribute long webkitMovementY;
79 [Measure] readonly attribute long layerX;
80 [Measure] readonly attribute long layerY;
77 81
78 // FIXME: dataTransfer belongs on the DragEvent interface. crbug.com/498504 82 // FIXME: dataTransfer belongs on the DragEvent interface. crbug.com/498504
79 readonly attribute DataTransfer dataTransfer; 83 readonly attribute DataTransfer dataTransfer;
80 }; 84 };
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/events/MouseRelatedEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698