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

Side by Side Diff: sky/sdk/lib/painting/box_painter.dart

Issue 1232313002: Use package:sky imports consistently (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix BUILD.gn 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 unified diff | Download patch
« no previous file with comments | « sky/sdk/lib/mojo/shell.dart ('k') | sky/sdk/lib/rendering/auto_layout.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:math' as math; 6 import 'dart:math' as math;
7 import 'dart:sky' as sky; 7 import 'dart:sky' as sky;
8 import 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path; 8 import 'dart:sky' show Point, Offset, Size, Rect, Color, Paint, Path;
9 9
10 import '../base/lerp.dart'; 10 import 'package:sky/base/lerp.dart';
11 import 'shadows.dart'; 11 import 'package:sky/painting/shadows.dart';
12 12
13 class BorderSide { 13 class BorderSide {
14 const BorderSide({ 14 const BorderSide({
15 this.color: const Color(0xFF000000), 15 this.color: const Color(0xFF000000),
16 this.width: 1.0 16 this.width: 1.0
17 }); 17 });
18 final Color color; 18 final Color color;
19 final double width; 19 final double width;
20 20
21 static const none = const BorderSide(width: 0.0); 21 static const none = const BorderSide(width: 0.0);
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 path.close(); 380 path.close();
381 canvas.drawPath(path, paint); 381 canvas.drawPath(path, paint);
382 } 382 }
383 383
384 void paint(sky.Canvas canvas, Rect rect) { 384 void paint(sky.Canvas canvas, Rect rect) {
385 _paintBackgroundColor(canvas, rect); 385 _paintBackgroundColor(canvas, rect);
386 _paintBackgroundImage(canvas, rect); 386 _paintBackgroundImage(canvas, rect);
387 _paintBorder(canvas, rect); 387 _paintBorder(canvas, rect);
388 } 388 }
389 } 389 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/mojo/shell.dart ('k') | sky/sdk/lib/rendering/auto_layout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698