Index: ui/gfx/android/window_android.h |
diff --git a/ui/gfx/android/window_android.h b/ui/gfx/android/window_android.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..75849b54b66b2f1e8d03784696c657ee5489e67b |
--- /dev/null |
+++ b/ui/gfx/android/window_android.h |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2012 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. |
+ |
+#ifndef UI_GFX_ANDROID_WINDOW_ANDROID_H_ |
+#define UI_GFX_ANDROID_WINDOW_ANDROID_H_ |
+ |
+#include <jni.h> |
+#include "base/android/scoped_java_ref.h" |
+ |
+class WindowAndroid{ |
+ public: |
+ WindowAndroid(JNIEnv* env, jobject obj); |
+ virtual ~WindowAndroid(); |
+ void Destroy(JNIEnv* env, jobject obj); |
+ |
+ base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); |
+ |
+ private: |
+ struct JavaObject; |
+ JavaObject* java_object_; |
+}; |
+ |
+bool RegisterWindowAndroid(JNIEnv* env); |
+ |
+#endif // UI_GFX_ANDROID_WINDOW_ANDROID_H_ |