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

Unified Diff: sky/shell/android/platform_view_android.cc

Issue 1222663003: Rename ViewportObserver to SkyEngine (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: now with moar files 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/android/org/domokit/sky/shell/PlatformViewAndroid.java ('k') | sky/shell/ios/sky_surface.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/android/platform_view_android.cc
diff --git a/sky/shell/android/platform_view_android.cc b/sky/shell/android/platform_view_android.cc
index 7b47d40d6260c3b750df77177ff0ffed15009fed..af9e38c0569ae2428e600d0e9582babddb4f1869 100644
--- a/sky/shell/android/platform_view_android.cc
+++ b/sky/shell/android/platform_view_android.cc
@@ -17,13 +17,13 @@
namespace sky {
namespace shell {
-static jlong Attach(JNIEnv* env, jclass clazz, jint viewportObserverHandle) {
+static jlong Attach(JNIEnv* env, jclass clazz, jint skyEngineHandle) {
ShellView* shell_view = new ShellView(Shell::Shared());
auto view = static_cast<PlatformViewAndroid*>(shell_view->view());
view->SetShellView(make_scoped_ptr(shell_view));
- view->ConnectToViewportObserver(
- mojo::MakeRequest<ViewportObserver>(mojo::ScopedMessagePipeHandle(
- mojo::MessagePipeHandle(viewportObserverHandle))));
+ view->ConnectToEngine(
+ mojo::MakeRequest<SkyEngine>(mojo::ScopedMessagePipeHandle(
+ mojo::MessagePipeHandle(skyEngineHandle))));
return reinterpret_cast<jlong>(shell_view->view());
}
« no previous file with comments | « sky/shell/android/org/domokit/sky/shell/PlatformViewAndroid.java ('k') | sky/shell/ios/sky_surface.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698