blob: dbc59ef9dfd54a4ae894e2d69796eb37ee0041d6 [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
Jeff Brown85a31762010-09-01 17:01:00 -070037 // Window frame area.
Jeff Brown349703e2010-06-22 01:27:15 -070038 public int frameLeft;
39 public int frameTop;
Jeff Brown85a31762010-09-01 17:01:00 -070040 public int frameRight;
41 public int frameBottom;
42
43 // Window visible frame area.
44 public int visibleFrameLeft;
45 public int visibleFrameTop;
46 public int visibleFrameRight;
47 public int visibleFrameBottom;
Jeff Brown349703e2010-06-22 01:27:15 -070048
49 // Window touchable area.
50 public int touchableAreaLeft;
51 public int touchableAreaTop;
52 public int touchableAreaRight;
53 public int touchableAreaBottom;
54
55 // Window is visible.
56 public boolean visible;
57
58 // Window has focus.
59 public boolean hasFocus;
60
61 // Window has wallpaper. (window is the current wallpaper target)
62 public boolean hasWallpaper;
63
64 // Input event dispatching is paused.
65 public boolean paused;
66
67 // Id of process and user that owns the window.
68 public int ownerPid;
69 public int ownerUid;
70
71 public void recycle() {
72 inputChannel = null;
73 }
74}