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

Unified Diff: components/mus/ws/server_window.cc

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
« no previous file with comments | « components/mus/ws/server_window.h ('k') | components/mus/ws/window_tree_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/server_window.cc
diff --git a/components/mus/ws/server_window.cc b/components/mus/ws/server_window.cc
index 2e40f6fbf244ad044471698c8fb37e98e526ee11..43fecc60852f598e0673fe2f0910e5e79cb0dcdf 100644
--- a/components/mus/ws/server_window.cc
+++ b/components/mus/ws/server_window.cc
@@ -18,6 +18,11 @@ namespace mus {
namespace ws {
ServerWindow::ServerWindow(ServerWindowDelegate* delegate, const WindowId& id)
+ : ServerWindow(delegate, id, Properties()) {}
+
+ServerWindow::ServerWindow(ServerWindowDelegate* delegate,
+ const WindowId& id,
+ const Properties& properties)
: delegate_(delegate),
id_(id),
parent_(nullptr),
@@ -26,6 +31,7 @@ ServerWindow::ServerWindow(ServerWindowDelegate* delegate, const WindowId& id)
visible_(false),
opacity_(1),
can_focus_(true),
+ properties_(properties),
// Don't notify newly added observers during notification. This causes
// problems for code that adds an observer as part of an observer
// notification (such as ServerWindowDrawTracker).
« no previous file with comments | « components/mus/ws/server_window.h ('k') | components/mus/ws/window_tree_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698