| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/stubs.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/stubs.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/stubs.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d1c93b984e4d2c30ea1452589d996bd3ce08956d
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/stubs.js
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +/**
|
| + * @fileoverview Installs stubs for Chrome api's not supported on
|
| + * specific configurations. Add stubs for new api's that have yet to
|
| + * land or are not planned for support under specific conditions.
|
| + */
|
| +
|
| +goog.provide('Stubs');
|
| +
|
| +goog.require('ChromeVoxState');
|
| +
|
| +/** Initializes this module. */
|
| +Stubs.init = function() {
|
| + if (!cvox.ChromeVox.isChromeOS) {
|
| + chrome.accessibilityPrivate.onAccessibilityGesture = function() {};
|
| + chrome.accessibilityPrivate.setFocusRing = function() {};
|
| + chrome.accessibilityPrivate.setKeyboardListener = function() {};
|
| + chrome.automation.getDesktop = function() {};
|
| + }
|
| +};
|
| +
|
| +Stubs.init();
|
|
|