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

Side by Side Diff: chrome/common/extensions/api/braille_display_private.idl

Issue 2463983002: Implement support for chorded braille commands (Closed)
Patch Set: Indent. Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Braille display access private API. 5 // Braille display access private API.
6 namespace brailleDisplayPrivate { 6 namespace brailleDisplayPrivate {
7 // Braille display keyboard command. 7 // Braille display keyboard command.
8 enum KeyCommand { 8 enum KeyCommand {
9 line_up, 9 line_up,
10 line_down, 10 line_down,
11 pan_left, 11 pan_left,
12 pan_right, 12 pan_right,
13 top, 13 top,
14 bottom, 14 bottom,
15 routing, 15 routing,
16 secondary_routing, 16 secondary_routing,
17 dots, 17 dots,
18 chord,
18 standard_key 19 standard_key
19 }; 20 };
20 21
21 // A keyboard event. This is not a standard keyboard event because 22 // A keyboard event. This is not a standard keyboard event because
22 // braille display keyboards look significantly different from standard 23 // braille display keyboards look significantly different from standard
23 // keyboards. 24 // keyboards.
24 dictionary KeyEvent { 25 dictionary KeyEvent {
25 KeyCommand command; 26 KeyCommand command;
26 // 0-based display position for commands that involve a routing key. 27 // 0-based display position for commands that involve a routing key.
27 long? displayPosition; 28 long? displayPosition;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 static void writeDots(ArrayBuffer cells); 71 static void writeDots(ArrayBuffer cells);
71 }; 72 };
72 73
73 interface Events { 74 interface Events {
74 // Fired when a braille display is connected or disconnected. 75 // Fired when a braille display is connected or disconnected.
75 static void onDisplayStateChanged(DisplayState state); 76 static void onDisplayStateChanged(DisplayState state);
76 // Fired when an input event is received from the display. 77 // Fired when an input event is received from the display.
77 static void onKeyEvent(KeyEvent event); 78 static void onKeyEvent(KeyEvent event);
78 }; 79 };
79 }; 80 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698