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

Unified Diff: athena/virtual_keyboard/vk_message_handler.h

Issue 335793005: athena: Add support for virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 months 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: athena/virtual_keyboard/vk_message_handler.h
diff --git a/athena/virtual_keyboard/vk_message_handler.h b/athena/virtual_keyboard/vk_message_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..1fc6c7f31bcfa58b86e5668a355bf7993b6f8849
--- /dev/null
+++ b/athena/virtual_keyboard/vk_message_handler.h
@@ -0,0 +1,36 @@
+// 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 ATHENA_VIRTUAL_KEYBOARD_VK_MESSAGE_HANDLER_H_
+#define ATHENA_VIRTUAL_KEYBOARD_VK_MESSAGE_HANDLER_H_
+
+#include "base/macros.h"
+#include "content/public/browser/web_ui_message_handler.h"
+
+namespace base {
+class ListValue;
+}
+
+namespace athena {
+
+// Processes WebUI messages for chrome://keyboard.
+class VKMessageHandler : public content::WebUIMessageHandler {
+ public:
+ VKMessageHandler();
+ virtual ~VKMessageHandler();
+
+ private:
+ // WebUI message callbacks.
+ void SendKeyEvent(const base::ListValue* params);
+ void HideKeyboard(const base::ListValue* params);
+
+ // content::WebUIMessageHandler:
+ virtual void RegisterMessages() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(VKMessageHandler);
+};
+
+} // namespace athena
+
+#endif // ATHENA_VIRTUAL_KEYBOARD_VK_MESSAGE_HANDLER_H_
« no previous file with comments | « athena/virtual_keyboard/virtual_keyboard_manager_impl.cc ('k') | athena/virtual_keyboard/vk_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698