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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/command_handler.js

Issue 2740793002: Minimize the Classic API and enable it for Next (Closed)
Patch Set: Minimize the Classic API and enable it for Next Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 ChromeVox commands. 6 * @fileoverview ChromeVox commands.
7 */ 7 */
8 8
9 goog.provide('CommandHandler'); 9 goog.provide('CommandHandler');
10 10
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 return false; 194 return false;
195 default: 195 default:
196 break; 196 break;
197 } 197 }
198 198
199 // Require a current range. 199 // Require a current range.
200 if (!ChromeVoxState.instance.currentRange_) 200 if (!ChromeVoxState.instance.currentRange_)
201 return true; 201 return true;
202 202
203 // Next/classic compat commands hereafter. 203 // Next/classic compat commands hereafter.
204 if (ChromeVoxState.instance.mode == ChromeVoxMode.CLASSIC || 204 if (ChromeVoxState.instance.mode == ChromeVoxMode.CLASSIC)
205 ChromeVoxState.instance.mode == ChromeVoxMode.NEXT_COMPAT)
206 return true; 205 return true;
207 206
208 var current = ChromeVoxState.instance.currentRange_; 207 var current = ChromeVoxState.instance.currentRange_;
209 var dir = Dir.FORWARD; 208 var dir = Dir.FORWARD;
210 var pred = null; 209 var pred = null;
211 var predErrorMsg = undefined; 210 var predErrorMsg = undefined;
212 var rootPred = AutomationPredicate.root; 211 var rootPred = AutomationPredicate.root;
213 var speechProps = {}; 212 var speechProps = {};
214 var skipSync = false; 213 var skipSync = false;
215 var didNavigate = false; 214 var didNavigate = false;
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 if (imageNode.imageDataUrl) { 836 if (imageNode.imageDataUrl) {
838 var event = new CustomAutomationEvent( 837 var event = new CustomAutomationEvent(
839 EventType.IMAGE_FRAME_UPDATED, imageNode, 'page'); 838 EventType.IMAGE_FRAME_UPDATED, imageNode, 'page');
840 CommandHandler.onImageFrameUpdated_(event); 839 CommandHandler.onImageFrameUpdated_(event);
841 } else { 840 } else {
842 imageNode.getImageData(0, 0); 841 imageNode.getImageData(0, 0);
843 } 842 }
844 }; 843 };
845 844
846 }); // goog.scope 845 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698