blob: de5bd6ef97f4fbb4ef0055a2cc0c30f72a4e8707 [file] [log] [blame]
Jeff Brown928e0542011-01-10 11:17:36 -08001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Riddle Hsucd958bc2019-01-23 15:40:26 +080017#ifndef _ANDROID_VIEW_INPUT_WINDOW_HANDLE_H
18#define _ANDROID_VIEW_INPUT_WINDOW_HANDLE_H
Jeff Brown928e0542011-01-10 11:17:36 -080019
Robert Carre1db3202018-07-23 15:24:59 -070020#include <input/InputWindow.h>
Jeff Brown928e0542011-01-10 11:17:36 -080021
Steven Moreland2279b252017-07-19 09:50:45 -070022#include <nativehelper/JNIHelp.h>
Jeff Brown928e0542011-01-10 11:17:36 -080023#include "jni.h"
24
25namespace android {
26
27class NativeInputWindowHandle : public InputWindowHandle {
28public:
Robert Carr0bcbe642018-10-11 19:07:43 -070029 NativeInputWindowHandle(jweak objWeak);
Jeff Brown928e0542011-01-10 11:17:36 -080030 virtual ~NativeInputWindowHandle();
31
32 jobject getInputWindowHandleObjLocalRef(JNIEnv* env);
33
Jeff Browncc4f7db2011-08-30 20:34:48 -070034 virtual bool updateInfo();
Jeff Brown9302c872011-07-13 22:51:29 -070035
Jeff Brown928e0542011-01-10 11:17:36 -080036private:
37 jweak mObjWeak;
38};
39
40
Riddle Hsucd958bc2019-01-23 15:40:26 +080041extern sp<NativeInputWindowHandle> android_view_InputWindowHandle_getHandle(
Jeff Brown928e0542011-01-10 11:17:36 -080042 JNIEnv* env, jobject inputWindowHandleObj);
43
44} // namespace android
45
Riddle Hsucd958bc2019-01-23 15:40:26 +080046#endif // _ANDROID_VIEW_INPUT_WINDOW_HANDLE_H