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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox2/cvox2/injected/injected.js

Issue 584313003: Enable runtime switching between ChromeVox and ChromeVox next via command line. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make changes to exclude files/paths from webstore release. Created 6 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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 The entry point for all ChromeVox2 related code for the
7 * injected content script.
8 * This script will temporarily forward any events we need during the
9 * ChromeVox/ChromeVox2 timeframe where extension APIs do not exist (e.g.
10 * keyboard events).
11 */
12
13 goog.provide('cvox2.Injected');
14
15 var port = chrome.extension.connect({name: 'chromevox2'});
16 document.body.addEventListener('keydown', function(evt) {
17 port.postMessage({keydown: evt.keyCode});
18 }, true);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698