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

Side by Side Diff: ui/keyboard/keyboard_ui_handler.h

Issue 14161009: WebUIHandler for chrome://keyboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 UI_KEYBOARD_KEYBOARD_UI_HANDLER_H_
6 #define UI_KEYBOARD_KEYBOARD_UI_HANDLER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/web_ui_message_handler.h"
11
12 namespace aura {
13 class RootWindow;
14 }
15
16 namespace keyboard {
17
18 // The WebUI handler for chrome://keyboard.
19 class KeyboardUIHandler : public content::WebUIMessageHandler {
20 public:
21 // Construct a nop handler, which will log events but be unable to deliver
22 // them.
23 KeyboardUIHandler();
sadrul 2013/04/17 19:04:35 Is having this useful?
bryeung 2013/04/17 19:31:46 Good point: might as well pass NULL below. Remove
24
25 // Construct a handler that will deliver events to |root_window|.
26 explicit KeyboardUIHandler(aura::RootWindow* root_window);
27
28 virtual ~KeyboardUIHandler();
29
30 // |content::WebUIMessageHandler| implementation:
31 virtual void RegisterMessages() OVERRIDE;
32
33 private:
34 // Callback for the "sendKeyEvent" message.
35 void HandleSendKeyEventMessage(const base::ListValue* args);
36
37 aura::RootWindow* root_window_;
38
39 DISALLOW_COPY_AND_ASSIGN(KeyboardUIHandler);
40 };
41
42 } // namespace keyboard
43
44 #endif // UI_KEYBOARD_KEYBOARD_UI_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698