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

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

Issue 1177383006: Rename all the things (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix imports Created 5 years, 6 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/framework/widgets/ui_node.dart ('k') | sky/sdk/lib/painting/shadows.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:math' as math; 5 import 'dart:math' as math;
6 import 'dart:sky' as sky; 6 import 'dart:sky' as sky;
7 import 'dart:sky' show Point, Size, Rect, Color, Paint, Path; 7 import 'dart:sky' show Point, Size, Rect, Color, Paint, Path;
8
8 import 'shadows.dart'; 9 import 'shadows.dart';
9 10
10 class BorderSide { 11 class BorderSide {
11 const BorderSide({ 12 const BorderSide({
12 this.color: const Color(0xFF000000), 13 this.color: const Color(0xFF000000),
13 this.width: 1.0 14 this.width: 1.0
14 }); 15 });
15 final Color color; 16 final Color color;
16 final double width; 17 final double width;
17 18
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 path = new Path(); 263 path = new Path();
263 path.moveTo(rect.left, rect.bottom); 264 path.moveTo(rect.left, rect.bottom);
264 path.lineTo(rect.left + _decoration.border.left.width, rect.bottom - _deco ration.border.bottom.width); 265 path.lineTo(rect.left + _decoration.border.left.width, rect.bottom - _deco ration.border.bottom.width);
265 path.lineTo(rect.left + _decoration.border.left.width, rect.top + _decorat ion.border.top.width); 266 path.lineTo(rect.left + _decoration.border.left.width, rect.top + _decorat ion.border.top.width);
266 path.lineTo(rect.left, rect.top); 267 path.lineTo(rect.left, rect.top);
267 path.close(); 268 path.close();
268 canvas.drawPath(path, paint); 269 canvas.drawPath(path, paint);
269 } 270 }
270 } 271 }
271 } 272 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/widgets/ui_node.dart ('k') | sky/sdk/lib/painting/shadows.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698