| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_EVENT_HANDLER_COMMON_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_EVENT_HANDLER_COMMON_H_ |
| 7 |
| 8 #include "extensions/browser/extension_host.h" |
| 9 #include "ui/events/event_handler.h" |
| 10 |
| 11 namespace chromeos { |
| 12 |
| 13 // Gets the extension host for the corresponding extension ID. |
| 14 extensions::ExtensionHost* GetAccessibilityExtensionHost( |
| 15 const std::string& extension_id); |
| 16 |
| 17 // Forwards the key event to the extension background page for the |
| 18 // corresponding host. |
| 19 void ForwardKeyToExtension(const ui::KeyEvent& key_event, |
| 20 extensions::ExtensionHost* host); |
| 21 |
| 22 } // namespace chromeos |
| 23 |
| 24 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_EVENT_HANDLER_COMMON_H_ |
| OLD | NEW |