Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |