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

Unified Diff: sky/shell/ios/platform_view_ios.mm

Issue 1171573002: Basic Sky shell for iOS targets (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Service provider platform task runner refactor to be platform agnostic 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/shell/ios/platform_view_ios.h ('k') | sky/shell/ios/sky_app_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/ios/platform_view_ios.mm
diff --git a/sky/shell/ios/platform_view_ios.mm b/sky/shell/ios/platform_view_ios.mm
new file mode 100644
index 0000000000000000000000000000000000000000..7ef5d166579b492a339b3fdc69ef72b8ef3cea3d
--- /dev/null
+++ b/sky/shell/ios/platform_view_ios.mm
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "platform_view_ios.h"
+
+namespace sky {
+namespace shell {
+
+void PlatformViewIOS::SurfaceCreated(gfx::AcceleratedWidget widget) {
+ DCHECK(window_ == 0);
+ window_ = widget;
+ SurfaceWasCreated();
+}
+
+void PlatformViewIOS::SurfaceDestroyed() {
+ DCHECK(window_);
+ window_ = 0;
+ SurfaceWasDestroyed();
+}
+
+} // namespace shell
+} // namespace sky
« no previous file with comments | « sky/shell/ios/platform_view_ios.h ('k') | sky/shell/ios/sky_app_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698