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

Side by Side Diff: content/common/android/surface_texture_bridge.h

Issue 10968009: Android: generates JNI bindings for constructors in system classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam comment Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ 5 #ifndef CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_
6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ 6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 29 matching lines...) Expand all
40 return texture_id_; 40 return texture_id_;
41 } 41 }
42 42
43 const base::android::JavaRef<jobject>& j_surface_texture() const { 43 const base::android::JavaRef<jobject>& j_surface_texture() const {
44 return j_surface_texture_; 44 return j_surface_texture_;
45 } 45 }
46 46
47 private: 47 private:
48 const int texture_id_; 48 const int texture_id_;
49 49
50 // Java SurfaceTexture class and instance. 50 // Java SurfaceTexture instance.
51 base::android::ScopedJavaGlobalRef<jclass> j_class_;
52 base::android::ScopedJavaGlobalRef<jobject> j_surface_texture_; 51 base::android::ScopedJavaGlobalRef<jobject> j_surface_texture_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureBridge); 53 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureBridge);
55 }; 54 };
56 55
57 } // namespace content 56 } // namespace content
58 57
59 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_ 58 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_BRIDGE_H_
OLDNEW
« no previous file with comments | « base/android/jni_generator/jni_generator_tests.py ('k') | content/common/android/surface_texture_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698