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

Side by Side Diff: content/public/browser/keybinding_handler_factory_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 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_FACTORY_AURAX11_H_
6 #define CONTENT_PUBLIC_BROWSER_KEYBINDING_HANDLER_FACTORY_AURAX11_H_
7
8 #include "content/common/content_export.h"
9
10 namespace content {
11
12 class KeybindingHandlerAuraX11;
13
14 // On Linux Aura, we need a way for the LinuxUI object to translate key
15 // commands to the native content area.
16 class CONTENT_EXPORT KeybindingHandlerFactoryAuraX11 {
17 public:
18 // Sets the factory. This is done inside of the initialization of the LinuxUI
19 // object.
20 static void SetFactory(KeybindingHandlerFactoryAuraX11* factory);
21
22 // Public interface to build a key handler. Can return NULL if no factory is
23 // set.
24 static KeybindingHandlerAuraX11* Build();
25
26 protected:
27 virtual ~KeybindingHandlerFactoryAuraX11() {}
28
29 private:
30 // Creates an instance of the platform and desktop specific translator.
31 virtual KeybindingHandlerAuraX11* Create() = 0;
32 };
33
34 } // namespace content
35
36 #endif // CONTENT_PUBLIC_BROWSER_KEYBINDING_HANDLER_FACTORY_AURAX11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698