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_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_ |
OLD | NEW |