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) { | 10 PlatformView* PlatformView::Create(const Config& config) { |
11 return new PlatformViewIOS(config); | 11 return new PlatformViewIOS(config); |
12 } | 12 } |
13 | 13 |
| 14 PlatformViewIOS::PlatformViewIOS(const Config& config) |
| 15 : PlatformView(config) { |
| 16 } |
| 17 |
| 18 PlatformViewIOS::~PlatformViewIOS() { |
| 19 } |
| 20 |
14 void PlatformViewIOS::SurfaceCreated(gfx::AcceleratedWidget widget) { | 21 void PlatformViewIOS::SurfaceCreated(gfx::AcceleratedWidget widget) { |
15 DCHECK(window_ == 0); | 22 DCHECK(window_ == 0); |
16 window_ = widget; | 23 window_ = widget; |
17 SurfaceWasCreated(); | 24 SurfaceWasCreated(); |
18 } | 25 } |
19 | 26 |
20 void PlatformViewIOS::SurfaceDestroyed() { | 27 void PlatformViewIOS::SurfaceDestroyed() { |
21 DCHECK(window_); | 28 DCHECK(window_); |
22 window_ = 0; | 29 window_ = 0; |
23 SurfaceWasDestroyed(); | 30 SurfaceWasDestroyed(); |
24 } | 31 } |
25 | 32 |
26 } // namespace shell | 33 } // namespace shell |
27 } // namespace sky | 34 } // namespace sky |
OLD | NEW |