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

Unified Diff: components/mus/ws/server_window.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
« no previous file with comments | « components/mus/ws/connection_manager.cc ('k') | components/mus/ws/server_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/server_window.h
diff --git a/components/mus/ws/server_window.h b/components/mus/ws/server_window.h
index d12bdfd75a5161d753a73d94a11c802be636d931..928912511bdc94ee63bf045b96599ccdd55fdf7d 100644
--- a/components/mus/ws/server_window.h
+++ b/components/mus/ws/server_window.h
@@ -40,9 +40,13 @@ class ServerWindowSurfaceManager;
// from the parent.
class ServerWindow {
public:
+ using Properties = std::map<std::string, std::vector<uint8_t>>;
using Windows = std::vector<ServerWindow*>;
ServerWindow(ServerWindowDelegate* delegate, const WindowId& id);
+ ServerWindow(ServerWindowDelegate* delegate,
+ const WindowId& id,
+ const Properties& properties);
~ServerWindow();
void AddObserver(ServerWindowObserver* observer);
@@ -177,7 +181,7 @@ class ServerWindow {
gfx::Transform transform_;
ui::TextInputState text_input_state_;
- std::map<std::string, std::vector<uint8_t>> properties_;
+ Properties properties_;
base::ObserverList<ServerWindowObserver> observers_;
« no previous file with comments | « components/mus/ws/connection_manager.cc ('k') | components/mus/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698