Home | History | Annotate | Download | only in chromevox

Lines Matching refs:text_

918 cvox.BrailleDisplayManager.prototype.writeCursor_=function(a,b,c){if(!(0>b||b>=a.byteLength||c<b||c>a.byteLength))for(b==c&&(c=b+1),a=new DataView(a);b<c;){var d=a.getUint8(b),d=d|cvox.BrailleDisplayManager.CURSOR_DOTS_;a.setUint8(b,d);b++}};cvox.BrailleDisplayManager.prototype.brailleToTextPosition_=function(a){var b=this.brailleToText_;return 0>a?(console.error("WARNING: Braille position < 0: "+a),0):a>=b.length?this.content_.text.getLength():b[a]};cvox.BrailleInputHandler=function(){this.imePort_=null;this.imeActive_=!1;this.activeTranslator_=this.uncontractedTranslator_=this.defaultTranslator_=this.inputContext_=null;this.cells_=[];this.currentTextAfter_=this.currentTextBefore_=this.text_="";this.pendingTextsBefore_=[];this.pendingCells_=[]};cvox.BrailleInputHandler.IME_EXTENSION_ID_="jddehjeebkoimngcbdkaahpobgicbffp";cvox.BrailleInputHandler.IME_PORT_NAME_="cvox.BrailleIme.Port";
925 cvox.BrailleInputHandler.prototype.updateText_=function(){var a=(new Uint8Array(this.cells_)).buffer;this.activeTranslator_.backTranslate(a,goog.bind(function(a){if(null===a)console.error("Error when backtranslating braille cells");else{var c=this.text_.length,d=this.longestCommonPrefixLength_(this.text_,a);this.text_=a;c-=d;a=a.substring(d);if(0<c||0<a.length)d=this.currentTextBefore_.substring(0,this.currentTextBefore_.length-c),0<c&&this.pendingTextsBefore_.push(d),0<a.length&&this.pendingTextsBefore_.push(d+
926 a),this.postImeMessage_({type:"replaceText",contextID:this.inputContext_.contextID,deleteBefore:c,newText:a})}},this))};cvox.BrailleInputHandler.prototype.resetText_=function(){this.cells_.length=0;this.text_="";this.pendingTextsBefore_.length=0;this.updateActiveTranslator_()};
971 cvox.ChromeVoxHTMLDateWidget.prototype.eventHandler_=function(a){var b=!1;if("keydown"==a.type){if(9==a.keyCode&&!a.shiftKey||39==a.keyCode)this.pos_++,this.handlePosChange_(),b=!0;if(9==a.keyCode&&a.shiftKey||37==a.keyCode)this.pos_--,this.handlePosChange_(),b=!0}this.update_(b)};cvox.BrailleTextHandler=function(a){this.braille_=a};cvox.BrailleTextHandler.prototype.changed=function(a,b,c,d,e,f){var g;d?(d=cvox.BrailleUtil.createValue(a,b,c,f),e&&d.setSpan(e,0,a.length),g=new cvox.NavBraille({text:d,startIndex:b,endIndex:c})):cvox.ChromeVox.navigationManager&&(g=cvox.ChromeVox.navigationManager.getBraille());g&&this.braille_.write(g)};cvox.ContentEditableExtractor=function(){this.text_="";this.end_=this.start_=0;this.lines_={};this.characterToLineMap_=[]};
974 k+=r;l++;c=d.clone();s&&(n=l,s=!1);u&&(p=l,u=!1)}}b[g].endIndex=l;a=[];for(f=0;f<=g;f++)for(c=b[f].startIndex;c<=b[f].endIndex;c++)a[c]=f;this.text_=k;this.characterToLineMap_=a;this.lines_=b;this.start_=0<=n?n:k.length;this.end_=0<=p?p:k.length};cvox.ContentEditableExtractor.prototype.getText=function(){return this.text_};cvox.ContentEditableExtractor.prototype.getStartIndex=function(){return this.start_};cvox.ContentEditableExtractor.prototype.getEndIndex=function(){return this.end_};