| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * @fileoverview Installs stubs for Chrome api's not supported on |
| 7 * specific configurations. Add stubs for new api's that have yet to |
| 8 * land or are not planned for support under specific conditions. |
| 9 */ |
| 10 |
| 11 goog.provide('Stubs'); |
| 12 |
| 13 goog.require('ChromeVoxState'); |
| 14 |
| 15 /** Initializes this module. */ |
| 16 Stubs.init = function() { |
| 17 if (!cvox.ChromeVox.isChromeOS) { |
| 18 chrome.accessibilityPrivate.onAccessibilityGesture = function() {}; |
| 19 chrome.accessibilityPrivate.setFocusRing = function() {}; |
| 20 chrome.accessibilityPrivate.setKeyboardListener = function() {}; |
| 21 chrome.automation.getDesktop = function() {}; |
| 22 } |
| 23 }; |
| 24 |
| 25 Stubs.init(); |
| OLD | NEW |