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

Unified Diff: ui/keyboard/keyboard_ui_controller.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 side-by-side diff with in-line comments
Download patch
Index: ui/keyboard/keyboard_ui_controller.h
diff --git a/ui/keyboard/keyboard_ui_controller.h b/ui/keyboard/keyboard_ui_controller.h
index b06ec26c8e27c4caa078e27e1e0c29afd247a40e..2d02165c91b003a0fa83c74c4e520df38eea3aee 100644
--- a/ui/keyboard/keyboard_ui_controller.h
+++ b/ui/keyboard/keyboard_ui_controller.h
@@ -8,6 +8,10 @@
#include "content/public/browser/web_ui_controller.h"
#include "ui/keyboard/keyboard_export.h"
+namespace aura {
+class RootWindow;
+};
+
namespace content {
class WebUI;
};
@@ -17,10 +21,18 @@ namespace keyboard {
// WebUIController for chrome://keyboard/.
class KEYBOARD_EXPORT KeyboardUIController : public content::WebUIController {
public:
+ // Creates a WebUIController for chrome://keyboard that will log events.
explicit KeyboardUIController(content::WebUI* web_ui);
+
+ // Creates a WebUIController for chrome://keyboard that will route events
+ // from the keyboard to |root_window|.
+ KeyboardUIController(content::WebUI* web_ui, aura::RootWindow* root_window);
+
virtual ~KeyboardUIController();
private:
+ void Init(content::WebUI* web_ui, aura::RootWindow* root_window);
+
DISALLOW_COPY_AND_ASSIGN(KeyboardUIController);
};

Powered by Google App Engine
This is Rietveld 408576698