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

Unified Diff: ui/keyboard/webui/vk_webui_controller.h

Issue 946623002: [Code cleanup]Remove webui keyboard mojo binding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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 | « ui/keyboard/webui/vk_mojo_handler.cc ('k') | ui/keyboard/webui/vk_webui_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/webui/vk_webui_controller.h
diff --git a/ui/keyboard/webui/vk_webui_controller.h b/ui/keyboard/webui/vk_webui_controller.h
deleted file mode 100644
index e1b1876f10671948a94e20ee85d509bead9a976c..0000000000000000000000000000000000000000
--- a/ui/keyboard/webui/vk_webui_controller.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// 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 UI_KEYBOARD_WEBUI_VK_WEBUI_CONTROLLER_H_
-#define UI_KEYBOARD_WEBUI_VK_WEBUI_CONTROLLER_H_
-
-#include "base/macros.h"
-#include "base/memory/singleton.h"
-#include "base/memory/weak_ptr.h"
-#include "content/public/browser/web_ui_controller.h"
-#include "content/public/browser/web_ui_controller_factory.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
-#include "third_party/mojo/src/mojo/public/cpp/system/core.h"
-#include "ui/keyboard/keyboard_export.h"
-#include "ui/keyboard/webui/keyboard.mojom.h"
-
-namespace content {
-class WebUIDataSource;
-}
-
-namespace keyboard {
-
-class VKMojoHandler;
-
-class VKWebUIController : public content::WebUIController {
- public:
- explicit VKWebUIController(content::WebUI* web_ui);
- ~VKWebUIController() override;
-
- private:
- void CreateAndStoreUIHandler(
- mojo::InterfaceRequest<KeyboardUIHandlerMojo> request);
-
- // content::WebUIController:
- void RenderViewCreated(content::RenderViewHost* host) override;
-
- scoped_ptr<VKMojoHandler> ui_handler_;
- base::WeakPtrFactory<VKWebUIController> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(VKWebUIController);
-};
-
-class KEYBOARD_EXPORT VKWebUIControllerFactory
- : public content::WebUIControllerFactory {
- public:
- // WebUIControllerFactory:
- content::WebUI::TypeID GetWebUIType(content::BrowserContext* browser_context,
- const GURL& url) const override;
- bool UseWebUIForURL(content::BrowserContext* browser_context,
- const GURL& url) const override;
- bool UseWebUIBindingsForURL(content::BrowserContext* browser_context,
- const GURL& url) const override;
- content::WebUIController* CreateWebUIControllerForURL(
- content::WebUI* web_ui,
- const GURL& url) const override;
-
- static VKWebUIControllerFactory* GetInstance();
-
- protected:
- VKWebUIControllerFactory();
- ~VKWebUIControllerFactory() override;
-
- private:
- friend struct DefaultSingletonTraits<VKWebUIControllerFactory>;
-
- DISALLOW_COPY_AND_ASSIGN(VKWebUIControllerFactory);
-};
-
-} // namespace keyboard
-
-#endif // UI_KEYBOARD_WEBUI_VK_WEBUI_CONTROLLER_H_
« no previous file with comments | « ui/keyboard/webui/vk_mojo_handler.cc ('k') | ui/keyboard/webui/vk_webui_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698