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

Side by Side 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, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« 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