blob: c1c5c44c2d22daf11e013480d0b9bc9d9cc1cfe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// 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_ANDROID_WINDOW_ANDROID_H_
#define UI_ANDROID_WINDOW_ANDROID_H_
#include <jni.h>
#include "base/android/jni_helper.h"
#include "base/android/scoped_java_ref.h"
#include "ui/base/ui_export.h"
namespace ui {
// Android implementation of the activity window.
class UI_EXPORT WindowAndroid {
public:
WindowAndroid(JNIEnv* env, jobject obj);
void Destroy(JNIEnv* env, jobject obj);
base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
static bool RegisterWindowAndroid(JNIEnv* env);
private:
~WindowAndroid();
JavaObjectWeakGlobalRef weak_java_window_;
DISALLOW_COPY_AND_ASSIGN(WindowAndroid);
};
} // namespace ui
#endif // UI_ANDROID_WINDOW_ANDROID_H_
|