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

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

Issue 1187503003: Refactor SkyShell to allow multiple SkyViews (Closed) Base URL: git@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
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) {
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
OLDNEW
« sky/shell/instance.h ('K') | « sky/shell/instance.cc ('k') | sky/shell/ios/sky_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698