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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/injected/loader.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 goog.require('cvox.ApiImplementation');
5 goog.require('KeyboardHandler'); 6 goog.require('KeyboardHandler');
6 7
7 /** 8 /**
8 * Initializes minimal content script. 9 * Initializes minimal content script.
9 */ 10 */
10 function initMin() { 11 function initMin() {
11 if (cvox.ChromeVox.isChromeOS) 12 if (cvox.ChromeVox.isChromeOS) {
13 cvox.ApiImplementation.init();
12 return; 14 return;
15 }
13 16
14 if (cvox.ChromeVox.isClassicEnabled_ === undefined) { 17 if (cvox.ChromeVox.isClassicEnabled_ === undefined) {
15 window.setTimeout(function() { 18 window.setTimeout(function() {
16 initMin(); 19 initMin();
17 }, 500); 20 }, 500);
18 return; 21 return;
19 } 22 }
20 23
21 if (cvox.ChromeVox.isClassicEnabled_) 24 if (cvox.ChromeVox.isClassicEnabled_)
22 return; 25 return;
23 26
24 new KeyboardHandler(); 27 new KeyboardHandler();
25 } 28 }
26 29
27 initMin(); 30 initMin();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698