blob: 8da0cf110f1fe74e712e561e7b9142acabbd10c8 [file] [log] [blame]
Jeff Brown349703e2010-06-22 01:27:15 -07001/*
2 * Copyright (C) 2010 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
17package com.android.server;
18
19import android.view.InputChannel;
20
21/**
22 * Describes input-related window properties for use by the input dispatcher.
23 *
24 * @hide
25 */
26public final class InputWindow {
27 // The input channel associated with the window.
28 public InputChannel inputChannel;
29
30 // Window layout params attributes. (WindowManager.LayoutParams)
31 public int layoutParamsFlags;
32 public int layoutParamsType;
33
34 // Dispatching timeout.
35 public long dispatchingTimeoutNanos;
36
37 // Window frame position.
38 public int frameLeft;
39 public int frameTop;
40
41 // Window touchable area.
42 public int touchableAreaLeft;
43 public int touchableAreaTop;
44 public int touchableAreaRight;
45 public int touchableAreaBottom;
46
47 // Window is visible.
48 public boolean visible;
49
50 // Window has focus.
51 public boolean hasFocus;
52
53 // Window has wallpaper. (window is the current wallpaper target)
54 public boolean hasWallpaper;
55
56 // Input event dispatching is paused.
57 public boolean paused;
58
59 // Id of process and user that owns the window.
60 public int ownerPid;
61 public int ownerUid;
62
63 public void recycle() {
64 inputChannel = null;
65 }
66}