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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js

Issue 2584513006: Split out non-auto-generatable externs from auto generated ones. (Closed)
Patch Set: Use bound enum values. Created 4 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
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 /** 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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698