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

Unified Diff: athena/virtual_keyboard/vk_webui_controller.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
« no previous file with comments | « athena/virtual_keyboard/vk_message_handler.cc ('k') | athena/virtual_keyboard/vk_webui_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/virtual_keyboard/vk_webui_controller.h
diff --git a/athena/virtual_keyboard/vk_webui_controller.h b/athena/virtual_keyboard/vk_webui_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..c2c6ecc3a2b8d7bcd257e7f8951ee098101bc666
--- /dev/null
+++ b/athena/virtual_keyboard/vk_webui_controller.h
@@ -0,0 +1,52 @@
+// 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_WEBUI_CONTROLLER_H_
+#define ATHENA_VIRTUAL_KEYBOARD_VK_WEBUI_CONTROLLER_H_
+
+#include "base/macros.h"
+#include "base/memory/singleton.h"
+#include "content/public/browser/web_ui_controller.h"
+#include "content/public/browser/web_ui_controller_factory.h"
+
+namespace athena {
+
+class VKWebUIController : public content::WebUIController {
+ public:
+ explicit VKWebUIController(content::WebUI* web_ui);
+ virtual ~VKWebUIController();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(VKWebUIController);
+};
+
+class VKWebUIControllerFactory : public content::WebUIControllerFactory {
+ public:
+ // WebUIControllerFactory:
+ virtual content::WebUI::TypeID GetWebUIType(
+ content::BrowserContext* browser_context,
+ const GURL& url) const OVERRIDE;
+ virtual bool UseWebUIForURL(content::BrowserContext* browser_context,
+ const GURL& url) const OVERRIDE;
+ virtual bool UseWebUIBindingsForURL(content::BrowserContext* browser_context,
+ const GURL& url) const OVERRIDE;
+ virtual content::WebUIController* CreateWebUIControllerForURL(
+ content::WebUI* web_ui,
+ const GURL& url) const OVERRIDE;
+
+ static VKWebUIControllerFactory* GetInstance();
+
+ protected:
+ VKWebUIControllerFactory();
+ virtual ~VKWebUIControllerFactory();
+
+ private:
+ friend struct DefaultSingletonTraits<VKWebUIControllerFactory>;
+
+ DISALLOW_COPY_AND_ASSIGN(VKWebUIControllerFactory);
+};
+
+} // namespace athena
+
+#endif // ATHENA_VIRTUAL_KEYBOARD_VK_WEBUI_CONTROLLER_H_
« no previous file with comments | « athena/virtual_keyboard/vk_message_handler.cc ('k') | athena/virtual_keyboard/vk_webui_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698