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

Side by Side Diff: sky/shell/ios/platform_view_ios.mm

Issue 1188633002: Fix iOS builds after ShellView refactor on Android (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « sky/shell/ios/platform_view_ios.h ('k') | sky/shell/ios/sky_surface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « sky/shell/ios/platform_view_ios.h ('k') | sky/shell/ios/sky_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698