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

Unified Diff: ios/chrome/browser/ui/webui/version_ui.h

Issue 2041603002: [ios Mojo] Implemented chrome://version. Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_version
Patch Set: Self review Created 4 years, 5 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 | « ios/chrome/browser/ui/webui/version_handler.cc ('k') | ios/chrome/browser/ui/webui/version_ui.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/webui/version_ui.h
diff --git a/ios/chrome/browser/ui/webui/version_ui.h b/ios/chrome/browser/ui/webui/version_ui.h
index 3e56c82867cb23953ef5b35430b305c5082084bf..5f4f92ef2d00b06b0b8dee54795abb6fbe627e9e 100644
--- a/ios/chrome/browser/ui/webui/version_ui.h
+++ b/ios/chrome/browser/ui/webui/version_ui.h
@@ -5,18 +5,27 @@
#ifndef IOS_CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_
#define IOS_CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_
-#include <string>
+#include <memory>
#include "base/macros.h"
-#include "ios/web/public/webui/web_ui_ios_controller.h"
+#include "components/version_ui/version.mojom.h"
+#import "ios/chrome/browser/ui/webui/mojo_web_ui_ios_controller.h"
+
+class VersionHandler;
// The WebUI handler for chrome://version.
-class VersionUI : public web::WebUIIOSController {
+class VersionUI : public MojoWebUIIOSController<mojom::VersionPageHandler> {
public:
explicit VersionUI(web::WebUIIOS* web_ui);
~VersionUI() override;
private:
+ // MojoWebUIIOSController overrides:
+ void BindUIHandler(
+ mojo::InterfaceRequest<mojom::VersionPageHandler> request) override;
+
+ std::unique_ptr<VersionHandler> version_handler_;
+
DISALLOW_COPY_AND_ASSIGN(VersionUI);
};
« no previous file with comments | « ios/chrome/browser/ui/webui/version_handler.cc ('k') | ios/chrome/browser/ui/webui/version_ui.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698