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

Side by Side Diff: ui/platform_window/platform_window.cc

Issue 1390883003: aura: Unify WindowTreeHost for some platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/platform_window/platform_window.h"
6
7 #if defined(OS_WIN)
8 #include "ui/platform_window/win/win_window.h"
9 #elif defined(USE_OZONE)
10 #include "ui/ozone/public/ozone_platform.h"
sadrul 2015/10/08 15:18:10 We can't depend on ozone from here, since ozone al
no sievers 2015/10/09 00:34:18 Done.
11 #endif
12
13 namespace ui {
14
15 #if defined(OS_WIN)
16 // static
17 scoped_ptr<PlatformWindow> PlatformWindow::Create(
18 PlatformWindowDelegate* delegate,
19 const gfx::Rect& bounds) {
20 return new WinWindow(delegate, bounds);
21 }
22 #elif defined(USE_OZONE)
23 // static
24 scoped_ptr<PlatformWindow> PlatformWindow::Create(
25 PlatformWindowDelegate* delegate,
26 const gfx::Rect& bounds) {
27 return ui::OzonePlatform::GetInstance()->CreatePlatformWindow(delegate,
28 bounds);
29 }
30 #endif
31
32 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698