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' as Math; | 8 #import('dart:math', prefix: 'Math'); |
9 | 9 |
10 import '../base/base.dart'; | 10 #import('../base/base.dart'); |
11 import '../observable/observable.dart'; | 11 #import('../observable/observable.dart'); |
12 import '../touch/touch.dart'; | 12 #import('../touch/touch.dart'); |
13 import '../layout/layout.dart'; | 13 #import('../layout/layout.dart'); |
14 | 14 |
15 part 'CompositeView.dart'; | 15 #source('CompositeView.dart'); |
16 part 'ConveyorView.dart'; | 16 #source('ConveyorView.dart'); |
17 part 'MeasureText.dart'; | 17 #source('MeasureText.dart'); |
18 part 'PagedViews.dart'; | 18 #source('PagedViews.dart'); |
19 part 'SliderMenu.dart'; | 19 #source('SliderMenu.dart'); |
20 | 20 |
21 | 21 |
22 // TODO(rnystrom): Note! This class is undergoing heavy construction. It will | 22 // TODO(rnystrom): Note! This class is undergoing heavy construction. It will |
23 // temporary support both some old and some new ways of doing things until all | 23 // temporary support both some old and some new ways of doing things until all |
24 // subclasses are refactored to use the new way. There will be some scaffolding | 24 // subclasses are refactored to use the new way. There will be some scaffolding |
25 // and construction cones laying around. Try not to freak out. | 25 // and construction cones laying around. Try not to freak out. |
26 | 26 |
27 /** A generic view. */ | 27 /** A generic view. */ |
28 class View implements Positionable { | 28 class View implements Positionable { |
29 Element _node; | 29 Element _node; |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 } | 364 } |
365 } | 365 } |
366 | 366 |
367 void _applyLayout() { | 367 void _applyLayout() { |
368 if (_layout != null) { | 368 if (_layout != null) { |
369 _layout.applyLayout(); | 369 _layout.applyLayout(); |
370 } | 370 } |
371 _applyLayoutToChildren(); | 371 _applyLayoutToChildren(); |
372 } | 372 } |
373 } | 373 } |
OLD | NEW |