OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 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 CONTENT_PUBLIC_BROWSER_KEYBINDING_HANDLER_AURAX11_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_KEYBINDING_HANDLER_AURAX11_H_ | |
7 | |
8 #include "content/common/content_export.h" | |
9 #include "content/public/common/edit_command.h" | |
10 | |
11 namespace content { | |
12 | |
13 struct NativeWebKeyboardEvent; | |
14 | |
15 // On Linux Aura, we need a way for the LinuxUI object to translate key | |
16 // commands to the native content area. | |
17 class CONTENT_EXPORT KeybindingHandlerAuraX11 { | |
piman
2014/03/26 23:44:26
Could it make sense to have this and the other cla
| |
18 public: | |
19 virtual ~KeybindingHandlerAuraX11() {} | |
20 | |
21 // Matches a key event against predefined gtk key bindings, false will be | |
22 // returned if the key event doesn't correspond to a predefined key binding. | |
23 // Edit commands matched with |wke| will be stored in |edit_commands|. | |
24 virtual bool Match(const NativeWebKeyboardEvent& wke, | |
25 EditCommands* edit_commands) = 0; | |
26 }; | |
27 | |
28 } // namespace content | |
29 | |
30 #endif // CONTENT_PUBLIC_BROWSER_KEYBINDING_HANDLER_AURAX11_H_ | |
OLD | NEW |