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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js

Issue 2703663002: Display images in multiline Braille (Closed)
Patch Set: Use freeze / thaw Created 3 years, 10 months 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 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 /** 5 /**
6 * @fileoverview Bridge that sends Braille messages from content scripts or 6 * @fileoverview Bridge that sends Braille messages from content scripts or
7 * other pages to the main background page. 7 * other pages to the main background page.
8 * 8 *
9 */ 9 */
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 var message = {'target': 'BRAILLE', 66 var message = {'target': 'BRAILLE',
67 'action': 'write', 67 'action': 'write',
68 'params': outParams, 68 'params': outParams,
69 'contentId' : this.lastContentId_}; 69 'contentId' : this.lastContentId_};
70 70
71 cvox.ExtensionBridge.send(message); 71 cvox.ExtensionBridge.send(message);
72 }; 72 };
73 73
74 74
75 /** @override */
76 cvox.ChromeBraille.prototype.writeRawImage = function(imageDataUrl) {
77 // Do Nothing.
78 };
79
80
81 /** @override */
82 cvox.ChromeBraille.prototype.freeze = function() {
83 // Do Nothing.
84 };
85
86
87 /** @override */
88 cvox.ChromeBraille.prototype.thaw = function() {
89 // Do Nothing.
90 };
91
92
93 /** @override */
94 cvox.ChromeBraille.prototype.getDisplayState = function() {
95 return {available: false, textRowCount: 0, textColumnCount: 0};
96 };
97
98
75 /** @private */ 99 /** @private */
76 cvox.ChromeBraille.prototype.updateLastContentId_ = function() { 100 cvox.ChromeBraille.prototype.updateLastContentId_ = function() {
77 this.lastContentId_ = cvox.ExtensionBridge.uniqueId() + '.' + 101 this.lastContentId_ = cvox.ExtensionBridge.uniqueId() + '.' +
78 this.nextLocalId_++; 102 this.nextLocalId_++;
79 }; 103 };
80 104
81 105
82 /** 106 /**
83 * Dispatches braille input commands. 107 * Dispatches braille input commands.
84 * @param {!cvox.BrailleKeyEvent} brailleEvt The braille key event. 108 * @param {!cvox.BrailleKeyEvent} brailleEvt The braille key event.
(...skipping 16 matching lines...) Expand all
101 * Overrides the key event handler 125 * Overrides the key event handler
102 * @param {function(!cvox.BrailleKeyEvent, cvox.NavBraille):void} listener 126 * @param {function(!cvox.BrailleKeyEvent, cvox.NavBraille):void} listener
103 */ 127 */
104 cvox.ChromeBraille.prototype.setKeyEventHandlerForTest = function(listener) { 128 cvox.ChromeBraille.prototype.setKeyEventHandlerForTest = function(listener) {
105 this.onKeyEvent_ = listener; 129 this.onKeyEvent_ = listener;
106 }; 130 };
107 131
108 132
109 /** Export platform constructor. */ 133 /** Export platform constructor. */
110 cvox.HostFactory.brailleConstructor = cvox.ChromeBraille; 134 cvox.HostFactory.brailleConstructor = cvox.ChromeBraille;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698