OLD | NEW |
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(); |
OLD | NEW |