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

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

Issue 788353002: Restructure public side of input_events service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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/services/testing/test_harness.mojom ('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 <import src="/mojo/services/public/interfaces/input_events/input_event_constants .mojom.sky" as="constants" /> 1 <import src="/mojo/services/input_events/public/interfaces/input_event_constants .mojom.sky" as="constants" />
2 <import src="/mojo/services/public/interfaces/input_events/input_events.mojom.sk y" as="events" /> 2 <import src="/mojo/services/input_events/public/interfaces/input_events.mojom.sk y" as="events" />
3 <import src="/mojo/services/public/interfaces/input_events/input_key_codes.mojom .sky" as="codes" /> 3 <import src="/mojo/services/input_events/public/interfaces/input_key_codes.mojom .sky" as="codes" />
4 <import src="/sky/framework/shell.sky" as="shell" /> 4 <import src="/sky/framework/shell.sky" as="shell" />
5 <import src="/sky/services/testing/test_harness.mojom.sky" as="harness" /> 5 <import src="/sky/services/testing/test_harness.mojom.sky" as="harness" />
6 <script> 6 <script>
7 var harness = shell.connectToService("mojo:sky_tester", harness.TestHarness); 7 var harness = shell.connectToService("mojo:sky_tester", harness.TestHarness);
8 8
9 var isDone = false; 9 var isDone = false;
10 var keyPressesRemaining = 0; 10 var keyPressesRemaining = 0;
11 11
12 function keyDown(key, flag) { 12 function keyDown(key, flag) {
13 var eventFlags = constants.EventFlags.NONE; 13 var eventFlags = constants.EventFlags.NONE;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 --keyPressesRemaining; 70 --keyPressesRemaining;
71 checkComplete(); 71 checkComplete();
72 }); 72 });
73 73
74 module.exports = { 74 module.exports = {
75 keyDown: keyDown, 75 keyDown: keyDown,
76 done: done, 76 done: done,
77 }; 77 };
78 </script> 78 </script>
79 </sky> 79 </sky>
OLDNEW
« no previous file with comments | « sky/services/testing/test_harness.mojom ('k') | sky/tests/services/event-sender.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698