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

Unified Diff: sdk/lib/core/num.dart

Issue 2035453002: Pixels class prototype and test (not to be committed). Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: work in progress Created 4 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 | « runtime/vm/token.h ('k') | tests/language/vm/pixels_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/num.dart
diff --git a/sdk/lib/core/num.dart b/sdk/lib/core/num.dart
index 21f23eef18321ab7fc4b59aa397cdbb7ead0b0d6..f21be37f6c841d4921f55d15c83a6e812f2280fa 100644
--- a/sdk/lib/core/num.dart
+++ b/sdk/lib/core/num.dart
@@ -106,7 +106,7 @@ abstract class num implements Comparable<num> {
num operator %(num other);
/** Division operator. */
- double operator /(num other);
+ num operator /(num other);
/**
* Truncating division operator.
@@ -311,6 +311,9 @@ abstract class num implements Comparable<num> {
*/
double toDouble();
+ /** Return this [num] as a [pixels]. */
+ pixels toPixels();
+
/**
* Returns a decimal-point string-representation of `this`.
*
« no previous file with comments | « runtime/vm/token.h ('k') | tests/language/vm/pixels_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698