OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #library("view"); | 5 #library("view"); |
6 | 6 |
7 #import('dart:html'); | 7 #import('dart:html'); |
| 8 #import('dart:math', prefix: 'Math'); |
| 9 |
8 #import('../base/base.dart'); | 10 #import('../base/base.dart'); |
9 #import('../observable/observable.dart'); | 11 #import('../observable/observable.dart'); |
10 #import('../touch/touch.dart'); | 12 #import('../touch/touch.dart'); |
11 #import('../layout/layout.dart'); | 13 #import('../layout/layout.dart'); |
12 | 14 |
13 #source('CompositeView.dart'); | 15 #source('CompositeView.dart'); |
14 #source('ConveyorView.dart'); | 16 #source('ConveyorView.dart'); |
15 #source('MeasureText.dart'); | 17 #source('MeasureText.dart'); |
16 #source('PagedViews.dart'); | 18 #source('PagedViews.dart'); |
17 #source('SliderMenu.dart'); | 19 #source('SliderMenu.dart'); |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 } | 364 } |
363 } | 365 } |
364 | 366 |
365 void _applyLayout() { | 367 void _applyLayout() { |
366 if (_layout != null) { | 368 if (_layout != null) { |
367 _layout.applyLayout(); | 369 _layout.applyLayout(); |
368 } | 370 } |
369 _applyLayoutToChildren(); | 371 _applyLayoutToChildren(); |
370 } | 372 } |
371 } | 373 } |
OLD | NEW |