Index: ui/keyboard/keyboard_ui_handler.h |
diff --git a/ui/keyboard/keyboard_ui_handler.h b/ui/keyboard/keyboard_ui_handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c737cdaf4ad9be216710eb5330c7f74ee5f98caf |
--- /dev/null |
+++ b/ui/keyboard/keyboard_ui_handler.h |
@@ -0,0 +1,35 @@ |
+// Copyright (c) 2013 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_KEYBOARD_KEYBOARD_UI_HANDLER_H_ |
+#define UI_KEYBOARD_KEYBOARD_UI_HANDLER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/compiler_specific.h" |
+#include "content/public/browser/web_ui_message_handler.h" |
+ |
+namespace keyboard { |
+ |
+// The WebUI handler for chrome://keyboard. |
+class KeyboardUIHandler : public content::WebUIMessageHandler { |
+ public: |
+ // Construct a handler that will deliver events to the RootWindow associated |
+ // with the WebUI. |
Ben Goodger (Google)
2013/04/18 19:50:38
Merge this with the class level comment then delet
bryeung
2013/04/18 20:05:08
Done.
|
+ KeyboardUIHandler(); |
+ |
Ben Goodger (Google)
2013/04/18 19:50:38
delete nl
bryeung
2013/04/18 20:05:08
Done.
|
+ virtual ~KeyboardUIHandler(); |
+ |
+ // |content::WebUIMessageHandler| implementation: |
+ virtual void RegisterMessages() OVERRIDE; |
Ben Goodger (Google)
2013/04/18 19:50:38
move -> private
bryeung
2013/04/18 20:05:08
Done.
|
+ |
+ private: |
+ // Callback for the "sendKeyEvent" message. |
+ void HandleSendKeyEventMessage(const base::ListValue* args); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(KeyboardUIHandler); |
+}; |
+ |
+} // namespace keyboard |
+ |
+#endif // UI_KEYBOARD_KEYBOARD_UI_HANDLER_H_ |