OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ATHENA_VIRTUAL_KEYBOARD_VK_MESSAGE_HANDLER_H_ |
| 6 #define ATHENA_VIRTUAL_KEYBOARD_VK_MESSAGE_HANDLER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/public/browser/web_ui_message_handler.h" |
| 10 |
| 11 namespace base { |
| 12 class ListValue; |
| 13 } |
| 14 |
| 15 namespace athena { |
| 16 |
| 17 // Processes WebUI messages for chrome://keyboard. |
| 18 class VKMessageHandler : public content::WebUIMessageHandler { |
| 19 public: |
| 20 VKMessageHandler(); |
| 21 virtual ~VKMessageHandler(); |
| 22 |
| 23 private: |
| 24 // WebUI message callbacks. |
| 25 void SendKeyEvent(const base::ListValue* params); |
| 26 void HideKeyboard(const base::ListValue* params); |
| 27 |
| 28 // content::WebUIMessageHandler: |
| 29 virtual void RegisterMessages() OVERRIDE; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(VKMessageHandler); |
| 32 }; |
| 33 |
| 34 } // namespace athena |
| 35 |
| 36 #endif // ATHENA_VIRTUAL_KEYBOARD_VK_MESSAGE_HANDLER_H_ |
OLD | NEW |