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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/aural_style_util.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/common/aural_style_util.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/aural_style_util.js b/chrome/browser/resources/chromeos/chromevox/common/aural_style_util.js
index 0e8c3b5cf57629440454ef9d2810c3458bd93f1b..cfdce469ea1fa410a3ec1c5d3696615f9b514ecf 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/aural_style_util.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/aural_style_util.js
@@ -147,7 +147,7 @@ cvox.AuralStyleConverter.convertStyle = function(style) {
* Gets the aural style for a node.
* @param {Node} node The node.
* @return {Object} The aural style, converted to tts properties.
-*/
+ */
cvox.AuralStyleUtil.getStyleForNode = function(node) {
var style = cvox.AuralStyleUtil.defaultStyles[node.tagName];
if (!style) {
@@ -161,49 +161,19 @@ cvox.AuralStyleUtil.getStyleForNode = function(node) {
* A list of default aural styles.
*/
cvox.AuralStyleUtil.defaultStyles = {
- 'ARTICLE': {
- PITCH: -0.1
- },
- 'ASIDE': {
- PITCH: -0.1
- },
- 'FOOTER': {
- PITCH: -0.1
- },
- 'H1': {
- PITCH: -0.3
- },
- 'H2': {
- PITCH: -0.25
- },
- 'H3': {
- PITCH: -0.2
- },
- 'H4': {
- PITCH: -0.15
- },
- 'H5': {
- PITCH: -0.1
- },
- 'H6': {
- PITCH: -0.05
- },
- 'HEADER': {
- PITCH: -0.1
- },
- 'HGROUP': {
- PITCH: -0.1
- },
- 'MARK': {
- PITCH: -0.1
- },
- 'NAV': {
- PITCH: -0.1
- },
- 'SECTION': {
- PITCH: -0.1
- },
- 'TIME': {
- PITCH: -0.1
- }
+ 'ARTICLE': {PITCH: -0.1},
+ 'ASIDE': {PITCH: -0.1},
+ 'FOOTER': {PITCH: -0.1},
+ 'H1': {PITCH: -0.3},
+ 'H2': {PITCH: -0.25},
+ 'H3': {PITCH: -0.2},
+ 'H4': {PITCH: -0.15},
+ 'H5': {PITCH: -0.1},
+ 'H6': {PITCH: -0.05},
+ 'HEADER': {PITCH: -0.1},
+ 'HGROUP': {PITCH: -0.1},
+ 'MARK': {PITCH: -0.1},
+ 'NAV': {PITCH: -0.1},
+ 'SECTION': {PITCH: -0.1},
+ 'TIME': {PITCH: -0.1}
};

Powered by Google App Engine
This is Rietveld 408576698