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

Side by Side Diff: sky/specs/pointer.md

Issue 943843002: Specs: fix a raft of syntax errors caught by actually running a syntax checker... (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/specs/modules.md ('k') | sky/specs/script.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Pointer Events 1 Pointer Events
2 ============== 2 ==============
3 3
4 Scope 4 Scope
5 ----- 5 -----
6 6
7 The following input devices are supported by sky: 7 The following input devices are supported by sky:
8 - fingers on multitouch screens 8 - fingers on multitouch screens
9 - mice, including mouse wheels 9 - mice, including mouse wheels
10 - styluses on screens 10 - styluses on screens
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 class PointerUpEvent extends PointerEvent<Null> { 428 class PointerUpEvent extends PointerEvent<Null> {
429 PointerUpEvent = PointerEvent; 429 PointerUpEvent = PointerEvent;
430 bool get bubbles => false; 430 bool get bubbles => false;
431 } 431 }
432 432
433 class PointerMovedEvent extends PointerEvent<Null> { 433 class PointerMovedEvent extends PointerEvent<Null> {
434 PointerMovedEvent = PointerEvent; 434 PointerMovedEvent = PointerEvent;
435 bool get bubbles => false; 435 bool get bubbles => false;
436 } 436 }
437 /*
437 ``` 438 ```
438 439
439 Wheel events 440 Wheel events
440 ------------ 441 ------------
441 442
442 When a wheel input device is turned, a ``WheelEvent`` event that 443 When a wheel input device is turned, a ``WheelEvent`` event that
443 doesn't bubble is fired at the application's element tree's root node, 444 doesn't bubble is fired at the application's element tree's root node,
444 with the following fields: 445 with the following fields:
445 446
446 wheel: an integer assigned to this wheel by the system. The 447 wheel: an integer assigned to this wheel by the system. The
(...skipping 16 matching lines...) Expand all
463 x: x-position relative to the top-left corner of the 464 x: x-position relative to the top-left corner of the
464 display, in global layout coordinates 465 display, in global layout coordinates
465 466
466 y: x-position relative to the top-left corner of the 467 y: x-position relative to the top-left corner of the
467 display, in global layout coordinates 468 display, in global layout coordinates
468 469
469 Note: The only wheels that are supported are mouse wheels and physical 470 Note: The only wheels that are supported are mouse wheels and physical
470 dials. Track balls are not reported as mouse wheels. 471 dials. Track balls are not reported as mouse wheels.
471 472
472 ```dart 473 ```dart
474 */
473 class WheelEvent extends Event { 475 class WheelEvent extends Event {
474 Event({ this.wheel, 476 WheelEvent({ this.wheel,
475 this.delta: 0.0, 477 this.delta: 0.0,
476 this.pointer, 478 this.pointer,
477 this.x, this.y, 479 this.x, this.y
478 }): super(); 480 }): super();
479 481
480 final int wheel; 482 final int wheel;
481 final double delta; // revolutions (or fractions thereof) 483 final double delta; // revolutions (or fractions thereof)
482 final int pointer; 484 final int pointer;
483 final double x; // logical pixels 485 final double x; // logical pixels
484 final double y; // logical pixels 486 final double y; // logical pixels
485 487
486 bool get bubbles => false; 488 bool get bubbles => false;
487 } 489 }
488 ``` 490 ```
OLDNEW
« no previous file with comments | « sky/specs/modules.md ('k') | sky/specs/script.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698