OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 goog.provide('cvox.ChromeVoxEditableContentEditable'); | 5 goog.provide('cvox.ChromeVoxEditableContentEditable'); |
6 goog.provide('cvox.ChromeVoxEditableElement'); | 6 goog.provide('cvox.ChromeVoxEditableElement'); |
7 goog.provide('cvox.ChromeVoxEditableHTMLInput'); | 7 goog.provide('cvox.ChromeVoxEditableHTMLInput'); |
8 goog.provide('cvox.ChromeVoxEditableTextArea'); | 8 goog.provide('cvox.ChromeVoxEditableTextArea'); |
9 goog.provide('cvox.TextHandlerInterface'); | 9 goog.provide('cvox.TextHandlerInterface'); |
10 | 10 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 * @extends {cvox.ChromeVoxEditableElement} | 312 * @extends {cvox.ChromeVoxEditableElement} |
313 * @implements {cvox.TextHandlerInterface} | 313 * @implements {cvox.TextHandlerInterface} |
314 * @constructor | 314 * @constructor |
315 */ | 315 */ |
316 cvox.ChromeVoxEditableTextArea = function(node, tts) { | 316 cvox.ChromeVoxEditableTextArea = function(node, tts) { |
317 goog.base(this, node, node.value, node.selectionStart, node.selectionEnd, | 317 goog.base(this, node, node.value, node.selectionStart, node.selectionEnd, |
318 false /* isPassword */, tts); | 318 false /* isPassword */, tts); |
319 this.multiline = true; | 319 this.multiline = true; |
320 | 320 |
321 /** | 321 /** |
322 * True if the shadow is up-to-date with the current value of this text area. | 322 * True if the shadow is up to date with the current value of this text area. |
323 * @type {boolean} | 323 * @type {boolean} |
324 * @private | 324 * @private |
325 */ | 325 */ |
326 this.shadowIsCurrent_ = false; | 326 this.shadowIsCurrent_ = false; |
327 }; | 327 }; |
328 goog.inherits(cvox.ChromeVoxEditableTextArea, | 328 goog.inherits(cvox.ChromeVoxEditableTextArea, |
329 cvox.ChromeVoxEditableElement); | 329 cvox.ChromeVoxEditableElement); |
330 | 330 |
331 | 331 |
332 /** | 332 /** |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 // but there is still content after the new line (like the example | 640 // but there is still content after the new line (like the example |
641 // above after "Title"). In these cases, we "pretend" we're the | 641 // above after "Title"). In these cases, we "pretend" we're the |
642 // last character so we speak "blank". | 642 // last character so we speak "blank". |
643 return false; | 643 return false; |
644 } | 644 } |
645 | 645 |
646 // Otherwise, we should never speak "blank" no matter what (even if | 646 // Otherwise, we should never speak "blank" no matter what (even if |
647 // we're at the end of a content editable). | 647 // we're at the end of a content editable). |
648 return true; | 648 return true; |
649 }; | 649 }; |
OLD | NEW |