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

Unified Diff: sky/engine/core/painting/OffsetBase.dart

Issue 1223153004: Make the drawer, popup menus, dialogs, and settings page scrollable. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/sdk/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/OffsetBase.dart
diff --git a/sky/engine/core/painting/OffsetBase.dart b/sky/engine/core/painting/OffsetBase.dart
index 1f5a0cb5c90216e75d9598a2c8d6461d7151ad0a..8697abdbbcaf81e76c1bce49190596b7c3b7169d 100644
--- a/sky/engine/core/painting/OffsetBase.dart
+++ b/sky/engine/core/painting/OffsetBase.dart
@@ -12,6 +12,11 @@ abstract class OffsetBase {
bool get isInfinite => _dx >= double.INFINITY || _dy >= double.INFINITY;
+ bool operator <(OffsetBase other) => _dx < other._dx && _dy < other._dy;
+ bool operator <=(OffsetBase other) => _dx <= other._dx && _dy <= other._dy;
+ bool operator >(OffsetBase other) => _dx > other._dx && _dy > other._dy;
+ bool operator >=(OffsetBase other) => _dx > other._dx && _dy >= other._dy;
+
bool operator ==(other) {
return other is OffsetBase &&
other.runtimeType == runtimeType &&
« no previous file with comments | « no previous file | sky/sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698