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

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

Issue 2166563003: Split //blimp/client/core to relevant parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-assignment-source
Patch Set: Created 4 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "blimp/client/core/android/blimp_contents_factory.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/scoped_java_ref.h"
9 #include "blimp/client/core/android/blimp_contents_impl_android.h"
10 #include "blimp/client/core/blimp_contents_impl.h"
11 #include "jni/BlimpContentsFactory_jni.h"
12
13 namespace blimp {
14 namespace client {
15
16 static base::android::ScopedJavaLocalRef<jobject> CreateBlimpContents(
17 JNIEnv* env,
18 const JavaParamRef<jclass>& clazz) {
19 // To delete |blimp_contents_impl|, the Java caller must call the
20 // destroy() method on BlimpContents.
21 BlimpContentsImpl* blimp_contents_impl = new BlimpContentsImpl;
22 return blimp_contents_impl->GetJavaBlimpContentsImpl();
23 }
24
25 bool RegisterBlimpContentsFactoryJni(JNIEnv* env) {
26 return RegisterNativesImpl(env);
27 }
28
29 } // namespace client
30 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/android/blimp_contents_factory.h ('k') | blimp/client/core/android/blimp_contents_impl_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698