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

Side by Side Diff: lib/html/doc/interface/MouseEvent.dartdoc

Issue 10867073: Adding polyfills for MouseEvent.offsetX and MouseEvent.offsetY so they work on FF. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding doc comments and unit test.wq Created 8 years, 3 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
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | tests/html/event_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: 5 // WARNING:
6 // This file contains documentation that is merged into the real source. 6 // This file contains documentation that is merged into the real source.
7 // Do not make code changes here. 7 // Do not make code changes here.
8 8
9 /// @domName MouseEvent 9 /// @domName MouseEvent
10 interface MouseEvent extends UIEvent default _MouseEventFactoryProvider { 10 interface MouseEvent extends UIEvent default _MouseEventFactoryProvider {
(...skipping 21 matching lines...) Expand all
32 32
33 /** @domName MouseEvent.dataTransfer */ 33 /** @domName MouseEvent.dataTransfer */
34 final Clipboard dataTransfer; 34 final Clipboard dataTransfer;
35 35
36 /** @domName MouseEvent.fromElement */ 36 /** @domName MouseEvent.fromElement */
37 final Node fromElement; 37 final Node fromElement;
38 38
39 /** @domName MouseEvent.metaKey */ 39 /** @domName MouseEvent.metaKey */
40 final bool metaKey; 40 final bool metaKey;
41 41
42 /** @domName MouseEvent.offsetX */ 42 /**
43 * The X coordinate of the mouse pointer in target node coordinates.
44 * This value may vary between platforms if the target node moves
45 * after the event has fired or if the element has CSS transforms affecting
46 * it.
47 */
43 final int offsetX; 48 final int offsetX;
44 49
45 /** @domName MouseEvent.offsetY */ 50 /**
51 * The Y coordinate of the mouse pointer in target node coordinates.
52 * This value may vary between platforms if the target node moves
53 * after the event has fired or if the element has CSS transforms affecting
54 * it.
55 */
46 final int offsetY; 56 final int offsetY;
47 57
48 /** @domName MouseEvent.relatedTarget */ 58 /** @domName MouseEvent.relatedTarget */
49 final EventTarget relatedTarget; 59 final EventTarget relatedTarget;
50 60
51 /** @domName MouseEvent.screenX */ 61 /** @domName MouseEvent.screenX */
52 final int screenX; 62 final int screenX;
53 63
54 /** @domName MouseEvent.screenY */ 64 /** @domName MouseEvent.screenY */
55 final int screenY; 65 final int screenY;
(...skipping 12 matching lines...) Expand all
68 78
69 /** @domName MouseEvent.x */ 79 /** @domName MouseEvent.x */
70 final int x; 80 final int x;
71 81
72 /** @domName MouseEvent.y */ 82 /** @domName MouseEvent.y */
73 final int y; 83 final int y;
74 84
75 /** @domName MouseEvent.initMouseEvent */ 85 /** @domName MouseEvent.initMouseEvent */
76 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlK ey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTar get); 86 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlK ey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTar get);
77 } 87 }
OLDNEW
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | tests/html/event_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698