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

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

Issue 272013002: Provide skeleton for ChromeVox next. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again. Created 6 years, 7 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/chromevox2/cvox2/injected/injected.js
diff --git a/chrome/browser/resources/chromeos/chromevox2/cvox2/injected/injected.js b/chrome/browser/resources/chromeos/chromevox2/cvox2/injected/injected.js
new file mode 100644
index 0000000000000000000000000000000000000000..2174053ec910c1c6455379e7a68b2d7d3ca13341
--- /dev/null
+++ b/chrome/browser/resources/chromeos/chromevox2/cvox2/injected/injected.js
@@ -0,0 +1,19 @@
+// Copyright 2014 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 The entry point for all ChromeVox2 related code for the
+ * injected content script.
+ * This script will temporarily forward any events we need during the
+ * ChromeVox/ChromeVox2 timeframe where extension APIs do not exist (e.g.
+ * keyboard events).
+ */
+
+/** namespace */
+var cvox2 = function() {};
+
+var port = chrome.extension.connect({name: 'chromevox2'});
+document.body.addEventListener('keydown', function(evt) {
+ port.postMessage({keydown: evt.keyCode});
+}, true);

Powered by Google App Engine
This is Rietveld 408576698