| 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 Processes events related to editing text and emits the | 6 * @fileoverview Processes events related to editing text and emits the |
| 7 * appropriate spoken and braille feedback. | 7 * appropriate spoken and braille feedback. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 goog.provide('editing.TextEditHandler'); | 10 goog.provide('editing.TextEditHandler'); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 get node() { | 44 get node() { |
| 45 return this.node_; | 45 return this.node_; |
| 46 }, | 46 }, |
| 47 | 47 |
| 48 /** | 48 /** |
| 49 * Receives the following kinds of events when the node provided to the | 49 * Receives the following kinds of events when the node provided to the |
| 50 * constructor is focuse: |focus|, |textChanged|, |textSelectionChanged| and | 50 * constructor is focuse: |focus|, |textChanged|, |textSelectionChanged| and |
| 51 * |valueChanged|. | 51 * |valueChanged|. |
| 52 * An implementation of this method should emit the appropritate braille and | 52 * An implementation of this method should emit the appropritate braille and |
| 53 * spoken feedback for the event. | 53 * spoken feedback for the event. |
| 54 * @param {!AutomationEvent} evt | 54 * @param {!AutomationEvent|!ChromeVoxAutomationEvent} evt |
| 55 */ | 55 */ |
| 56 onEvent: goog.abstractMethod, | 56 onEvent: goog.abstractMethod, |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 /** | 59 /** |
| 60 * A |TextEditHandler| suitable for text fields. | 60 * A |TextEditHandler| suitable for text fields. |
| 61 * @constructor | 61 * @constructor |
| 62 * @param {!AutomationNode} node A node with the role of |textField| | 62 * @param {!AutomationNode} node A node with the role of |textField| |
| 63 * @extends {editing.TextEditHandler} | 63 * @extends {editing.TextEditHandler} |
| 64 */ | 64 */ |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 testNode = testNode.parent; | 212 testNode = testNode.parent; |
| 213 } while (testNode); | 213 } while (testNode); |
| 214 | 214 |
| 215 if (rootFocusedEditable) | 215 if (rootFocusedEditable) |
| 216 return new TextFieldTextEditHandler(rootFocusedEditable); | 216 return new TextFieldTextEditHandler(rootFocusedEditable); |
| 217 | 217 |
| 218 return null; | 218 return null; |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 }); | 221 }); |
| OLD | NEW |