Revert 215785 "[telemetry] Add a webdriver backend with support ..."
[chromium-blink-merge.git] / ui / android / view_android.h
blobc95608d3db2ab3b30344c52f17fcdece1c5a29f6
1 // Copyright (c) 2013 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.
5 #ifndef UI_ANDROID_VIEW_ANDROID_H_
6 #define UI_ANDROID_VIEW_ANDROID_H_
8 #include <jni.h>
9 #include "base/android/jni_helper.h"
10 #include "base/android/scoped_java_ref.h"
11 #include "ui/base/ui_export.h"
13 namespace ui {
15 class WindowAndroid;
17 // This class is the native counterpart for ViewAndroid. It is owned by the
18 // Java ViewAndroid object.
19 class UI_EXPORT ViewAndroid {
20 public:
21 ViewAndroid(JNIEnv* env, jobject obj, WindowAndroid* window);
23 void Destroy(JNIEnv* env, jobject obj);
25 WindowAndroid* GetWindowAndroid();
27 base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
29 static bool RegisterViewAndroid(JNIEnv* env);
31 private:
32 ~ViewAndroid();
33 JavaObjectWeakGlobalRef weak_java_view_;
34 WindowAndroid* window_android_;
36 DISALLOW_COPY_AND_ASSIGN(ViewAndroid);
39 } // namespace ui
41 #endif // UI_ANDROID_VIEW_ANDROID_H_