Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 /** | 5 /** |
| 6 * @fileoverview Commands to pass from the ChromeVox background page context | 6 * @fileoverview Commands to pass from the ChromeVox background page context |
| 7 * to the ChromeVox Panel. | 7 * to the ChromeVox Panel. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 goog.provide('PanelCommand'); | 10 goog.provide('PanelCommand'); |
| 11 goog.provide('PanelCommandType'); | 11 goog.provide('PanelCommandType'); |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Create one command to pass to the ChromeVox Panel. | 14 * Create one command to pass to the ChromeVox Panel. |
| 15 * @param {PanelCommandType} type The type of command. | 15 * @param {PanelCommandType} type The type of command. |
| 16 * @param {string|{text: string, braille: string}=} opt_data | 16 * @param {string|{groups:Array}|{text: string, braille: string}=} opt_data |
|
dmazzoni
2016/09/26 04:53:49
Delete {text: string, braille: string}, that's not
ultimatedbz
2016/09/27 21:15:49
Again, I left this here because I wasn't sure what
dmazzoni
2016/09/27 21:56:03
In this case the panel is only going to receive th
ultimatedbz
2016/09/27 22:56:24
Ohh right! I see what you mean. Thanks!
ultimatedbz
2016/09/27 22:56:24
Done.
| |
| 17 * Optional data associated with the command. | 17 * Optional data associated with the command. |
| 18 * @constructor | 18 * @constructor |
| 19 */ | 19 */ |
| 20 PanelCommand = function(type, opt_data) { | 20 PanelCommand = function(type, opt_data) { |
| 21 this.type = type; | 21 this.type = type; |
| 22 this.data = opt_data; | 22 this.data = opt_data; |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Send this command to the ChromeVox Panel window. | 26 * Send this command to the ChromeVox Panel window. |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 42 CLEAR_SPEECH: 'clear_speech', | 42 CLEAR_SPEECH: 'clear_speech', |
| 43 ADD_NORMAL_SPEECH: 'add_normal_speech', | 43 ADD_NORMAL_SPEECH: 'add_normal_speech', |
| 44 ADD_ANNOTATION_SPEECH: 'add_annotation_speech', | 44 ADD_ANNOTATION_SPEECH: 'add_annotation_speech', |
| 45 UPDATE_BRAILLE: 'update_braille', | 45 UPDATE_BRAILLE: 'update_braille', |
| 46 OPEN_MENUS: 'open_menus', | 46 OPEN_MENUS: 'open_menus', |
| 47 ENABLE_MENUS: 'enable_menus', | 47 ENABLE_MENUS: 'enable_menus', |
| 48 DISABLE_MENUS: 'disable_menus', | 48 DISABLE_MENUS: 'disable_menus', |
| 49 SEARCH: 'search', | 49 SEARCH: 'search', |
| 50 TUTORIAL: 'tutorial', | 50 TUTORIAL: 'tutorial', |
| 51 }; | 51 }; |
| OLD | NEW |