OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "platform_view_ios.h" | 5 #include "platform_view_ios.h" |
6 | 6 |
7 namespace sky { | 7 namespace sky { |
8 namespace shell { | 8 namespace shell { |
9 | 9 |
| 10 PlatformView* PlatformView::Create(const Config& config) { |
| 11 return new PlatformViewIOS(config); |
| 12 } |
| 13 |
10 void PlatformViewIOS::SurfaceCreated(gfx::AcceleratedWidget widget) { | 14 void PlatformViewIOS::SurfaceCreated(gfx::AcceleratedWidget widget) { |
11 DCHECK(window_ == 0); | 15 DCHECK(window_ == 0); |
12 window_ = widget; | 16 window_ = widget; |
13 SurfaceWasCreated(); | 17 SurfaceWasCreated(); |
14 } | 18 } |
15 | 19 |
16 void PlatformViewIOS::SurfaceDestroyed() { | 20 void PlatformViewIOS::SurfaceDestroyed() { |
17 DCHECK(window_); | 21 DCHECK(window_); |
18 window_ = 0; | 22 window_ = 0; |
19 SurfaceWasDestroyed(); | 23 SurfaceWasDestroyed(); |
20 } | 24 } |
21 | 25 |
22 } // namespace shell | 26 } // namespace shell |
23 } // namespace sky | 27 } // namespace sky |
OLD | NEW |