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

Unified Diff: ui/aura/window.cc

Issue 2733303004: Removes WmShell::NewWindow() (Closed)
Patch Set: merge and feedback Created 3 years, 9 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/window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 40a77de448fd8dd543f475990d78c9ab438d134d..481b03943ed56a785b73d5997666e462d66c300e 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -46,13 +46,16 @@
namespace aura {
-Window::Window(WindowDelegate* delegate) : Window(delegate, nullptr) {}
+Window::Window(WindowDelegate* delegate, ui::wm::WindowType type)
+ : Window(delegate, nullptr, type) {}
-Window::Window(WindowDelegate* delegate, std::unique_ptr<WindowPort> port)
+Window::Window(WindowDelegate* delegate,
+ std::unique_ptr<WindowPort> port,
+ ui::wm::WindowType type)
: port_owner_(std::move(port)),
port_(port_owner_.get()),
host_(nullptr),
- type_(ui::wm::WINDOW_TYPE_UNKNOWN),
+ type_(type),
owned_by_parent_(true),
delegate_(delegate),
parent_(nullptr),
« no previous file with comments | « ui/aura/window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698