Index: ui/events/ozone/layout/keyboard_layout_engine_manager.h |
diff --git a/ui/events/ozone/layout/keyboard_layout_engine_manager.h b/ui/events/ozone/layout/keyboard_layout_engine_manager.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dc87430934dc97a69b45bb88f3290d1ff281bc9a |
--- /dev/null |
+++ b/ui/events/ozone/layout/keyboard_layout_engine_manager.h |
@@ -0,0 +1,33 @@ |
+// Copyright 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 UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_MANAGER_H_ |
+#define UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_MANAGER_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "ui/events/ozone/layout/events_ozone_layout_export.h" |
+ |
+namespace ui { |
+ |
+class KeyboardLayoutEngine; |
+ |
+class EVENTS_OZONE_LAYOUT_EXPORT KeyboardLayoutEngineManager { |
+ public: |
+ virtual ~KeyboardLayoutEngineManager(); |
+ |
+ static void SetKeyboardLayoutEngine(scoped_ptr<KeyboardLayoutEngine> engine); |
+ static KeyboardLayoutEngine* GetKeyboardLayoutEngine(); |
+ |
+ private: |
+ KeyboardLayoutEngineManager(KeyboardLayoutEngine* engine); |
+ |
+ static KeyboardLayoutEngineManager* instance_; |
+ scoped_ptr<KeyboardLayoutEngine> keyboard_layout_engine_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(KeyboardLayoutEngineManager); |
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_MANAGER_H_ |