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

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

Issue 2539263005: Makes WindowTreeHostMus supply properties directly to window creation (Closed)
Patch Set: comment Created 4 years 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_host_mus_delegate.h
diff --git a/ui/aura/mus/window_tree_host_mus_delegate.h b/ui/aura/mus/window_tree_host_mus_delegate.h
index 574fc8b653a0bb60e83bdec2c9d874ecd4c8a971..dd0be599f9cdd4f057ed0a81dfd2d72aed31dc05 100644
--- a/ui/aura/mus/window_tree_host_mus_delegate.h
+++ b/ui/aura/mus/window_tree_host_mus_delegate.h
@@ -5,6 +5,12 @@
#ifndef UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_
#define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_
+#include <stdint.h>
+
+#include <map>
+#include <string>
+#include <vector>
+
#include "ui/aura/aura_export.h"
namespace gfx {
@@ -37,7 +43,9 @@ class AURA_EXPORT WindowTreeHostMusDelegate {
const base::Optional<gfx::Rect>& mask_rect) = 0;
// Called when a WindowTreeHostMus is created without a WindowPort.
- virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel() = 0;
+ // TODO: this should take an unordered_map, see http://crbug.com/670515.
+ virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel(
+ const std::map<std::string, std::vector<uint8_t>>* properties) = 0;
// Called from WindowTreeHostMus's constructor once the Window has been
// created.
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698