#ifndef UI_BASE_ANDROID_VIEW_ANDROID_H_
#define UI_BASE_ANDROID_VIEW_ANDROID_H_
#include <jni.h>
#include "base/android/jni_helper.h"
#include "base/android/scoped_java_ref.h"
#include "ui/base/ui_base_export.h"
namespace ui {
class WindowAndroid;
class UI_BASE_EXPORT ViewAndroid {
public:
ViewAndroid(JNIEnv* env, jobject obj, WindowAndroid* window);
void Destroy(JNIEnv* env, jobject obj);
WindowAndroid* GetWindowAndroid();
base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
static bool RegisterViewAndroid(JNIEnv* env);
private:
~ViewAndroid();
JavaObjectWeakGlobalRef weak_java_view_;
WindowAndroid* window_android_;
DISALLOW_COPY_AND_ASSIGN(ViewAndroid);
};
}
#endif