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

Side by Side Diff: chrome/browser/ui/webui/version_ui.h

Issue 1486403002: Mojo-ifying chrome://version. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing DOMContentLoaded TODO. Created 5 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_
7 7
8 #include "chrome/browser/ui/webui/mojo_web_ui_controller.h"
9 #include "chrome/browser/ui/webui/version.mojom.h"
8 #include "content/public/browser/web_ui_controller.h" 10 #include "content/public/browser/web_ui_controller.h"
9 11
10 // The WebUI handler for chrome://version. 12 // The WebUI handler for chrome://version.
11 class VersionUI : public content::WebUIController { 13 class VersionUI : public MojoWebUIController<VersionHandlerMojo> {
12 public: 14 public:
13 explicit VersionUI(content::WebUI* web_ui); 15 explicit VersionUI(content::WebUI* web_ui);
14 ~VersionUI() override; 16 ~VersionUI() override;
15 17
16 private: 18 private:
19 // MojoWebUIController overrides:
20 void BindUIHandler(
21 mojo::InterfaceRequest<VersionHandlerMojo> request) override;
22
17 DISALLOW_COPY_AND_ASSIGN(VersionUI); 23 DISALLOW_COPY_AND_ASSIGN(VersionUI);
18 }; 24 };
19 25
20 #endif // CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_ 26 #endif // CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698