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

Unified Diff: ash/mus/window_manager_application.h

Issue 2840043003: chromeos: Makes mushrome use simplified display management (Closed)
Patch Set: merge Created 3 years, 8 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 | « ash/mus/window_manager.cc ('k') | ash/mus/window_manager_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager_application.h
diff --git a/ash/mus/window_manager_application.h b/ash/mus/window_manager_application.h
index bbab43db21114caa99d3bbc287ba6184e61d6489..e878d399e4b9b4e6ed06add4f089a1fb56d3154d 100644
--- a/ash/mus/window_manager_application.h
+++ b/ash/mus/window_manager_application.h
@@ -10,7 +10,9 @@
#include <memory>
#include <set>
+#include "ash/public/cpp/config.h"
#include "ash/public/interfaces/wallpaper.mojom.h"
+#include "ash/shell_delegate.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "mojo/public/cpp/bindings/binding.h"
@@ -33,11 +35,16 @@ class ScopedFakeStatisticsProvider;
}
}
+namespace service_manager {
+class Connector;
+}
+
namespace views {
class AuraInit;
}
namespace ash {
+
namespace test {
class AshTestHelper;
}
@@ -49,11 +56,19 @@ class WindowManager;
// Hosts the window manager and the ash system user interface for mash.
class WindowManagerApplication : public service_manager::Service {
public:
- WindowManagerApplication();
+ // If |observer| is non-null it is added to the WindowManager once created.
+ // See WindowManager's constructor for details of
+ // |show_primary_host_on_connect|.
+ explicit WindowManagerApplication(
+ bool show_primary_host_on_connect,
+ Config ash_config = Config::MASH,
+ std::unique_ptr<ash::ShellDelegate> shell_delegate = nullptr);
~WindowManagerApplication() override;
WindowManager* window_manager() { return window_manager_.get(); }
+ service_manager::Connector* GetConnector();
+
private:
friend class ash::test::AshTestHelper;
friend class WmTestBase;
@@ -75,6 +90,8 @@ class WindowManagerApplication : public service_manager::Service {
const std::string& interface_name,
mojo::ScopedMessagePipeHandle interface_pipe) override;
+ const bool show_primary_host_on_connect_;
+
tracing::Provider tracing_;
std::unique_ptr<views::AuraInit> aura_init_;
@@ -90,6 +107,10 @@ class WindowManagerApplication : public service_manager::Service {
service_manager::BinderRegistry registry_;
+ std::unique_ptr<ShellDelegate> shell_delegate_;
+
+ const Config ash_config_;
+
DISALLOW_COPY_AND_ASSIGN(WindowManagerApplication);
};
« no previous file with comments | « ash/mus/window_manager.cc ('k') | ash/mus/window_manager_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698