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

Unified Diff: chrome/browser/chromeos/accessibility/event_handler_common.h

Issue 2711343005: Set keys to traverse accessibility tree. Using focus ring to highlight selected node. (Closed)
Patch Set: Fixing closure compilation error Created 3 years, 10 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/chromeos/accessibility/event_handler_common.h
diff --git a/chrome/browser/chromeos/accessibility/event_handler_common.h b/chrome/browser/chromeos/accessibility/event_handler_common.h
new file mode 100644
index 0000000000000000000000000000000000000000..d65bfa3b60d2665fa68dc463cc578a9f074a93db
--- /dev/null
+++ b/chrome/browser/chromeos/accessibility/event_handler_common.h
@@ -0,0 +1,24 @@
+// Copyright 2017 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_EVENT_HANDLER_COMMON_H_
+#define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_EVENT_HANDLER_COMMON_H_
+
+#include "extensions/browser/extension_host.h"
+#include "ui/events/event_handler.h"
+
+namespace chromeos {
+
+// Gets the extension host for the corresponding extension ID.
+extensions::ExtensionHost* GetAccessibilityExtensionHost(
+ const std::string& extension_id);
+
+// Forwards the key event to the extension background page for the
+// corresponding host.
+void ForwardKeyToExtension(const ui::KeyEvent& key_event,
+ extensions::ExtensionHost* host);
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_EVENT_HANDLER_COMMON_H_

Powered by Google App Engine
This is Rietveld 408576698