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

Unified Diff: sky/specs/pointer.md

Issue 884713009: Specs: dartification of dom.md, more work on script.md; this is highly work-in-progress and hasn't … (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/specs/modules.md ('k') | sky/specs/script.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/pointer.md
diff --git a/sky/specs/pointer.md b/sky/specs/pointer.md
index c202692d2822ba62fc78a48f9efd8da074819996..d3a18c222baabe020ccb4d1c87c5bea061f81432 100644
--- a/sky/specs/pointer.md
+++ b/sky/specs/pointer.md
@@ -363,10 +363,10 @@ abstract class PointerEvent<T> extends Event<T> {
final PointerKind kind;
final double x; // logical pixels
final double y; // logical pixels
- final double dx; // logical pixels
- final double dy; // logical pixels
+ final @nonnull double dx; // logical pixels
+ final @nonnull double dy; // logical pixels
- final int buttons; // bit field
+ final @nonnull int buttons; // bit field
static const int primaryMouseButton = 0x01;
static const int secondaryMouseButton = 0x02;
static const int primaryStylusButton = 0x02;
@@ -375,9 +375,9 @@ abstract class PointerEvent<T> extends Event<T> {
static const int backButton = 0x08;
static const int forwardButton = 0x10;
- final bool down;
- final bool primary;
- final bool obscured;
+ final @nonnull bool down;
+ final @nonnull bool primary;
+ final @nonnull bool obscured;
// if down != true, these are all null
final double pressure; // normalised, 0.0 means none, 1.0 means "normal"
@@ -476,7 +476,7 @@ class WheelEvent extends Event {
}): super(bubbles: bubbles);
final int wheel;
- final double delta; // revolutions (or fractions thereof)
+ final @nonnull double delta; // revolutions (or fractions thereof)
final int pointer;
final double x; // logical pixels
final double y; // logical pixels
« 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