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

Unified Diff: chrome/browser/chromeos/chrome_interface_factory.h

Issue 1984433002: Hook up Chrome's wallpaper picker for mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add explicit WallpaperLayout enum conversion functions. Created 4 years, 7 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 | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/chrome_interface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/chrome_interface_factory.h
diff --git a/chrome/browser/chromeos/chrome_interface_factory.h b/chrome/browser/chromeos/chrome_interface_factory.h
index a56e6172e784c7000db0a2b6ac85a06fade42e44..0da7cba68a399fc1edca4ce3d0048f2e4a559cae 100644
--- a/chrome/browser/chromeos/chrome_interface_factory.h
+++ b/chrome/browser/chromeos/chrome_interface_factory.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
#define CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
+#include "ash/sysui/public/interfaces/wallpaper.mojom.h"
#include "content/public/common/mojo_shell_connection.h"
#include "mash/public/interfaces/launchable.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.h"
@@ -14,6 +15,7 @@
class AppListPresenterService;
class ChromeLaunchable;
+class ChromeWallpaperManager;
class KeyboardUIService;
namespace chromeos {
@@ -21,9 +23,10 @@ namespace chromeos {
// InterfaceFactory for creating all services provided by chrome.
class ChromeInterfaceFactory
: public content::MojoShellConnection::Listener,
+ public shell::InterfaceFactory<keyboard::mojom::Keyboard>,
public shell::InterfaceFactory<mash::mojom::Launchable>,
- public shell::InterfaceFactory<app_list::mojom::AppListPresenter>,
- public shell::InterfaceFactory<keyboard::mojom::Keyboard> {
+ public shell::InterfaceFactory<ash::sysui::mojom::WallpaperManager>,
+ public shell::InterfaceFactory<app_list::mojom::AppListPresenter> {
public:
ChromeInterfaceFactory();
~ChromeInterfaceFactory() override;
@@ -41,6 +44,10 @@ class ChromeInterfaceFactory
void Create(shell::Connection* connection,
mash::mojom::LaunchableRequest request) override;
+ // mojo::InterfaceFactory<ash::sysui::mojom::WallpaperManager>
+ void Create(shell::Connection* connection,
+ ash::sysui::mojom::WallpaperManagerRequest request) override;
+
// mojo::InterfaceFactory<app_list::AppListPresenter>:
void Create(shell::Connection* connection,
mojo::InterfaceRequest<app_list::mojom::AppListPresenter> request)
@@ -49,6 +56,7 @@ class ChromeInterfaceFactory
std::unique_ptr<KeyboardUIService> keyboard_ui_service_;
mojo::BindingSet<keyboard::mojom::Keyboard> keyboard_bindings_;
std::unique_ptr<ChromeLaunchable> launchable_;
+ std::unique_ptr<ChromeWallpaperManager> wallpaper_manager_;
std::unique_ptr<AppListPresenterService> app_list_presenter_service_;
mojo::BindingSet<app_list::mojom::AppListPresenter>
app_list_presenter_bindings_;
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/chrome_interface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698