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

Unified Diff: ui/aura/mus/window_tree_host_mus_init_params.h

Issue 2839743002: Wires up WindowTreeClient::SetDisplayRoot() (Closed)
Patch Set: add .cc 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 | « ui/aura/mus/window_tree_host_mus.cc ('k') | ui/aura/mus/window_tree_host_mus_init_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_host_mus_init_params.h
diff --git a/ui/aura/mus/window_tree_host_mus_init_params.h b/ui/aura/mus/window_tree_host_mus_init_params.h
index 0501d9b9b31041f7eacdef688a07989fce535e3e..1cc26dd253f0b89e2d18324263376d2556707862 100644
--- a/ui/aura/mus/window_tree_host_mus_init_params.h
+++ b/ui/aura/mus/window_tree_host_mus_init_params.h
@@ -13,13 +13,34 @@
#include <vector>
#include "cc/surfaces/frame_sink_id.h"
+#include "services/ui/public/interfaces/window_manager_constants.mojom.h"
#include "ui/aura/aura_export.h"
+namespace display {
+class Display;
+}
+
namespace aura {
class WindowPortMus;
class WindowTreeClient;
+// Used for a WindowTreeHost that corresponds to a Display that is manually
+// created by the window manager.
+struct AURA_EXPORT DisplayInitParams {
Elliot Glaysher 2017/04/24 21:23:17 Make this a moveable type instead of something put
sky 2017/04/24 21:27:15 I didn't do that for two reasons: 1. I wanted to m
+ DisplayInitParams();
+ ~DisplayInitParams();
+
+ // The display, if not provided then the Display identified by
+ // |WindowTreeHostMusInitParams::display_id| must be one of the Displays
+ // contained in Screen.
+ std::unique_ptr<display::Display> display;
+
+ ui::mojom::WmViewportMetrics viewport_metrics;
+
+ bool is_primary_display = false;
+};
+
// Used to create a WindowTreeHostMus. The typical case is to use
// CreateInitParamsForTopLevel().
struct AURA_EXPORT WindowTreeHostMusInitParams {
@@ -40,6 +61,10 @@ struct AURA_EXPORT WindowTreeHostMusInitParams {
// Id of the display the window should be created on.
int64_t display_id = 0;
+
+ // Used when the WindowTreeHostMus corresponds to a new display manually
+ // created by the window manager.
+ std::unique_ptr<DisplayInitParams> display_init_params;
};
// Creates a WindowTreeHostMusInitParams that is used when creating a top-level
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.cc ('k') | ui/aura/mus/window_tree_host_mus_init_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698