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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/braille_overlay_widget.js

Issue 2535573002: Reduce usage of webkit CSS prefixes in chrome/browser/resources (Closed)
Patch Set: CSSOM 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 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 Overlay that shows the current braille display contents, 6 * @fileoverview Overlay that shows the current braille display contents,
7 * both as text and braille, on screen in a document. 7 * both as text and braille, on screen in a document.
8 */ 8 */
9 9
10 goog.provide('cvox.BrailleOverlayWidget'); 10 goog.provide('cvox.BrailleOverlayWidget');
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 * 132 *
133 * @return {!Element} The new element, not yet added to the document. 133 * @return {!Element} The new element, not yet added to the document.
134 * @private 134 * @private
135 */ 135 */
136 cvox.BrailleOverlayWidget.prototype.createContainerNode_ = function() { 136 cvox.BrailleOverlayWidget.prototype.createContainerNode_ = function() {
137 var containerNode = document.createElement('div'); 137 var containerNode = document.createElement('div');
138 containerNode.id = 'cvox-braille-overlay'; 138 containerNode.id = 'cvox-braille-overlay';
139 containerNode.style['position'] = 'fixed'; 139 containerNode.style['position'] = 'fixed';
140 containerNode.style['top'] = '50%'; 140 containerNode.style['top'] = '50%';
141 containerNode.style['left'] = '50%'; 141 containerNode.style['left'] = '50%';
142 containerNode.style['-webkit-transition'] = 'all 0.3s ease-in'; 142 containerNode.style['transition'] = 'all 0.3s ease-in';
143 containerNode.style['opacity'] = '0.0'; 143 containerNode.style['opacity'] = '0.0';
144 containerNode.style['z-index'] = '2147483647'; 144 containerNode.style['z-index'] = '2147483647';
145 containerNode.setAttribute('aria-hidden', 'true'); 145 containerNode.setAttribute('aria-hidden', 'true');
146 return containerNode; 146 return containerNode;
147 }; 147 };
148 148
149 149
150 /** 150 /**
151 * Create the braille overlay. This should be a child of the node 151 * Create the braille overlay. This should be a child of the node
152 * returned from createContainerNode. 152 * returned from createContainerNode.
(...skipping 22 matching lines...) Expand all
175 * Listens for background page messages and show braille content when it 175 * Listens for background page messages and show braille content when it
176 * arrives. 176 * arrives.
177 * @param {Object} msg Message from background page. 177 * @param {Object} msg Message from background page.
178 * @private 178 * @private
179 */ 179 */
180 cvox.BrailleOverlayWidget.prototype.onMessage_ = function(msg) { 180 cvox.BrailleOverlayWidget.prototype.onMessage_ = function(msg) {
181 if (msg['message'] == 'BRAILLE_CAPTION') { 181 if (msg['message'] == 'BRAILLE_CAPTION') {
182 this.setContent_(msg['text'], msg['brailleChars']); 182 this.setContent_(msg['text'], msg['brailleChars']);
183 } 183 }
184 }; 184 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698