Index: content/public/browser/keybinding_handler_factory_aurax11.h |
diff --git a/content/public/browser/keybinding_handler_factory_aurax11.h b/content/public/browser/keybinding_handler_factory_aurax11.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bbdc877b14dce590a88b6e520e40ba468d7b85a4 |
--- /dev/null |
+++ b/content/public/browser/keybinding_handler_factory_aurax11.h |
@@ -0,0 +1,36 @@ |
+// 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_FACTORY_AURAX11_H_ |
+#define CONTENT_PUBLIC_BROWSER_KEYBINDING_HANDLER_FACTORY_AURAX11_H_ |
+ |
+#include "content/common/content_export.h" |
+ |
+namespace content { |
+ |
+class KeybindingHandlerAuraX11; |
+ |
+// On Linux Aura, we need a way for the LinuxUI object to translate key |
+// commands to the native content area. |
+class CONTENT_EXPORT KeybindingHandlerFactoryAuraX11 { |
+ public: |
+ // Sets the factory. This is done inside of the initialization of the LinuxUI |
+ // object. |
+ static void SetFactory(KeybindingHandlerFactoryAuraX11* factory); |
+ |
+ // Public interface to build a key handler. Can return NULL if no factory is |
+ // set. |
+ static KeybindingHandlerAuraX11* Build(); |
+ |
+ protected: |
+ virtual ~KeybindingHandlerFactoryAuraX11() {} |
+ |
+ private: |
+ // Creates an instance of the platform and desktop specific translator. |
+ virtual KeybindingHandlerAuraX11* Create() = 0; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_KEYBINDING_HANDLER_FACTORY_AURAX11_H_ |