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

Side by Side Diff: blimp/client/core/contents/android/blimp_contents_factory.cc

Issue 2233023002: Adding BlimpNavigationController to Tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nav_handler_remove
Patch Set: Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "blimp/client/core/contents/android/blimp_contents_factory.h" 5 #include "blimp/client/core/contents/android/blimp_contents_factory.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "blimp/client/core/contents/android/blimp_contents_impl_android.h" 9 #include "blimp/client/core/contents/android/blimp_contents_impl_android.h"
10 #include "blimp/client/core/contents/blimp_contents_impl.h" 10 #include "blimp/client/core/contents/blimp_contents_impl.h"
11 #include "jni/BlimpContentsFactory_jni.h" 11 #include "jni/BlimpContentsFactory_jni.h"
12 12
13 using base::android::JavaParamRef; 13 using base::android::JavaParamRef;
14 14
15 namespace blimp { 15 namespace blimp {
16 namespace client { 16 namespace client {
17 17
18 static base::android::ScopedJavaLocalRef<jobject> CreateBlimpContents( 18 static base::android::ScopedJavaLocalRef<jobject> CreateBlimpContents(
19 JNIEnv* env, 19 JNIEnv* env,
20 const JavaParamRef<jclass>& clazz) { 20 const JavaParamRef<jclass>& clazz) {
21 // To delete |blimp_contents_impl|, the Java caller must call the 21 // To delete |blimp_contents_impl|, the Java caller must call the
22 // destroy() method on BlimpContents. 22 // destroy() method on BlimpContents.
23 BlimpContentsImpl* blimp_contents_impl = new BlimpContentsImpl; 23 BlimpContentsImpl* blimp_contents_impl = new BlimpContentsImpl;
24 return blimp_contents_impl->GetJavaBlimpContentsImpl(); 24 return blimp_contents_impl->GetJavaObject();
25 } 25 }
26 26
27 bool RegisterBlimpContentsFactoryJni(JNIEnv* env) { 27 bool RegisterBlimpContentsFactoryJni(JNIEnv* env) {
28 return RegisterNativesImpl(env); 28 return RegisterNativesImpl(env);
29 } 29 }
30 30
31 } // namespace client 31 } // namespace client
32 } // namespace blimp 32 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698