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

Side by Side Diff: sky/tests/resources/event-sender.dart

Issue 1221883002: Remove package:sky/framework (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/tests/framework/resources/virgin-america.jpg ('k') | sky/tests/services/event-sender.sky » ('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:async"; 5 import "dart:async";
6 import "dart:sky"; 6 import "dart:sky";
7 import "dart:sky.internals" as internals; 7 import "dart:sky.internals" as internals;
8 import "package:mojom/mojo/input_event_constants.mojom.dart" as constants; 8 import "package:mojom/mojo/input_event_constants.mojom.dart" as constants;
9 import "package:mojom/mojo/input_events.mojom.dart" as events; 9 import "package:mojom/mojo/input_events.mojom.dart" as events;
10 import "package:mojom/mojo/input_key_codes.mojom.dart" as codes; 10 import "package:mojom/mojo/input_key_codes.mojom.dart" as codes;
11 import "package:mojom/sky/test_harness.mojom.dart" as harness; 11 import "package:mojom/sky/test_harness.mojom.dart" as harness;
12 import "package:sky/framework/embedder.dart"; 12 import "package:sky/mojo/embedder.dart";
13 13
14 bool _isDone = false; 14 bool _isDone = false;
15 int _keyPressesRemaining = 0; 15 int _keyPressesRemaining = 0;
16 16
17 final Set<int> _chars = new Set.from([ 17 final Set<int> _chars = new Set.from([
18 codes.KeyboardCode_A, 18 codes.KeyboardCode_A,
19 codes.KeyboardCode_B, 19 codes.KeyboardCode_B,
20 codes.KeyboardCode_C, 20 codes.KeyboardCode_C,
21 codes.KeyboardCode_D, 21 codes.KeyboardCode_D,
22 codes.KeyboardCode_E, 22 codes.KeyboardCode_E,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 ..unmodifiedText = keyCode)); 100 ..unmodifiedText = keyCode));
101 } 101 }
102 } 102 }
103 103
104 void done() { 104 void done() {
105 if (_isDone) 105 if (_isDone)
106 throw "Already done."; 106 throw "Already done.";
107 _isDone = true; 107 _isDone = true;
108 _checkComplete(); 108 _checkComplete();
109 } 109 }
OLDNEW
« no previous file with comments | « sky/tests/framework/resources/virgin-america.jpg ('k') | sky/tests/services/event-sender.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698