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

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

Issue 2823903005: Extracts parameters to WindowTreeHostMus into structure (Closed)
Patch Set: move constructor 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_client_unittest.cc ('k') | ui/aura/mus/window_tree_host_mus.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.h
diff --git a/ui/aura/mus/window_tree_host_mus.h b/ui/aura/mus/window_tree_host_mus.h
index 9cbebf3700d8b45fb7fe0d26955629f7f436efa3..b84efb4de91348693ebee5fa1641fd4bae9d2c97 100644
--- a/ui/aura/mus/window_tree_host_mus.h
+++ b/ui/aura/mus/window_tree_host_mus.h
@@ -7,9 +7,7 @@
#include <stdint.h>
-#include <map>
#include <memory>
-#include <string>
#include <vector>
#include "base/macros.h"
@@ -25,32 +23,14 @@ class Display;
namespace aura {
class InputMethodMus;
-class WindowPortMus;
class WindowTreeClient;
class WindowTreeHostMusDelegate;
+struct WindowTreeHostMusInitParams;
+
class AURA_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform {
public:
- // |properties| are applied to the window created by this class (using
- // PropertyConverter).
- // TODO: this should take an unordered_map, see http://crbug.com/670515.
- WindowTreeHostMus(
- std::unique_ptr<WindowPortMus> window_port,
- WindowTreeClient* window_tree_client,
- int64_t display_id,
- const cc::FrameSinkId& frame_sink_id = cc::FrameSinkId(),
- const std::map<std::string, std::vector<uint8_t>>* properties = nullptr);
-
- // This constructor is intended for creating top level windows in
- // non-window-manager code. |properties| are properties passed verbatim to
- // the server, that is, no conversion is done before sending |properties| to
- // the server. Additionally |properties| are passed to PropertyConverter and
- // any known properties are set on the Window created by this class.
- // TODO: this should take an unordered_map, see http://crbug.com/670515.
- explicit WindowTreeHostMus(
- WindowTreeClient* window_tree_client,
- const cc::FrameSinkId& frame_sink_id = cc::FrameSinkId(),
- const std::map<std::string, std::vector<uint8_t>>* properties = nullptr);
+ explicit WindowTreeHostMus(WindowTreeHostMusInitParams init_params);
~WindowTreeHostMus() override;
« no previous file with comments | « ui/aura/mus/window_tree_client_unittest.cc ('k') | ui/aura/mus/window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698