Home | History | Annotate | Download | only in chromevox

Lines Matching refs:tables_

933 cvox.BrailleTable.getUncontracted=function(a,b){function c(a,b){return"6"===a.dots&&"8"===b.dots&&0==a.locale.lastIndexOf(b.locale,0)||a.locale===b.locale&&a.dots===b.dots&&goog.isDef(a.grade)&&goog.isDef(b.grade)&&b.grade<a.grade?b:a}return a.reduce(c,b)};cvox.BrailleBackground=function(a,b){this.displayManager_=a||new cvox.BrailleDisplayManager;cvox.BrailleTable.getAll(goog.bind(function(a){this.tables_=a;this.initialize_(0)},this));this.displayManager_.setCommandListener(goog.bind(this.onBrailleKeyEvent_,this));this.lastContentId_=this.lastContent_=null;this.inputHandler_=b||new cvox.BrailleInputHandler;this.inputHandler_.init()};goog.inherits(cvox.BrailleBackground,cvox.AbstractBraille);
935 cvox.BrailleBackground.prototype.refreshTranslator=function(){if(this.liblouis_){var a=this.tables_,b=cvox.BrailleTable.forId(a,localStorage.brailleTable);if(!b){var c=chrome.i18n.getMessage("@@ui_locale").split(/[_-]/),d=c[0],e=c[1],c=a.filter(function(a){return a.locale.split(/[_-]/)[0]==d});0<c.length&&(b=c[0],e&&(c=c.filter(function(a){return a.locale.split(/[_-]/)[1]==e}),0<c.length&&(b=c[0])))}b||(b=cvox.BrailleTable.forId(a,"en-US-comp8"));localStorage.brailleTable=b.id;"6"==b.dots?(localStorage.brailleTableType=