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

Unified Diff: content/public/browser/keybinding_handler_aurax11.h

Issue 213283004: linux_aura: Port GtkKeybindingsHandler to Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Manually sort gyp file. Created 6 years, 9 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
« no previous file with comments | « content/content_common.gypi ('k') | content/public/browser/keybinding_handler_factory_aurax11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « content/content_common.gypi ('k') | content/public/browser/keybinding_handler_factory_aurax11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698