Searched defs:setCommandListener (Results 1 - 2 of 2) sorted by relevance

/external/chromium_org/chrome/third_party/chromevox/
H A DchromeVoxChromeBackgroundScript.js708 cvox.NavBraille.prototype.toString=function(){return'NavBraille(text="'+this.text.toString()+'" startIndex="'+this.startIndex+'" endIndex="'+this.endIndex+'")'};cvox.NavBraille.prototype.write=function(){cvox.PlatformUtil.matchesPlatform(cvox.PlatformFilter.CHROMEOS|cvox.PlatformFilter.ANDROID)&&cvox.ChromeVox.braille.write(this)};cvox.BrailleKeyCommand={PAN_LEFT:"pan_left",PAN_RIGHT:"pan_right",LINE_UP:"line_up",LINE_DOWN:"line_down",TOP:"top",BOTTOM:"bottom",ROUTING:"routing",SECONDARY_ROUTING:"secondary_routing",DOTS:"dots",STANDARD_KEY:"standard_key"};cvox.BrailleKeyEvent={};cvox.BrailleInterface=function(){};cvox.BrailleInterface.prototype.write=function(){};cvox.BrailleInterface.prototype.setCommandListener=function(){};cvox.AbstractBraille=function(){};cvox.AbstractHost=function(){};cvox.AbstractHost.State={ACTIVE:0,INACTIVE:1,KILLED:2};cvox.AbstractHost.prototype.init=function(){};cvox.AbstractHost.prototype.sendToBackgroundPage=function(){};cvox.AbstractHost.prototype.getApiSrc=function(){return""};cvox.AbstractHost.prototype.getFileSrc=function(){return""};cvox.AbstractHost.prototype.hasTtsCallback=function(){return!0};cvox.AbstractHost.prototype.mustRedispatchClickEvent=function(){return!1};
760 chrome.brailleDisplayPrivate.onKeyEvent.addListener(goog.bind(this.onKeyEvent_,this))}};cvox.BrailleDisplayManager.CURSOR_DOTS_=192;cvox.BrailleDisplayManager.prototype.setContent=function(a){this.content_=a;this.translateContent_()};cvox.BrailleDisplayManager.prototype.setCommandListener=function(a){this.commandListener_=a};cvox.BrailleDisplayManager.prototype.setTranslator=function(a){var b=null!=this.translator_;this.translator_=a;this.translateContent_();b&&!this.translator_&&this.refresh_()};
766 cvox.BrailleDisplayManager.prototype.panRight_=function(){var a=this.panPosition_+this.displayState_.textCellCount;a>=this.translatedContent_.byteLength?this.commandListener_({command:cvox.BrailleKeyCommand.PAN_RIGHT}):(this.panPosition_=a,this.refresh_())};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.BrailleTable={};cvox.BrailleTable.TABLE_PATH="chromevox/background/braille/tables.json";cvox.BrailleTable.getAll=function(a){var b=chrome.extension.getURL(cvox.BrailleTable.TABLE_PATH);if(!b)throw"Invalid path: "+cvox.BrailleTable.TABLE_PATH;var c=new XMLHttpRequest;c.open("GET",b,!0);c.onreadystatechange=function(){4==c.readyState&&200==c.status&&a(JSON.parse(c.responseText))};c.send()};cvox.BrailleBackground=function(){this.displayManager_=new cvox.BrailleDisplayManager;cvox.BrailleTable.getAll(goog.bind(function(a){this.tables_=a;this.initialize_(0)},this));this.setCommandListener(this.defaultCommandListener_)};goog.inherits(cvox.BrailleBackground,cvox.AbstractBraille);cvox.BrailleBackground.prototype.write=function(a){this.displayManager_.setContent(a)};cvox.BrailleBackground.prototype.setCommandListener=function(a){this.displayManager_.setCommandListener(a)};
H A DchromeVoxChromeOptionsScript.js761 cvox.NavBraille.prototype.toString=function(){return'NavBraille(text="'+this.text.toString()+'" startIndex="'+this.startIndex+'" endIndex="'+this.endIndex+'")'};cvox.NavBraille.prototype.write=function(){cvox.PlatformUtil.matchesPlatform(cvox.PlatformFilter.CHROMEOS|cvox.PlatformFilter.ANDROID)&&cvox.ChromeVox.braille.write(this)};cvox.BrailleKeyCommand={PAN_LEFT:"pan_left",PAN_RIGHT:"pan_right",LINE_UP:"line_up",LINE_DOWN:"line_down",TOP:"top",BOTTOM:"bottom",ROUTING:"routing",SECONDARY_ROUTING:"secondary_routing",DOTS:"dots",STANDARD_KEY:"standard_key"};cvox.BrailleKeyEvent={};cvox.BrailleInterface=function(){};cvox.BrailleInterface.prototype.write=function(){};cvox.BrailleInterface.prototype.setCommandListener=function(){};cvox.AbstractBraille=function(){};cvox.braille={};cvox.braille.LibLouisNativeClient=function(a,b){this.nmfPath_=a;this.tablesDir_=goog.isDef(b)?b:null;this.embedElement_=null;this.instanceState_=cvox.braille.LibLouisNativeClient.InstanceState.NOT_LOADED;this.pendingTranslators_=[];this.pendingRpcCallbacks_={};this.nextMessageId_=1};cvox.braille.LibLouisNativeClient.InstanceState={NOT_LOADED:0,LOADING:1,LOADED:2,ERROR:-1};
773 chrome.brailleDisplayPrivate.onKeyEvent.addListener(goog.bind(this.onKeyEvent_,this))}};cvox.BrailleDisplayManager.CURSOR_DOTS_=192;cvox.BrailleDisplayManager.prototype.setContent=function(a){this.content_=a;this.translateContent_()};cvox.BrailleDisplayManager.prototype.setCommandListener=function(a){this.commandListener_=a};cvox.BrailleDisplayManager.prototype.setTranslator=function(a){var b=null!=this.translator_;this.translator_=a;this.translateContent_();b&&!this.translator_&&this.refresh_()};
779 cvox.BrailleDisplayManager.prototype.panRight_=function(){var a=this.panPosition_+this.displayState_.textCellCount;a>=this.translatedContent_.byteLength?this.commandListener_({command:cvox.BrailleKeyCommand.PAN_RIGHT}):(this.panPosition_=a,this.refresh_())};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.BrailleTable={};cvox.BrailleTable.TABLE_PATH="chromevox/background/braille/tables.json";cvox.BrailleTable.getAll=function(a){var b=chrome.extension.getURL(cvox.BrailleTable.TABLE_PATH);if(!b)throw"Invalid path: "+cvox.BrailleTable.TABLE_PATH;var c=new XMLHttpRequest;c.open("GET",b,!0);c.onreadystatechange=function(){4==c.readyState&&200==c.status&&a(JSON.parse(c.responseText))};c.send()};cvox.BrailleBackground=function(){this.displayManager_=new cvox.BrailleDisplayManager;cvox.BrailleTable.getAll(goog.bind(function(a){this.tables_=a;this.initialize_(0)},this));this.setCommandListener(this.defaultCommandListener_)};goog.inherits(cvox.BrailleBackground,cvox.AbstractBraille);cvox.BrailleBackground.prototype.write=function(a){this.displayManager_.setContent(a)};cvox.BrailleBackground.prototype.setCommandListener=function(a){this.displayManager_.setCommandListener(a)};

Completed in 104 milliseconds