| 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_
|
|
|