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

Unified Diff: ui/aura/window_tree_host_win.cc

Issue 403263002: platform-window: Add a PlatformWindowFactory for creating windows. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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_tree_host_win.h ('k') | ui/ozone/demo/ozone_demo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host_win.cc
diff --git a/ui/aura/window_tree_host_win.cc b/ui/aura/window_tree_host_win.cc
index 51bbcc6d7d55b7167ab8eedf52a79cd205740b2c..625776306fc7b103fdb9486f248e6068efa3d754 100644
--- a/ui/aura/window_tree_host_win.cc
+++ b/ui/aura/window_tree_host_win.cc
@@ -19,7 +19,8 @@
#include "ui/gfx/insets.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/screen.h"
-#include "ui/platform_window/win/win_window.h"
+#include "ui/platform_window/platform_window_factory.h"
+#include "ui/platform_window/types/platform_window.h"
using std::max;
using std::min;
@@ -45,7 +46,10 @@ gfx::Size WindowTreeHost::GetNativeScreenSize() {
WindowTreeHostWin::WindowTreeHostWin(const gfx::Rect& bounds)
: has_capture_(false),
widget_(gfx::kNullAcceleratedWidget),
- window_(new ui::WinWindow(this, bounds)) {
+ window_(ui::PlatformWindowFactory::GetInstance()->CreatePlatformWindow(
+ this,
+ bounds)) {
+ CHECK(window_);
}
WindowTreeHostWin::~WindowTreeHostWin() {
« no previous file with comments | « ui/aura/window_tree_host_win.h ('k') | ui/ozone/demo/ozone_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698