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

Side by Side Diff: pkg/immi_samples/lib/sliding_window.immi

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 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 | « pkg/immi_samples/lib/sliding_window.dart ('k') | pkg/servicec/lib/compiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
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.md file.
4
5 // Reusable sliding-window view of a list of nodes. The window is represented
6 // as a cyclic buffer so that sliding by N, where N is less than the buffer
7 // length, can be implemented as shifting the buffer offset by N and populating
8 // N items.
9 node SlidingWindow {
10 // Cyclic buffer for the sliding window of nodes.
11 List<Node> window;
12
13 // Offset of the window start from the original list.
14 int32 startOffset;
15
16 // Offset of the first sliding-window item in the window.
17 uint16 windowOffset;
18
19 // Number of items known to be in the list.
20 int32 minimumCount;
21
22 // Number of items in the list. A negative value denotes an unknown size.
23 int32 maximumCount;
24
25 // Event to update the sliding-window display range.
26 void display(int32 start, int32 end);
27
28 // Event to toggle an item in the window.
29 void toggle(int32 index);
30 }
OLDNEW
« no previous file with comments | « pkg/immi_samples/lib/sliding_window.dart ('k') | pkg/servicec/lib/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698