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

Unified Diff: ui/events/ozone/layout/keyboard_layout_engine_manager.h

Issue 742103002: Ozone keyboard layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lite-code
Patch Set: reeeeebase Created 6 years 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « ui/events/ozone/layout/keyboard_layout_engine.h ('k') | ui/events/ozone/layout/keyboard_layout_engine_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698