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

Side by Side Diff: pkg/barback/lib/src/asset/asset_node.dart

Issue 261823008: Reorganize barback's source files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: re-add barback/lib/src/internal_asset.dart Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « pkg/barback/lib/src/asset/asset_id.dart ('k') | pkg/barback/lib/src/asset/asset_node_set.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 barback.asset_node; 5 library barback.asset.asset_node;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../errors.dart';
10 import '../graph/transform_node.dart';
11 import '../utils.dart';
9 import 'asset.dart'; 12 import 'asset.dart';
10 import 'asset_id.dart'; 13 import 'asset_id.dart';
11 import 'errors.dart';
12 import 'transform_node.dart';
13 import 'utils.dart';
14 14
15 /// Describes the current state of an asset as part of a transformation graph. 15 /// Describes the current state of an asset as part of a transformation graph.
16 /// 16 ///
17 /// An asset node can be in one of three states (see [AssetState]). It provides 17 /// An asset node can be in one of three states (see [AssetState]). It provides
18 /// an [onStateChange] stream that emits an event whenever it changes state. 18 /// an [onStateChange] stream that emits an event whenever it changes state.
19 /// 19 ///
20 /// Asset nodes are controlled using [AssetNodeController]s. 20 /// Asset nodes are controlled using [AssetNodeController]s.
21 class AssetNode { 21 class AssetNode {
22 /// The id of the asset that this node represents. 22 /// The id of the asset that this node represents.
23 final AssetId id; 23 final AssetId id;
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 /// Whether this state is [AssetState.RUNNING]. 275 /// Whether this state is [AssetState.RUNNING].
276 bool get isDirty => this == AssetState.RUNNING; 276 bool get isDirty => this == AssetState.RUNNING;
277 277
278 final String name; 278 final String name;
279 279
280 const AssetState._(this.name); 280 const AssetState._(this.name);
281 281
282 String toString() => name; 282 String toString() => name;
283 } 283 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/src/asset/asset_id.dart ('k') | pkg/barback/lib/src/asset/asset_node_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698