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

Unified Diff: components/mus/public/cpp/window_tree_connection.h

Issue 1474543002: Makes NewWindow() take set of properties for window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke shadow_style changes Created 5 years, 1 month 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/window_tree_connection.h
diff --git a/components/mus/public/cpp/window_tree_connection.h b/components/mus/public/cpp/window_tree_connection.h
index 659dc62c80555bff42e504630918f2f552feef67..fc5b7db3675a76a38d8356db5aecfa0a6a891ef6 100644
--- a/components/mus/public/cpp/window_tree_connection.h
+++ b/components/mus/public/cpp/window_tree_connection.h
@@ -5,7 +5,9 @@
#ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_
#define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_
+#include <map>
#include <string>
+#include <vector>
#include "components/mus/common/types.h"
#include "components/mus/public/interfaces/window_tree.mojom.h"
@@ -56,7 +58,9 @@ class WindowTreeConnection {
// Creates and returns a new Window (which is owned by the window server).
// Windows are initially hidden, use SetVisible(true) to show.
- virtual Window* NewWindow() = 0;
+ Window* NewWindow() { return NewWindow(nullptr); }
+ virtual Window* NewWindow(
+ const std::map<std::string, std::vector<uint8_t>>* properties) = 0;
// Returns true if ACCESS_POLICY_EMBED_ROOT was specified.
virtual bool IsEmbedRoot() = 0;
« no previous file with comments | « components/mus/public/cpp/tests/test_window_tree.cc ('k') | components/mus/public/interfaces/window_manager.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698