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

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: address review comments (Wez) + cleanup 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..4aa09e1f63e272fe5ae3df9523c8bb5c18d94320
--- /dev/null
+++ b/ui/events/ozone/layout/keyboard_layout_engine_manager.h
@@ -0,0 +1,31 @@
+// 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_;
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698