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

Side by Side Diff: sky/sdk/lib/rendering/sky_binding.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/rendering/paragraph.dart ('k') | sky/sdk/lib/rendering/stack.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:sky' as sky; 5 import 'dart:sky' as sky;
6 6
7 import '../base/scheduler.dart' as scheduler; 7 import 'package:sky/base/scheduler.dart' as scheduler;
8 import '../base/hit_test.dart'; 8 import 'package:sky/base/hit_test.dart';
9 import 'box.dart'; 9 import 'package:sky/rendering/box.dart';
10 import 'object.dart'; 10 import 'package:sky/rendering/object.dart';
11 11
12 int _hammingWeight(int value) { 12 int _hammingWeight(int value) {
13 if (value == 0) 13 if (value == 0)
14 return 0; 14 return 0;
15 int weight = 0; 15 int weight = 0;
16 for (int i = 0; i < value.bitLength; ++i) { 16 for (int i = 0; i < value.bitLength; ++i) {
17 if (value & (1 << i) != 0) 17 if (value & (1 << i) != 0)
18 ++weight; 18 ++weight;
19 } 19 }
20 return weight; 20 return weight;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 entry.target.handleEvent(event, entry); 139 entry.target.handleEvent(event, entry);
140 } 140 }
141 141
142 String toString() => 'Render Tree:\n${_renderView}'; 142 String toString() => 'Render Tree:\n${_renderView}';
143 143
144 void debugDumpRenderTree() { 144 void debugDumpRenderTree() {
145 toString().split('\n').forEach(print); 145 toString().split('\n').forEach(print);
146 } 146 }
147 147
148 } 148 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/rendering/paragraph.dart ('k') | sky/sdk/lib/rendering/stack.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698