| 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('cvox.ApiImplementation'); |
| 6 goog.require('KeyboardHandler'); | 6 goog.require('KeyboardHandler'); |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Initializes minimal content script. | 9 * Initializes minimal content script. |
| 10 */ | 10 */ |
| 11 function initMin() { | 11 function initMin() { |
| 12 if (cvox.ChromeVox.isChromeOS) { | 12 if (cvox.ChromeVox.isChromeOS) { |
| 13 cvox.ApiImplementation.init(); | 13 cvox.ApiImplementation.init(true); |
| 14 return; | 14 return; |
| 15 } | 15 } |
| 16 | 16 |
| 17 if (cvox.ChromeVox.isClassicEnabled_ === undefined) { | 17 if (cvox.ChromeVox.isClassicEnabled_ === undefined) { |
| 18 window.setTimeout(function() { | 18 window.setTimeout(function() { |
| 19 initMin(); | 19 initMin(); |
| 20 }, 500); | 20 }, 500); |
| 21 return; | 21 return; |
| 22 } | 22 } |
| 23 | 23 |
| 24 if (cvox.ChromeVox.isClassicEnabled_) | 24 if (cvox.ChromeVox.isClassicEnabled_) |
| 25 return; | 25 return; |
| 26 | 26 |
| 27 new KeyboardHandler(); | 27 new KeyboardHandler(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 initMin(); | 30 initMin(); |
| OLD | NEW |