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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/stubs.js

Issue 2768703002: Wire up an api to darken screen for accessibility (Closed)
Patch Set: Rebase. 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 side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 3afc66d55b1c4bbf80c477c74cdf7d39efdbbaf7..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/stubs.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2016 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 unsupported api's on some platforms. Define
- * the stubs here and require Stubs in the calling file.
- */
-
-goog.provide('Stubs');
-
-goog.require('cvox.ChromeVox');
-
-/** Initializes this module. */
-Stubs.init = function() {
- // These api's throw for non-Chrome OS.
- if (!cvox.ChromeVox.isChromeOS) {
- chrome.accessibilityPrivate.onAccessibilityGesture = {};
- chrome.accessibilityPrivate.onAccessibilityGesture.addListener =
- function() {};
- chrome.accessibilityPrivate.setFocusRing = function() {};
- chrome.accessibilityPrivate.setKeyboardListener = function() {};
- }
-
- // This api throws on Mac.
- if (cvox.ChromeVox.isMac) {
- chrome.automation.getDesktop = function() {};
- }
-
- // Missing api's until 53.
- if (!chrome.automation.NameFromType) {
- chrome.automation['NameFromType'] = {};
- chrome.automation['DescriptionFromType'] = {};
- }
-};
-
-Stubs.init();

Powered by Google App Engine
This is Rietveld 408576698