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

Unified Diff: components/mus/public/cpp/tests/test_window_tree_client_setup.h

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 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
Index: components/mus/public/cpp/tests/test_window_tree_client_setup.h
diff --git a/components/mus/public/cpp/tests/test_window_tree_client_setup.h b/components/mus/public/cpp/tests/test_window_tree_client_setup.h
index 68861582958a87cdcab1f831229b937c83412411..b2170ccaccb95341472e6cbb0f37e128d025378a 100644
--- a/components/mus/public/cpp/tests/test_window_tree_client_setup.h
+++ b/components/mus/public/cpp/tests/test_window_tree_client_setup.h
@@ -10,6 +10,10 @@
#include "base/macros.h"
#include "components/mus/public/cpp/window_tree_client_observer.h"
+namespace display {
+class Display;
+}
+
namespace mus {
class TestWindowTree;
@@ -24,10 +28,11 @@ class TestWindowTreeClientSetup : public mus::WindowTreeClientObserver {
TestWindowTreeClientSetup();
~TestWindowTreeClientSetup() override;
- // Initializes the WindowTreeClient. |window_manager_delegate| may be
- // null.
- void Init(WindowTreeClientDelegate* window_tree_delegate,
- WindowManagerDelegate* window_manager_delegate);
+ // Initializes the WindowTreeClient.
+ void Init(WindowTreeClientDelegate* window_tree_delegate);
+ void InitForWindowManager(WindowTreeClientDelegate* window_tree_delegate,
+ WindowManagerDelegate* window_manager_delegate,
+ const display::Display& display);
// The WindowTree that WindowTreeClient talks to.
TestWindowTree* window_tree() { return window_tree_.get(); }
@@ -35,6 +40,10 @@ class TestWindowTreeClientSetup : public mus::WindowTreeClientObserver {
WindowTreeClient* window_tree_client();
private:
+ // Called by both implementations of init to perform common initialization.
+ void CommonInit(WindowTreeClientDelegate* window_tree_delegate,
+ WindowManagerDelegate* window_manager_delegate);
+
// mus::WindowTreeClientObserver:
void OnWillDestroyClient(mus::WindowTreeClient* client) override;
« no previous file with comments | « components/mus/public/cpp/tests/BUILD.gn ('k') | components/mus/public/cpp/tests/test_window_tree_client_setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698