Index: content/public/browser/keybinding_handler_aurax11.h |
diff --git a/content/public/browser/keybinding_handler_aurax11.h b/content/public/browser/keybinding_handler_aurax11.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..941b730305819314251dca5173999a7e5e5be8c8 |
--- /dev/null |
+++ b/content/public/browser/keybinding_handler_aurax11.h |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 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. |
+ |
+#ifndef CONTENT_PUBLIC_BROWSER_KEYBINDING_HANDLER_AURAX11_H_ |
+#define CONTENT_PUBLIC_BROWSER_KEYBINDING_HANDLER_AURAX11_H_ |
+ |
+#include "content/common/content_export.h" |
+#include "content/public/common/edit_command.h" |
+ |
+namespace content { |
+ |
+struct NativeWebKeyboardEvent; |
+ |
+// On Linux Aura, we need a way for the LinuxUI object to translate key |
+// commands to the native content area. |
+class CONTENT_EXPORT KeybindingHandlerAuraX11 { |
piman
2014/03/26 23:44:26
Could it make sense to have this and the other cla
|
+ public: |
+ virtual ~KeybindingHandlerAuraX11() {} |
+ |
+ // Matches a key event against predefined gtk key bindings, false will be |
+ // returned if the key event doesn't correspond to a predefined key binding. |
+ // Edit commands matched with |wke| will be stored in |edit_commands|. |
+ virtual bool Match(const NativeWebKeyboardEvent& wke, |
+ EditCommands* edit_commands) = 0; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_KEYBINDING_HANDLER_AURAX11_H_ |